Modly × Hunyuan3D-2.1
An image-to-3D extension for Modly.


Sole developer
The open-source extension (v1.7.1) adds Hunyuan3D-2.1 to Modly, a free desktop app.
Project dates, tools, and platform
- Built
- July–August 2026
- Software
- Python, PyTorch, CUDA
- Runs on
- NVIDIA graphics cards on Windows and Linux
The texture pass exceeded a 16 GB card
Graphics card, 16 GB
4.4 GB over
Reserved by the texture passMore than the card has1 block = 1 GB
Memory the pass reserved
–
20.4 GBon a 24 GB RTX 3090 card
Fits a 16 GB card
–
No4.4 GB short
This card has 16 GB for the models.
The old path kept all three models on the card.
Together they reserved 20.4 GB, 4.4 GB too much.
The fix keeps only the working model on the card.
Texture-pass models and memory use
The extension runs the full Hunyuan3D-2.1 shape model, with 3.3 billion parameters, and an optional PBR (physically based rendering) texture pass.
The texture pass runs in stages: encode the condition images, run multiview diffusion, decode, then upscale and bake. On the full-GPU path, every model stays on the GPU for the whole pass. On an RTX 3090, that path reserved 20.4 GB, more than a 16 GB card holds.
Models move to the graphics card in stages
Graphics card, 16 GB
13.0 GB reserved
The encoder reads the image on the card.
The diffusion model paints six views on the card.
The VAE decoder then turns the views into images.
Staging reserved 13.0 GB in the recorded RTX 3090 benchmark.
How models move between stages
Each stage needs only some of the models. The vision encoder visits the GPU once, for a single forward pass. The VAE visits twice: to encode the condition images and to decode the result. The large diffusion model stays only for the denoising loop. Between stages, idle weights wait in ordinary system memory.
On a 12 GB card, the staged path briefly places about 1 GB in system memory.
Auto mode selects staging from available memory
How a model moves
–
Wholeat the start of its step
Time for the texture pass
111 sall models on the card
116 s5 s more
Which path runs
–
Autochecks free memory first
On a 16 GB card
Model download
–
7.4 GBchecked before each load
- Size matches
- End of file intact
Compiler needed
–
Noneon standard Windows setups
- Ready-made parts included
- Other setups build them once
Each model moves onto the card in one piece.
Staging added 5 s in the recorded benchmark.
Auto mode stages only when the faster path won't fit.
The extension checks model files and downloads damaged ones again.
Standard Windows builds include the compiled parts.
Auto mode checks memory before choosing the texture-pass path.
Staging, automatic selection, and install checks
Move whole components. Standard offloading works through hooks on each module. This pipeline's custom dual-stream architecture bypasses those hooks, so the extension moves whole components at stage boundaries. The extension can then unload each component after its step.
Accept the measured time cost. Staging moves the weights once per stage, which added 5 seconds in the recorded benchmark. The staged run took 116 seconds, and the full-GPU run took 111. Both paths use the same weights and calculations. Their outputs differed within the normal variation between runs.
Select the path from available memory. Auto compares free GPU memory with the measured peak plus a 1.5 GB safety margin. Most people never need to change the setting.
Check the 7.4 GB model file before loading. A cut-short download leaves a checkpoint that PyTorch can't open. The extension checks the file's size and footer before every load, and downloads a damaged file again once.
Include compiled modules for standard Windows setups. Windows builds ship prebuilt native modules for the standard PyTorch install (CUDA 12.8). Other setups compile the modules on first use.
An RTX 3090 benchmark used 36% less reserved memory
Texture pass on an RTX 3090
- 13.0 GBmemory reserved on the cardwas 20.4 GB
- 36%less memory reserved
- 116 sfor one texture passwas 111 s
The benchmark's input and output


Rendered views of the two paths' outputs differ by 2.24 of 255 color levels, within the normal variation between runs.
In one RTX 3090 test, staging reserved 13.0 GB.
Output differences were within normal variation between runs.
Staging reserved 36% less GPU memory and added 5 s.
RTX 3090 benchmark conditions and results
| Path | Reserved | Allocated | Time |
|---|---|---|---|
| Full GPU | 20.4 GB | 13.3 GB | 111 s |
| Staged | 13.0 GB | 9.1 GB | 116 s |
Tree input, seed 42. Stock sizes: 2,048 render, 4,096 texture, 512 view resolution, 6 views. Reserved GPU memory is the memory PyTorch holds on the graphics card. The rendered views of the two outputs differ by 2.24/255, within normal variation between runs.
See the measurement recordOn the extension
"thanks again for the extension, it's brilliant!"