Run this model with HF Jobs
Run suvadityamuk/trellis-2-finetune-gso on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/suvadityamuk/trellis-2-finetune-gso. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/suvadityamuk/trellis-2-finetune-gso on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use suvadityamuk/trellis-2-finetune-gso with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use suvadityamuk/trellis-2-finetune-gso with PEFT:
Task type is invalid.
- TRELLIS.2
How to use suvadityamuk/trellis-2-finetune-gso with TRELLIS.2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Trellis
How to use suvadityamuk/trellis-2-finetune-gso with Trellis:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
TRELLIS.2 footwear LoRA (Google Scanned Objects)
LoRA adapters for the two geometry flows of TRELLIS.2-4B (paper), fine-tuned on 188 shoes from Google Scanned Objects. They make TRELLIS.2 much better at reconstructing shoe geometry from a single image. Textures still come from the base model.
| Chamfer distance ↓ | F-score@0.02 ↑ | Normal consistency ↑ | |
|---|---|---|---|
| TRELLIS.2-4B (base) | 0.174 | 0.276 | 0.530 |
| + this LoRA | 0.033 | 0.803 | 0.804 |
Averaged over the 9 held-out shoes in footwear/eval/metrics.csv,
one conditioning render per object and the same seed for both models. Base and LoRA
meshes for each held-out object are in footwear/eval/vis/.
Files
| path | what |
|---|---|
footwear/ss_lora/adapter-3000.safetensors |
recommended sparse-structure flow adapter (rank 8, alpha 16, attention + MLP) |
footwear/shape_lora/adapter-3000.safetensors |
recommended shape flow adapter (rank 16, alpha 32, attention only) |
footwear/{ss,shape}_lora/adapter-{500..2500}.safetensors |
intermediate checkpoints |
footwear/eval/ |
held-out metrics and base-vs-LoRA GLBs |
pilot/ |
200-step pilot run, kept for reference |
Use both adapters together: the sparse-structure one fixes the overall shape, the shape one fixes surface detail. Each is about 37 MB of LoRA weights, not a copy of the model.
Usage
TRELLIS.2 needs its CUDA extensions, so the simplest way is the prebuilt image on
HF Jobs, with
generate.py
from the code release:
git clone --depth 1 https://github.com/suvadityamuk/trellis2-finetuning
hf jobs run -d --flavor l4x1 --timeout 1h --secrets HF_TOKEN \
cr.hf.co/suvadityamuk/trellis2-finetuning:latest \
python -c "$(cat trellis2-finetuning/skills/trellis2-lora/scripts/generate.py)" \
--image https://example.com/shoe.png \
--ss-adapter hf://suvadityamuk/trellis-2-finetune-gso/footwear/ss_lora/adapter-3000.safetensors \
--shape-adapter hf://suvadityamuk/trellis-2-finetune-gso/footwear/shape_lora/adapter-3000.safetensors \
--compare --push-to your-username/trellis2-outputs --private
--compare also writes the base model's mesh with the same seed. The token's account needs
access to the gated DINOv3
image encoder. Keep --pipeline-type 512 (the default): the adapters were trained on 512 latents.
Training
- Data:
suvadityamuk/gso-footwear-trellis2-latents(188 GSO shoes, 5% held out, colorways of one model kept on the same side of the split). - 3000 steps per flow, AdamW at lr 1e-4, effective batch 16, bf16, one A100 80 GB: 7.2 h for the sparse-structure flow and 3.6 h for the shape flow.
- Rectified-flow velocity loss, image condition dropped 10% of the time for CFG.
To train your own on any set of meshes, see the code release
(suvadityamuk/trellis2-finetuning),
the 3D LoRA Trainer Space, or
the agent skill in that repo.
Related
- Guide: The Definitive Fine-Tuning Guide for 3D Generation Models
- Base model: microsoft/TRELLIS.2-4B · paper: 2512.14692
- Code: suvadityamuk/trellis2-finetuning
- Train in the browser: hugging-3d/3d-model-lora-trainer · pick training data: 3D Subset Builder
- Everything in one place: TRELLIS.2 everywhere
- Diffusers port: suvadityamuk/TRELLIS.2-4B-diffusers-3d
- Native kernels: CUDA (Space) · Metal · ROCm
License
The adapters are MIT, like TRELLIS.2. Google Scanned Objects is CC-BY-4.0 (Google Research). DINOv3 is under Meta's own license and is not included here.
- Downloads last month
- -
Model tree for suvadityamuk/trellis-2-finetune-gso
Base model
microsoft/TRELLIS.2-4BDataset used to train suvadityamuk/trellis-2-finetune-gso
Paper for suvadityamuk/trellis-2-finetune-gso
Article mentioning suvadityamuk/trellis-2-finetune-gso
Evaluation results
- Chamfer distance (lower is better) on GSO Footwear (held-out split)self-reported0.033
- F-score@0.02 on GSO Footwear (held-out split)self-reported0.803
- Normal consistency on GSO Footwear (held-out split)self-reported0.804