Instructions to use Perflow-Shuai/Cosmos3-Nano-FewStep-CFG-Distill-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use Perflow-Shuai/Cosmos3-Nano-FewStep-CFG-Distill-LoRA with Cosmos:
# 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
Cosmos3-Nano Few-Step + CFG Distillation LoRA
A LoRA adapter that distills Cosmos3-Nano 16B into a 4-step, CFG-free video generator. It was trained once on the base model with prompt-only DMD2, so it can be plugged into Nano-derived post-trained models without retraining (LongLive-Plug style).
File
| File | Description |
|---|---|
student_iter2000.safetensors |
Student LoRA at iteration 2000. BF16, 288 tensors, ~30 MB |
Adapter metadata: rank 16, alpha 32.
Targets: the generation-tower attention projections (q_proj_moe_gen, k_proj_moe_gen, v_proj_moe_gen, o_proj_moe_gen) in all 36 layers.
Key format: language_model.model.layers.{i}.self_attn.{q,k,v,o}_proj_moe_gen.lora_{A,B}.weight.
Inference
- Load
nvidia/Cosmos3-Nano(or a Nano-derived post-trained model), then add the LoRA with scale 1.0 (alpha / rank = 2). - Use a 4-step SDE sampler with timesteps
[1.0, 0.9375, 0.8333, 0.625]. - Set CFG to 1.0. No unconditional branch is needed.
Training
| Item | Setting |
|---|---|
| Method | DMD2: joint few-step + CFG distillation, prompt-only (no GT video) |
| Teacher | Frozen Cosmos3-Nano, guidance 3.0 |
| Student | Guidance 1.0, 4-step SDE |
| Trainable params | Student LoRA + fake-score LoRA, both rank 16; base model frozen |
| Student update freq | 1 student update per 5 trainer iterations (2000 iters = 400 student updates) |
| Data | 3,000 robot-manipulation prompts: 1,222 captions from nvidia/BridgeData2-Subset-Synthetic-Captions train split + 1,778 synthetic variations |
| Output spec | 832ร480, 93 frames, 16 fps |
| Compute | 16 GPUs, global batch 32 |
| Recipe reference | Cosmos-H-Surgical v0.3.1 DMD2 |
Transfer results (qualitative, no downstream training)
Comparison: 4 steps / CFG 1 without the LoRA vs. the same with the LoRA.
- Bidirectional post-trained models: the LoRA clearly reduces blur and ghosting.
- Cosmos3-Nano-Transfer-Auto
- PF_Cosmos
- Cosmos-H-Surgical v0.3.0
- Causal AR Stage 1 TF checkpoints (Sim-Bimanual / Sim-Transfer / Sim-Auto): the LoRA loads and runs, but the gain over the plain 4-step baseline is not yet clear.
These are visual comparisons only; no quantitative metrics yet.
Limitations
- Trained on T2V with a robot-manipulation-focused prompt set; quality outside this domain is untested.
- Trained with bidirectional attention only; transfer to causal / autoregressive models is not established.
- Research checkpoint, not converged; motion consistency still lags the 35-step teacher.
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for Perflow-Shuai/Cosmos3-Nano-FewStep-CFG-Distill-LoRA
Base model
nvidia/Cosmos3-Nano