Technology updates
Hugging Face Publishes LoRA Fine-Tuning Guide and Containers for TRELLIS.2 3D Generation
Hugging Face released a guide plus preprocessing and training Docker containers for fine-tuning TRELLIS.2 with LoRA, training roughly 9.3M adapter parameters on HF Jobs or locally.
Hugging Face published a fine-tuning guide for the TRELLIS.2 3D generation model on November 12, alongside two Docker containers: one for preprocessing and one for training. According to the post, both can run on Hugging Face Jobs cloud hardware or locally with Docker on a user's own GPU, and the scripts require only a few arguments, though users can also modify the code in the companion repository.
The TRELLIS family is built around a unified latent representation: the model describes an object internally in one form, and decoders convert it into formats such as GLB or PLY, so separate models are not needed per 3D representation. TRELLIS.2 improved how the model represents 3D structure, but the authors note neither version offered an easy way to adapt it to a specific task. Their example uses a 188-object footwear subset of Google Scanned Objects; in initial tests, the pretrained model usually produced shoes that looked right but had incorrect soles, a typical failure of a general model on a narrow category.
The post breaks the pipeline into five stages: BiRefNet background removal, DINOv3-L image encoding, a sparse-structure flow DiT predicting coarse shape, a shape flow DiT generating detailed geometry, and a texture flow DiT generating materials, with the result exported as a textured mesh. The authors inject LoRA adapters only into the sparse-structure and shape flows, leaving the texture flow frozen. The stated reason is that their dataset contains only diffuse color maps, not the separate material maps that stage needs; training on those maps could teach the model to treat lighting as a surface property or cause catastrophic forgetting.
On scale, the post says the two targeted DiTs train roughly 9.3 million adapter parameters in total, with rank-8 adapters in the sparse-structure flow and rank-16 adapters in the shape flow's attention layers. Adapter weights stay in fp32 for numerical stability while the forward pass uses bf16 autocasting. The authors justify LoRA over full fine-tuning for a small dataset: lower cost, and better preservation of the model's existing priors.
In practice, the preprocessing container renders 16 views of each object with Blender in a headless environment to serve as conditioning images, and converts meshes into latents from the frozen encoders. The full run for 188 objects took about an hour on an a100-large job. Training runs in two modes, ss and shape; one random view per sample is selected, 179 objects are used for training and 9 held out for evaluation. Metrics are logged with Trackio, checkpoints are pushed to the Hub when --push-to is set, and interrupted jobs resume from the latest checkpoint. The authors also released the preprocessed dataset and the trained adapters.
One limitation worth flagging: the post does not report a quantitative before-and-after comparison of sole geometry accuracy, so the size of the improvement cannot be judged from the source. For developers, the more portable takeaway is the pattern of stage-selective fine-tuning: decide which pipeline component the data can actually support, then freeze the rest, rather than fine-tuning everything. That approach is relevant to robotics, simulation and media asset production, where generated geometry must meet strict accuracy requirements.