Add CMD model card and checkpoints
Browse files- README.md +176 -0
- chunk1_camera_control_t32_l21.safetensors +3 -0
- chunk1_camera_control_t32_l21.safetensors.sha256 +1 -0
- chunk1_long_t126_l21.safetensors +3 -0
- chunk1_long_t126_l21.safetensors.sha256 +1 -0
- chunk1_short_t24_l21.safetensors +3 -0
- chunk1_short_t24_l21.safetensors.sha256 +1 -0
- chunk1_teacher_t24_l21.safetensors +3 -0
- chunk1_teacher_t24_l21.safetensors.sha256 +1 -0
- chunk1_teacher_t32_l21_camera.safetensors +3 -0
- chunk1_teacher_t32_l21_camera.safetensors.sha256 +1 -0
- chunk4_camera_control_t29_l24.safetensors +3 -0
- chunk4_camera_control_t29_l24.safetensors.sha256 +1 -0
- chunk4_long_t121_l16.safetensors +3 -0
- chunk4_long_t121_l16.safetensors.sha256 +1 -0
- chunk4_short_t21_l16.safetensors +3 -0
- chunk4_short_t21_l16.safetensors.sha256 +1 -0
- chunk4_teacher_t21_l16.safetensors +3 -0
- chunk4_teacher_t21_l16.safetensors.sha256 +1 -0
- chunk4_teacher_t29_l24_camera.safetensors +3 -0
- chunk4_teacher_t29_l24_camera.safetensors.sha256 +1 -0
README.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: nvidia-oneway-noncommercial
|
| 4 |
+
license_link: https://github.com/nv-tlabs/cmd/blob/main/LICENSE
|
| 5 |
+
pipeline_tag: image-to-video
|
| 6 |
+
tags:
|
| 7 |
+
- video-generation
|
| 8 |
+
- image-to-video
|
| 9 |
+
- world-model
|
| 10 |
+
- diffusion
|
| 11 |
+
- autoregressive
|
| 12 |
+
- camera-control
|
| 13 |
+
- safetensors
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Context-Matched Distillation: Teacher Causality for Autoregressive Video Distillation
|
| 17 |
+
|
| 18 |
+
**Hmrishav Bandyopadhyay<sup>1,2</sup>, Xuanchi Ren<sup>1</sup>, Zijian Huang<sup>1</sup>, Jay Zhangjie Wu<sup>1</sup>, Tianshi Cao<sup>1</sup>, Ruilong Li<sup>1</sup>, Bryan Chu<sup>1</sup>, Sanja Fidler<sup>1</sup>, Yi-Zhe Song<sup>2</sup>, Zian Wang<sup>1</sup>**
|
| 19 |
+
|
| 20 |
+
<sup>1</sup>NVIDIA
|
| 21 |
+
<sup>2</sup>SketchX, CVSSP, University of Surrey
|
| 22 |
+
|
| 23 |
+
[Project Page](https://hmrishavbandy.github.io/cmd-site/) | [Code](https://github.com/nv-tlabs/cmd)
|
| 24 |
+
|
| 25 |
+
## Model Overview
|
| 26 |
+
|
| 27 |
+
### Description
|
| 28 |
+
|
| 29 |
+
Context-Matched Distillation (CMD) is a method for autoregressive video distillation using causal teachers. This repository provides CMD checkpoints based on Cosmos-Predict2.5 2B for causal image-to-video generation.
|
| 30 |
+
|
| 31 |
+
The release includes chunk-1 and chunk-4 models for short- and long-duration generation, together with camera-control variants. The models use local temporal attention and generate video autoregressively in causal chunks.
|
| 32 |
+
|
| 33 |
+
This model is for research and development only.
|
| 34 |
+
|
| 35 |
+
### License and Terms of Use
|
| 36 |
+
|
| 37 |
+
This model is released under the [NVIDIA OneWay Noncommercial License](https://github.com/NVIDIA/generative-model-design-license/blob/main/NVIDIA%20OneWay%20Noncommercial%20License.md). It may only be used for non-commercial research or educational purposes.
|
| 38 |
+
|
| 39 |
+
### Deployment Geography
|
| 40 |
+
|
| 41 |
+
Global
|
| 42 |
+
|
| 43 |
+
### Intended Use
|
| 44 |
+
|
| 45 |
+
Primary users include researchers and developers studying:
|
| 46 |
+
|
| 47 |
+
- Autoregressive video generation.
|
| 48 |
+
- Causal video distillation.
|
| 49 |
+
- Long-duration video generation.
|
| 50 |
+
- Interactive world models.
|
| 51 |
+
- Camera-controlled video generation.
|
| 52 |
+
|
| 53 |
+
The checkpoints are not intended for safety-critical applications or uses prohibited by the model license.
|
| 54 |
+
|
| 55 |
+
## Available Checkpoints
|
| 56 |
+
|
| 57 |
+
| Checkpoint | Configuration | Intended use |
|
| 58 |
+
|---|---|---|
|
| 59 |
+
| `chunk1_short_t24_l21.safetensors` | `t24_l21` | Chunk-1 short-duration generation |
|
| 60 |
+
| `chunk4_short_t21_l16.safetensors` | `t21_l16` | Chunk-4 short-duration generation |
|
| 61 |
+
| `chunk1_long_t126_l21.safetensors` | `t126_l21` | Chunk-1 long-duration generation |
|
| 62 |
+
| `chunk4_long_t121_l16.safetensors` | `t121_l16` | Chunk-4 long-duration generation |
|
| 63 |
+
| `chunk1_camera_control_t32_l21.safetensors` | `t32_l21` | Chunk-1 generation with camera control |
|
| 64 |
+
| `chunk4_camera_control_t29_l24.safetensors` | `t29_l24` | Chunk-4 generation with camera control |
|
| 65 |
+
|
| 66 |
+
In the configuration names, `t` denotes frame duration and `l` denotes local attention. Checkpoint names do not include dataset names or training iteration information.
|
| 67 |
+
|
| 68 |
+
## Quick Start
|
| 69 |
+
|
| 70 |
+
Install the reference implementation:
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
git clone https://github.com/nv-tlabs/cmd.git
|
| 74 |
+
cd cmd
|
| 75 |
+
|
| 76 |
+
conda create -n causal-cosmos python=3.10 -y
|
| 77 |
+
conda activate causal-cosmos
|
| 78 |
+
python -m pip install -r requirements.txt
|
| 79 |
+
python -m pip install flash-attn --no-build-isolation
|
| 80 |
+
python setup.py develop
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Download the checkpoints:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
hf download nvidia/cmd --local-dir checkpoints
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
To download one model only:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
hf download nvidia/cmd \
|
| 93 |
+
chunk1_short_t24_l21.safetensors \
|
| 94 |
+
--local-dir checkpoints
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
Follow the inference instructions in the [CMD repository](https://github.com/nv-tlabs/cmd) to select the matching model configuration and run generation.
|
| 98 |
+
|
| 99 |
+
## Model Architecture
|
| 100 |
+
|
| 101 |
+
Architecture type: Causal video diffusion transformer
|
| 102 |
+
|
| 103 |
+
Base model: [Cosmos-Predict2.5 2B](https://huggingface.co/nvidia/Cosmos-Predict2.5-2B)
|
| 104 |
+
|
| 105 |
+
Generation strategy: Block-autoregressive video generation
|
| 106 |
+
|
| 107 |
+
CMD uses causal temporal attention to generate video sequentially. Chunk-1 and chunk-4 variants provide different autoregressive generation granularities, while the camera-control variants add camera-motion conditioning.
|
| 108 |
+
|
| 109 |
+
## Inputs
|
| 110 |
+
|
| 111 |
+
Standard checkpoints accept:
|
| 112 |
+
|
| 113 |
+
- An initial image.
|
| 114 |
+
- A text prompt.
|
| 115 |
+
|
| 116 |
+
Camera-control checkpoints additionally accept a camera trajectory in the format expected by the CMD inference pipeline.
|
| 117 |
+
|
| 118 |
+
## Outputs
|
| 119 |
+
|
| 120 |
+
The model produces an RGB video conditioned on the initial image, text prompt, and, when applicable, camera trajectory. Output duration is determined by the selected `t` configuration.
|
| 121 |
+
|
| 122 |
+
## Software Integration
|
| 123 |
+
|
| 124 |
+
- Framework: PyTorch
|
| 125 |
+
- Checkpoint format: Safetensors
|
| 126 |
+
- Reference implementation: [nv-tlabs/cmd](https://github.com/nv-tlabs/cmd)
|
| 127 |
+
- Preferred operating system: Linux
|
| 128 |
+
- Recommended hardware: NVIDIA CUDA-capable GPU
|
| 129 |
+
|
| 130 |
+
The checkpoints must be used with the corresponding model architecture and configuration supplied by the reference implementation.
|
| 131 |
+
|
| 132 |
+
## Training Method
|
| 133 |
+
|
| 134 |
+
CMD uses a two-stage procedure:
|
| 135 |
+
|
| 136 |
+
1. Causal teacher pretraining.
|
| 137 |
+
2. Context-matched distillation.
|
| 138 |
+
|
| 139 |
+
See the [CMD repository](https://github.com/nv-tlabs/cmd) and [project page](https://hmrishavbandy.github.io/cmd-site/) for the method and evaluation details.
|
| 140 |
+
|
| 141 |
+
## Limitations
|
| 142 |
+
|
| 143 |
+
- Autoregressive errors may accumulate during long rollouts.
|
| 144 |
+
- Visual quality and temporal consistency may degrade over time.
|
| 145 |
+
- Generated motion may be physically implausible.
|
| 146 |
+
- Fine details, text, faces, hands, and rapid motion may contain artifacts.
|
| 147 |
+
- Prompt adherence may vary with scene complexity.
|
| 148 |
+
- Camera-control outputs may deviate from the requested trajectory.
|
| 149 |
+
- Generated content may reflect biases present in the training data.
|
| 150 |
+
|
| 151 |
+
Users should evaluate the model on data representative of their intended application before deployment.
|
| 152 |
+
|
| 153 |
+
## Ethical Considerations
|
| 154 |
+
|
| 155 |
+
Generated video may be mistaken for authentic footage. Users should clearly identify synthetic content where appropriate and must not use the model for deception, impersonation, harassment, misinformation, or violations of privacy, intellectual-property, or other applicable rights.
|
| 156 |
+
|
| 157 |
+
NVIDIA believes Trustworthy AI is a shared responsibility. Developers should ensure that their use of this model complies with applicable laws, policies, licenses, and safety requirements.
|
| 158 |
+
|
| 159 |
+
Please report model quality, risk, security vulnerabilities, or NVIDIA AI concerns through the [NVIDIA support portal](https://www.nvidia.com/en-us/support/submit-a-case/).
|
| 160 |
+
|
| 161 |
+
## Citation
|
| 162 |
+
|
| 163 |
+
If you find this work useful, please cite:
|
| 164 |
+
|
| 165 |
+
```bibtex
|
| 166 |
+
@misc{bandyopadhyay2026contextmatched,
|
| 167 |
+
title = {Context-Matched Distillation: Teacher Causality for Autoregressive Video Distillation},
|
| 168 |
+
author = {Bandyopadhyay, Hmrishav and Ren, Xuanchi and Huang, Zijian and Wu, Jay Zhangjie and Cao, Tianshi and Li, Ruilong and Chu, Bryan and Fidler, Sanja and Song, Yi-Zhe and Wang, Zian},
|
| 169 |
+
year = {2026},
|
| 170 |
+
url = {https://hmrishavbandy.github.io/cmd-site/}
|
| 171 |
+
}
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
## Acknowledgements
|
| 175 |
+
|
| 176 |
+
This project builds on [Self-Forcing](https://github.com/guandeh17/Self-Forcing) and [NVIDIA Cosmos-Predict2.5](https://github.com/nvidia-cosmos/cosmos-predict2.5).
|
chunk1_camera_control_t32_l21.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4aaefa51da60af7b145f3f879f4261f1c2f15bbaf215d5de90776d6c146b907
|
| 3 |
+
size 4294578646
|
chunk1_camera_control_t32_l21.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
f4aaefa51da60af7b145f3f879f4261f1c2f15bbaf215d5de90776d6c146b907 chunk1_camera_control_t32_l21.safetensors
|
chunk1_long_t126_l21.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc719a26615662bb3cefd99317a90184c6e9e31595a58181e1ef37cc9e144d13
|
| 3 |
+
size 8236764356
|
chunk1_long_t126_l21.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
bc719a26615662bb3cefd99317a90184c6e9e31595a58181e1ef37cc9e144d13 chunk1_long_t126_l21.safetensors
|
chunk1_short_t24_l21.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18222c475e62bec82aa61c7e963a1d2dc8e9cc97dc5a7758cc5f1bdd439ada65
|
| 3 |
+
size 8236764356
|
chunk1_short_t24_l21.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
18222c475e62bec82aa61c7e963a1d2dc8e9cc97dc5a7758cc5f1bdd439ada65 chunk1_short_t24_l21.safetensors
|
chunk1_teacher_t24_l21.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d26644d8e649934317d996331d1a4b5ebfe046e9a1f4c2cfcd413014a3d37df7
|
| 3 |
+
size 8236764356
|
chunk1_teacher_t24_l21.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
d26644d8e649934317d996331d1a4b5ebfe046e9a1f4c2cfcd413014a3d37df7 chunk1_teacher_t24_l21.safetensors
|
chunk1_teacher_t32_l21_camera.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3111f51b326eb518148264d381b18dc880ad42d4246a2cf437961227b50957e8
|
| 3 |
+
size 8589089124
|
chunk1_teacher_t32_l21_camera.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3111f51b326eb518148264d381b18dc880ad42d4246a2cf437961227b50957e8 chunk1_teacher_t32_l21_camera.safetensors
|
chunk4_camera_control_t29_l24.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e512bd564018098244aa0c867b2f49862016a651b770e1e04e469cfaf43309ff
|
| 3 |
+
size 4294578646
|
chunk4_camera_control_t29_l24.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
e512bd564018098244aa0c867b2f49862016a651b770e1e04e469cfaf43309ff chunk4_camera_control_t29_l24.safetensors
|
chunk4_long_t121_l16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d00a8f536bb69c5f9d6d2b9571e437c7ee5427299755ba1cecab56daeda6d8a
|
| 3 |
+
size 8236764356
|
chunk4_long_t121_l16.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
4d00a8f536bb69c5f9d6d2b9571e437c7ee5427299755ba1cecab56daeda6d8a chunk4_long_t121_l16.safetensors
|
chunk4_short_t21_l16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6fc4621c37451749b33d6b6493a7d2a6d3ffe5f0486c9631ed092ed990a8d9d9
|
| 3 |
+
size 8236764356
|
chunk4_short_t21_l16.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
6fc4621c37451749b33d6b6493a7d2a6d3ffe5f0486c9631ed092ed990a8d9d9 chunk4_short_t21_l16.safetensors
|
chunk4_teacher_t21_l16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b240cb236aba1557c917193e2c31069a6808942cf2b7ddfc3bfb10520dd8217
|
| 3 |
+
size 8236764356
|
chunk4_teacher_t21_l16.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1b240cb236aba1557c917193e2c31069a6808942cf2b7ddfc3bfb10520dd8217 chunk4_teacher_t21_l16.safetensors
|
chunk4_teacher_t29_l24_camera.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68d9a0490db10c8c3d897b50e01143743ae494dd7ef902c676f4f005cfb5b278
|
| 3 |
+
size 8589089124
|
chunk4_teacher_t29_l24_camera.safetensors.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
68d9a0490db10c8c3d897b50e01143743ae494dd7ef902c676f4f005cfb5b278 chunk4_teacher_t29_l24_camera.safetensors
|