Add any-to-any pipeline tag, update library metadata and link paper

#16
by nielsr HF Staff - opened
README.md CHANGED
@@ -1,27 +1,62 @@
1
  ---
 
2
  license: other
3
  license_name: openmdw1.1-license
4
- license_link: >-
5
- https://openmdw.ai/license/1-1/
6
- library_name: cosmos
7
  tags:
8
- - nvidia
9
- - cosmos
10
- - cosmos3
11
- - vllm
12
- - vllm-omni
13
- - sglang
14
- - sglang-diffusion
15
- - diffusers
16
- - text, image, video, audio, and action generation
17
- - omnimodel
18
  ---
19
 
20
  # **Cosmos 3: Omnimodal World Models for Physical AI**
21
- **[Model Collection](https://huggingface.co/collections/nvidia/cosmos3)** | **[Code](https://github.com/nvidia/cosmos)** | **[White Paper](https://research.nvidia.com/labs/cosmos-lab/cosmos3/technical-report.pdf)** | **[Website](https://research.nvidia.com/labs/cosmos-lab/cosmos3/)**
22
 
23
  [NVIDIA Cosmos™](https://github.com/nvidia/cosmos) is a world foundation model platform designed to accelerate the development of Physical AI by enabling machines to understand, simulate, and interact with the physical world across robotics, autonomous driving, and smart space environments, including industrial and factory-scale applications.
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  # Model Overview: Cosmos3-Nano
26
 
27
  ## Description
@@ -52,153 +87,36 @@ This model is ready for commercial and non-commercial use.
52
 
53
  This model is released under the [OpenMDW1.1](https://openmdw.ai/license/1-1/)
54
 
55
- ### Deployment Geography
56
-
57
- Global
58
-
59
- ### Use Case
60
-
61
- Physical AI: Encompassing robotics, autonomous vehicles (AV), and smart space environments, including industrial and factory-scale applications.
62
-
63
- ### Release Date
64
-
65
- Hugging Face 05/31/2026 via [https://huggingface.co/collections/nvidia/cosmos3](https://huggingface.co/collections/nvidia/cosmos3)
66
- GitHub 05/31/2026 via [https://github.com/nvidia/cosmos](https://github.com/nvidia/cosmos)
67
-
68
  ## Model Architecture
69
 
70
  **Architecture Type:** Transformer
71
-
72
  **Network Architecture:** Mixture-of-Transformers (MoT)
73
 
74
- Cosmos3 is an Omni-modal foundation model built on a Mixture-of-Transformers (MoT) architecture consisting of two complementary transformer towers: an autoregressive transformer for discrete token generation and a diffusion transformer for continuous multimodal generation. During inference, text is generated through standard next-token autoregressive decoding, while non-text modalities, such as images, video, audio, and actions, are synthesized through iterative denoising. This unified architecture enables Cosmos3 to model heterogeneous modalities within a single framework while preserving generation mechanisms best suited to each modality.
75
-
76
- **This model was developed based on:** [Cosmos Framework](https://github.com/nvidia/cosmos-framework)
77
 
78
  **Number of trainable model parameters:**
79
-
80
  - Cosmos3-Nano: 16B
81
  - Cosmos3-Super: 64B
82
- - Cosmos3-Nano-Policy-DROID: 16B
83
- - Cosmos3-Super-Image2Video: 64B
84
- - Cosmos3-Super-Text2Image: 64B
85
-
86
- ## Input/Output Specifications
87
-
88
- - **Generator Input**
89
- - **Input Type(s)**: Text, Image, Video (with audio or without audio), Action Trajectory
90
- - **Input Format(s)**:
91
- - Text: String
92
- - Image: jpg, png, jpeg, webp
93
- - Video (with or without audio): mp4
94
- - Action: json (1D list)
95
- - **Input Parameters**:
96
- - Text: One-dimensional (1D)
97
- - Image: Two-dimensional (2D)
98
- - Video: Three-dimensional (3D)
99
- - Audio: One-dimensional (1D)
100
- - Action trajectory: One-dimensional (1D)
101
- - **Other Properties Related to Input**:
102
- - For video inputs, we accept various resolutions, including 720p, 480p, and 256p.
103
- - When using input video with audio muxed into the video MP4 file, the audio should have 2 channels (stereo) and a 48 kHz sample rate.
104
- - Image and video inputs are RGB color (8 bits per channel, sRGB color space); grayscale inputs are not supported.
105
- - Action input is a per-frame sequence of robot/agent state or control values (e.g., joint positions, gripper state, camera pose). The full input is a 2D array shaped (T, D), where T is the number of frames and D is the embodiment-specific dimensionality listed below.
106
- - Input action is only supported for compatible embodiments, including general camera motion (9D), autonomous vehicle (9D), egocentric motion (57D), single Franka Panda arm with RobotiQ gripper (10D), dual Franka Panda arm with RobotiQ gripper (20D), Agibot (29D), UR (10D), Google robot (10D), WidowX 250 (10D), UMI (9D).
107
- - **Input Size and Length limits:**
108
- - **Text:** 4096 tokens
109
- - **Image:** 256p, 480p, and 720p resolution at one of these aspect ratios (16:9, 4:3, 1:1, 3:4, 9:16)
110
- - **Video:** 256p, 480p, and 720p resolution at one of these aspect ratios (16:9, 4:3, 1:1, 3:4, 9:16). Max number of frames = 5.
111
- - **Audio:** Max 0.5 second
112
- - **Action:** 16 – 400 video frames
113
- - **Generator Output**
114
- - **Output Type(s)**: Image, video, audio, action, text
115
- - **Output Format(s)**:
116
- - Image: JPG
117
- - Video: MP4
118
- - Audio: Advanced Audio Coding (AAC) stream (muxed within the MP4)
119
- - Action: 1D list (.json)
120
- - Text: string
121
- - **Output Parameters**:
122
- - Image: Two-dimensional (2D)
123
- - Video: Three-dimensional (3D)
124
- - Audio: One-dimensional (1D)
125
- - Action: One-dimensional (1D)
126
- - Text: One-dimensional (1D)
127
- - **Other Properties Related to Output**:
128
- - The generated video is an MP4 file, with the resolution, frame rate, and duration specified in the input. The generated audio is encoded in AAC format, muxed into the video MP4 file with 2 channels (stereo) and a 48 kHz sample rate.
129
- - Video generation supports durations from 5 to 400 frames, with 189 frames as the default generation duration.
130
- - The generated action is only supported for compatible embodiments, including general camera motion (9D), autonomous vehicle (9D), egocentric motion (57D), single Franka Panda arm with RobotiQ gripper (10D), dual Franka Panda arm with RobotiQ gripper (20D), Agibot (29D), UR (10D), Google robot (10D), WidowX 250 (10D), UMI (9D).
131
- - Audio: 48 kHz stereo AAC stream muxed into video mp4
132
- - Video: mp4 at the FPS specified in input
133
- - Image: JPEG
134
- - **Reasoner Input**
135
- - **Input Type(s)**: Text, Text+Image, Text+Video
136
- - **Input Format(s)**:
137
- - Text: String
138
- - Image: jpg, png, jpeg, webp
139
- - Video: mp4
140
- - **Input Parameters**:
141
- - Text: One-dimensional (1D)
142
- - Image: Two-dimensional (2D)
143
- - Video: Three-dimensional (3D)
144
- - **Other Properties Related to Input**:
145
- - Video inputs are recommended at a frame rate of 4 fps.
146
- - Long-context inputs supported up to 256K tokens.
147
- - **Input Size and Length limits:**
148
- - **Text:** Up to 256K tokens (context window).
149
- - **Image:** Standard input image formats; passed as file or URL.
150
- - **Video:** mp4 at the recommended 4 fps.
151
- - **Reasoner Output**
152
- - **Output Type(s)**: Text
153
- - **Output Format(s)**:
154
- - Text: string
155
- - **Output Parameters**:
156
- - Text: One-dimensional (1D)
157
- - **Other Properties Related to Output**:
158
- - Default `max_tokens=4096+` is recommended for reasoning outputs; longer outputs may be requested.
159
- - Reasoning outputs may include structured chain-of-thought, 2D/3D point localization, and bounding-box coordinates for vision-based tasks.
160
-
161
- The video content visualizes the input text description as a short animated scene, capturing key elements within the specified time constraints.
162
-
163
- Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA's hardware (e.g., GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.
164
 
165
  ## Software Integration
166
 
167
  **Runtime Engine(s):**
168
-
169
  - [PyTorch](https://github.com/nvidia/cosmos3)
170
  - [vLLM-Omni](https://github.com/vllm-project/vllm-omni)
171
  - [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)
172
- - [SGLang](https://github.com/sgl-project/sglang)
173
 
174
  **Supported Hardware Microarchitecture Compatibility:**
175
-
176
  - NVIDIA Ampere
177
  - NVIDIA Blackwell
178
  - NVIDIA Hopper
179
 
180
- **Operating System(s):**
181
-
182
- - Linux
183
-
184
- **Note:** Only BF16 precision is tested. Other precisions like FP4, FP8, and FP16 are not officially supported.
185
-
186
- The integration of foundation and fine-tuned models into AI systems requires additional testing using use-case-specific data to ensure safe and effective deployment. Following the V-model methodology, iterative testing and validation at both unit and system levels are essential to mitigate risks, meet technical and functional requirements, and ensure compliance with safety and ethical standards before deployment.
187
-
188
  ## Training, Testing, and Evaluation Datasets
189
 
190
  ### Dataset Overview
191
-
192
  - **Total Size:** 1.3B data points
193
  - **Total Number of Datasets:** 393 dataset entries
194
- - **Dataset partition:** Training [100%], Testing [N/A — evaluation benchmarks used separately], Validation [N/A — evaluation benchmarks used separately]
195
- - **Time period for training data collection:** 2024–2026
196
- - **Time period for testing data collection:** N/A (standard public benchmarks)
197
- - **Time period for validation data collection:** N/A (standard public benchmarks)
198
 
199
- Raw data from internal and external sources is transformed into training-ready data through multiple stages of curation, filtering, and quality review. Data acquisition spans diverse multimodal sources — robotics, autonomous driving, industrial environments, indoor and outdoor scenes, varied lighting and weather conditions, camera viewpoints, object categories, and human activities — to broaden coverage across Physical AI operating environments. Automated filtering pipelines remove corrupted, duplicate, low-quality, and restricted content. Metadata analysis, heuristic rules, and model-assisted classifiers are applied during preprocessing to flag anomalous distributions and low-diversity subsets. Human review supplements automated filtering for selected datasets, benchmark construction, and targeted quality analysis. Datasets are balanced across modalities and task categories — visual reasoning, text-to-image, text-to-video, image-to-video, audio generation, video transfer, action-conditioned generation, and action command generation — to reduce overrepresentation of narrow domains. Synthetic and simulation-based augmentation supplements coverage of rare physical interactions and edge-case scenarios. Deduplication and provenance tracking are applied across the corpus. The resulting processed data is converted into model-ready tokenized or encoded representations through modality-specific preprocessors before training begins.
200
-
201
- Training datasets passed through multiple layers of automated and manual safeguards designed to reduce the presence of harmful or policy-violating content across categories including weapons and weapons-related instructional content, criminal planning, child sexual abuse material (CSAM), non-consensual intimate imagery (NCII), sexual content involving minors, harassment, hate speech, profanity, threats and incitement to violence, self-harm or suicide-related content, and graphic violence. Data sources are reviewed for licensing compatibility, provenance, and alignment with internal data governance and safety policies before admission into training corpora. Automated filtering pipelines combine multiple detection strategies: hash-matching against known CSAM and NCII reference databases; classifier-based moderation models trained for explicit sexual content, hate speech, violence, weapons imagery, and other restricted categories; keyword and regex-based screening for criminal-planning, threats, and self-harm phrases in text data; metadata and provenance heuristics for source-level risk signals; and embedding-based anomaly detection to surface samples that fall outside expected distributions. Human review and targeted audits supplement automated filtering for selected datasets, benchmark construction, and safety-sensitive evaluation. For multimodal Physical AI data (robotics, autonomous driving, industrial scenes), additional filtering targets invalid action trajectories, physically implausible interactions, and unsafe control sequences. Synthetic and simulation-generated data are evaluated through internal validation before inclusion. Benchmark evaluations and red-team testing are applied post-training to surface remaining safety gaps across world generation, reasoning, audio, and action tasks. No large-scale data-filtering process can guarantee complete removal of all harmful content; residual risks may remain, particularly in rare edge cases or open-world deployment settings. Ongoing monitoring and dataset review continue post-release.
202
 
203
  **Data Modality and Training Data Size**
204
 
@@ -210,796 +128,16 @@ Training datasets passed through multiple layers of automated and manual safegua
210
  | Audio | Not Applicable | 139M |
211
  | Action | Not Applicable | 8M |
212
 
213
- **Data Collection Method by dataset**
214
-
215
- - Hybrid: Automatic/Sensors, Synthetic, Automated
216
-
217
- **Labeling Method by dataset**
218
-
219
- - Hybrid: Human, Automated
220
-
221
- **Properties:** The training, testing, and evaluation datasets consist of diverse multimodal video, image, audio, action, synthetic, and sensor-conditioned data sourced from NVIDIA-owned data and publicly available, commercially permissive datasets. These datasets are curated to exclude known restricted content and to support building an Omni model that learns to generate and reason about dynamic physical environments across world reasoning and generation tasks.
222
-
223
- ### Public Datasets
224
-
225
- | Dataset                                                             | Samples           |
226
- |---|---|
227
- | OpenImage | 1.2M |
228
- | Coyo700M | 100M |
229
- | YouTube Video | 340M |
230
- | UMI | 4.5M |
231
-
232
- ### Private Datasets
233
-
234
- | Dataset                                                             | Samples           |
235
- |---|---|
236
- | Egocentric | 7M |
237
- | Nexar | 0.6M |
238
- | AgiBot | 0.2M |
239
- | HOI | 0.3M |
240
-
241
- ### Synthetic Datasets
242
-
243
- | Dataset | Samples |
244
- |---|---|
245
- | synthetic images generated using HiDream-I1 | 15M |
246
- | synthetic images generated using Qwen-Image-2512 | 14M |
247
- | synthetic captions generated using Qwen3-VL | 1115M |
248
-
249
- ## Evaluation Datasets
250
-
251
- **Data Collection Method by dataset**
252
-
253
- - Hybrid: Automatic/Sensors, Synthetic, Automated
254
-
255
- **Labeling Method by dataset**
256
-
257
- - Hybrid: Human, Automated
258
-
259
- **Properties:** The training, testing, and evaluation datasets consist of diverse multimodal video, image, audio, action, synthetic, and sensor-conditioned data sourced from NVIDIA-owned data and publicly available, commercially permissive datasets. These datasets are curated to exclude known restricted content and to support building an Omni model that learns to generate and reason about dynamic physical environments across world reasoning and generation tasks.
260
-
261
  ## Benchmarks
262
 
263
- Please see our [technical paper](https://research.nvidia.com/labs/cosmos-lab/cosmos3/technical-report.pdf) for detailed evaluations of the base model.
264
-
265
- ### Overall
266
-
267
- ![Overall benchmark results](images/benchmark-overall.png)
268
-
269
- ### Reasoning Benchmarks
270
-
271
- ![Reasoning benchmarks](images/benchmark-reasoning.png)
272
-
273
- ### Generation Benchmarks
274
-
275
- #### Visual-Audio Generation
276
-
277
- ![Visual & audio generation benchmarks](images/benchmark-visual-audio.png)
278
-
279
- #### Action
280
-
281
- ![Action benchmarks — forward and inverse dynamics](images/benchmark-action-1.png)
282
-
283
- ## Usage
284
-
285
- - See [Cosmos](https://github.com/nvidia/cosmos) for details.
286
-
287
- ### Prompt upsampling
288
-
289
- For optimal quality, text prompts should be upsampled into a specific JSON structure. Description and code can be found [here](https://github.com/nvidia/cosmos-framework/blob/main/docs/prompt_upsampling.md).
290
-
291
- For example, for text-to-video upsampling using Opus-4.6:
292
-
293
- ```bash
294
- git clone https://github.com/NVIDIA/cosmos-framework.git packages/cosmos-framework
295
- pip install -e packages/cosmos-framework
296
-
297
- export PROMPT_UPSAMPLER_ENDPOINT_URL="https://api.anthropic.com/v1/"
298
- export PROMPT_UPSAMPLER_MODEL_NAME="claude-opus-4-6"
299
- export PROMPT_UPSAMPLER_API_TOKEN="<you_token>"
300
-
301
- python -m cosmos_framework.inference.prompt_upsampling \
302
- --input assets/example_t2v_prompt_short.txt \
303
- --output /tmp/upsampled_t2v_opus/ \
304
- --mode text2video \
305
- --endpoint-url "${PROMPT_UPSAMPLER_ENDPOINT_URL}" \
306
- --model "${PROMPT_UPSAMPLER_MODEL_NAME}" \
307
- --api-token "${PROMPT_UPSAMPLER_API_TOKEN}" \
308
- --resolution 720 \
309
- --aspect-ratio "16,9"
310
- ```
311
-
312
- The JSON-upsampled version of `assets/example_t2v_prompt_short.txt` is saved in `assets/example_t2v_prompt.json` for convenience, and is used for the video generation examples below.
313
-
314
- ### vLLM-Omni
315
-
316
- #### Container
317
-
318
- ```
319
- docker pull vllm/vllm-omni:cosmos3
320
- ```
321
-
322
- #### General Invocation
323
-
324
- You can use the release-tested `vllm-omni` package for deploying an OpenAI-compatible API inference endpoint.
325
- The recommended vLLM-Omni serving configuration for nvidia/Cosmos3-Nano on H200 is:
326
-
327
- ```bash
328
- vllm serve nvidia/Cosmos3-Nano \
329
- --omni \
330
- --host 0.0.0.0 \
331
- --port 8000 \
332
- --init-timeout 1800
333
- ```
334
-
335
- To speed up inference with additional GPUs, enable context parallelism with `--ulysses-degree` or switch to tensor parallelism with `--tensor-parallel-size`. Setting `--enable-layerwise-offload` can help reduce memory usage on GPUs with less available memory.
336
-
337
- #### Examples
338
-
339
- ##### Download example prompts
340
-
341
- The example inputs (`assets/`) live in this model repo. Download just this folder with the Hugging Face CLI:
342
-
343
- ```bash
344
- pip install -U "huggingface_hub[cli]"
345
- hf download nvidia/Cosmos3-Nano assets/ --local-dir Cosmos3-Nano
346
- cd Cosmos3-Nano
347
- ```
348
-
349
- Run all commands below from the downloaded repo root.
350
-
351
- ---
352
-
353
- ##### Image to video generation
354
-
355
- ```python
356
- import json
357
- import mimetypes
358
- from pathlib import Path
359
-
360
- import requests
361
-
362
- # 1. Read JSON-upsampled prompt and negative prompt
363
- json_prompt = json.load(open("assets/example_i2v_prompt.json"))
364
- negative_prompt = json.load(open("assets/negative_prompt.json"))
365
-
366
- # 2. Build and send the multipart API request
367
- url = "http://localhost:8000/v1/videos/sync"
368
- image_path = Path("assets/example_i2v_input.jpg")
369
- mime_type = mimetypes.guess_type(image_path)[0] or "image/png"
370
- data = {
371
- "prompt": json.dumps(json_prompt),
372
- "negative_prompt": json.dumps(negative_prompt),
373
- "size": "1280x720",
374
- "num_frames": "189",
375
- "fps": "24",
376
- "num_inference_steps": "35",
377
- "guidance_scale": "6.0",
378
- "max_sequence_length": "4096",
379
- "flow_shift": "10.0",
380
- "extra_params": json.dumps(
381
- {
382
- "use_resolution_template": False,
383
- "use_duration_template": False,
384
- "guardrails": True,
385
- }
386
- ),
387
- "seed": "1111",
388
- }
389
-
390
- with image_path.open("rb") as image_file:
391
- files = {
392
- "input_reference": (image_path.name, image_file, mime_type),
393
- }
394
- print("Sending request to server...")
395
- response = requests.post(
396
- url,
397
- data=data,
398
- files=files,
399
- headers={"Accept": "video/mp4"},
400
- )
401
- response.raise_for_status()
402
-
403
- # 3. Save the generated video
404
- output_path = Path("/tmp/cosmos3_nano_i2v.mp4")
405
- output_path.write_bytes(response.content)
406
- print(f"Saved video to {output_path}")
407
- ```
408
-
409
- Example output:
410
-
411
- <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_i2v_output.mp4"></video>
412
-
413
- ---
414
-
415
- ##### Text to video generation
416
-
417
- ```python
418
- import json
419
- from pathlib import Path
420
-
421
- import requests
422
-
423
- # 1. Read JSON-upsampled prompt and negative prompt
424
- json_prompt = json.load(open("assets/example_t2v_prompt.json"))
425
- negative_prompt = json.load(open("assets/negative_prompt.json"))
426
-
427
- # 2. Build your API payload
428
- data = {
429
- "prompt": json.dumps(json_prompt),
430
- "negative_prompt": json.dumps(negative_prompt),
431
- "size": "1280x720",
432
- "num_frames": "189",
433
- "fps": "24",
434
- "num_inference_steps": "35",
435
- "guidance_scale": "6.0",
436
- "max_sequence_length": "4096",
437
- "flow_shift": "10.0",
438
- "extra_params": json.dumps(
439
- {
440
- "use_resolution_template": False,
441
- "use_duration_template": False,
442
- "guardrails": True,
443
- }
444
- ),
445
- "seed": "123",
446
- }
447
-
448
- # 3. Send the POST request
449
- url = "http://localhost:8000/v1/videos/sync"
450
- print("Sending request to server...")
451
- response = requests.post(
452
- url,
453
- data=data,
454
- headers={"Accept": "video/mp4"},
455
- )
456
- response.raise_for_status()
457
-
458
- # 4. Save the generated video
459
- output_path = Path("/tmp/cosmos3_nano_t2v.mp4")
460
- output_path.write_bytes(response.content)
461
- print(f"Saved video to {output_path}")
462
- ```
463
-
464
- Example output:
465
-
466
- <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_t2v_output.mp4"></video>
467
-
468
- ---
469
-
470
- ##### Image to Video + Audio generation
471
-
472
- ```python
473
- import json
474
- import mimetypes
475
- from pathlib import Path
476
-
477
- import requests
478
-
479
- # 1. Read JSON-upsampled prompt and negative prompt
480
- json_prompt = json.load(open("assets/example_i2v_prompt.json"))
481
- negative_prompt = json.load(open("assets/negative_prompt.json"))
482
-
483
- # 2. Build and send the multipart API request
484
- url = "http://localhost:8000/v1/videos/sync"
485
- image_path = Path("assets/example_i2v_input.jpg")
486
- mime_type = mimetypes.guess_type(image_path)[0] or "image/png"
487
- data = {
488
- "prompt": json.dumps(json_prompt),
489
- "negative_prompt": json.dumps(negative_prompt),
490
- "size": "1280x720",
491
- "num_frames": "189",
492
- "fps": "24",
493
- "num_inference_steps": "35",
494
- "guidance_scale": "6.0",
495
- "max_sequence_length": "4096",
496
- "generate_sound": "true",
497
- "sound_duration": "7.875",
498
- "flow_shift": "10.0",
499
- "extra_params": json.dumps(
500
- {
501
- "use_resolution_template": False,
502
- "use_duration_template": False,
503
- "guardrails": True,
504
- }
505
- ),
506
- "seed": "0",
507
- }
508
-
509
- with image_path.open("rb") as image_file:
510
- files = {
511
- "input_reference": (image_path.name, image_file, mime_type),
512
- }
513
- print("Sending request to server...")
514
- response = requests.post(
515
- url,
516
- data=data,
517
- files=files,
518
- headers={"Accept": "video/mp4"},
519
- )
520
- response.raise_for_status()
521
-
522
- # 3. Save the generated video
523
- output_path = Path("/tmp/cosmos3_nano_i2vs.mp4")
524
- output_path.write_bytes(response.content)
525
- print(f"Saved video to {output_path}")
526
- ```
527
-
528
- Example output:
529
-
530
- <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_i2vs_output.mp4"></video>
531
-
532
- ---
533
-
534
- ##### Text to Video + Audio generation
535
-
536
- ```python
537
- import json
538
- from pathlib import Path
539
-
540
- import requests
541
-
542
- # 1. Read JSON-upsampled prompt and negative prompt
543
- json_prompt = json.load(open("assets/example_t2vs_prompt.json"))
544
- negative_prompt = json.load(open("assets/negative_prompt.json"))
545
-
546
- # 2. Build your API payload
547
- data = {
548
- "prompt": json.dumps(json_prompt),
549
- "negative_prompt": json.dumps(negative_prompt),
550
- "size": "1280x720",
551
- "num_frames": "189",
552
- "fps": "24",
553
- "num_inference_steps": "35",
554
- "guidance_scale": "6.0",
555
- "max_sequence_length": "4096",
556
- "generate_sound": "true",
557
- "sound_duration": "7.875",
558
- "flow_shift": "10.0",
559
- "extra_params": json.dumps(
560
- {
561
- "use_resolution_template": False,
562
- "use_duration_template": False,
563
- "guardrails": True,
564
- }
565
- ),
566
- "seed": "0",
567
- }
568
-
569
- # 3. Send the POST request
570
- url = "http://localhost:8000/v1/videos/sync"
571
- print("Sending request to server...")
572
- response = requests.post(
573
- url,
574
- data=data,
575
- headers={"Accept": "video/mp4"},
576
- )
577
- response.raise_for_status()
578
-
579
- # 4. Save the generated video
580
- output_path = Path("/tmp/cosmos3_nano_t2vs.mp4")
581
- output_path.write_bytes(response.content)
582
- print(f"Saved video to {output_path}")
583
- ```
584
-
585
- Example output:
586
-
587
- <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_t2vs_output.mp4"></video>
588
-
589
- ---
590
-
591
- ##### Action generation
592
-
593
- The forward-dynamics example uses AgiBotWorld-Beta robotics action trajectories, and the inverse-dynamics examples use autonomous-vehicle (AV) action trajectories. Source files:
594
-
595
- - Forward dynamics first frame: `assets/example_action_fd_agibotworld_first_frame.png`
596
- - Forward dynamics action chunks: `assets/example_action_fd_agibotworld_action_chunks.json`
597
- - Forward dynamics output video: `assets/example_action_fd_agibotworld_4chunk_output.mp4`
598
- - Inverse dynamics source videos: `assets/example_action_id_av_0_input.mp4`, `assets/example_action_id_av_1_input.mp4`
599
- - Inverse dynamics predicted actions: `assets/example_action_id_av_0_output.json`, `assets/example_action_id_av_1_output.json`
600
-
601
- ###### Action forward dynamics
602
-
603
- The example below performs a 4-chunk AgiBotWorld-Beta robotics rollout with the vLLM-Omni `/v1/videos/sync` inference endpoint. Each request sends one conditioning frame through `input_reference` and one 16-step normalized 29-D action chunk through `extra_params["action"]`. The request also sets the top-level `size` field to the input image resolution, so vLLM-Omni returns each chunk at the same resolution as the conditioning image without reflection padding. The stitched output drops each chunk's conditioning frame, producing 64 generated frames. The script extracts the last generated frame from each chunk and uses it as the next chunk's conditioning frame.
604
-
605
- ```python
606
- import json
607
- import mimetypes
608
- from pathlib import Path
609
-
610
- import imageio.v3 as iio
611
- import numpy as np
612
- import requests
613
- from PIL import Image
614
-
615
- url = "http://localhost:8000/v1/videos/sync"
616
- first_frame_path = Path("assets/example_action_fd_agibotworld_first_frame.png")
617
- action_spec = json.loads(Path("assets/example_action_fd_agibotworld_action_chunks.json").read_text())
618
- action_chunks = action_spec["action_chunks"]
619
-
620
- prompt = action_spec.get("prompt", "Pickup items in the supermarket")
621
- fps = int(action_spec.get("fps", 10))
622
- action_chunk_size = int(action_spec.get("action_chunk_size", 16))
623
- current_frame_path = first_frame_path
624
- input_width, input_height = Image.open(first_frame_path).size
625
- chunk_video_paths = []
626
- stitch_frames = []
627
-
628
- for chunk_idx, action_chunk in enumerate(action_chunks):
629
- mime_type = mimetypes.guess_type(current_frame_path)[0] or "image/png"
630
- extra_params = {
631
- "action_mode": "forward_dynamics",
632
- "domain_name": action_spec.get("domain_name", "agibotworld"),
633
- "action_chunk_size": action_chunk_size,
634
- "image_size": action_spec.get("image_size", 480),
635
- "view_point": action_spec.get("view_point", "concat_view"),
636
- "action": action_chunk,
637
- "guardrails": True,
638
- }
639
- data = {
640
- "prompt": prompt,
641
- "num_frames": str(action_chunk_size + 1), # conditioning frame + generated frames
642
- "fps": str(fps),
643
- "size": f"{input_width}x{input_height}", # return chunks at input resolution
644
- "num_inference_steps": "30",
645
- "guidance_scale": "1.0",
646
- "flow_shift": "10.0",
647
- "seed": "0",
648
- "extra_params": json.dumps(extra_params),
649
- }
650
-
651
- with current_frame_path.open("rb") as image_file:
652
- files = {"input_reference": (current_frame_path.name, image_file, mime_type)}
653
- print(f"Sending action FD chunk {chunk_idx} to vLLM-Omni...")
654
- response = requests.post(
655
- url,
656
- data=data,
657
- files=files,
658
- headers={"Accept": "video/mp4"},
659
- timeout=600,
660
- )
661
- response.raise_for_status()
662
-
663
- chunk_video_path = Path(f"/tmp/cosmos3_nano_action_fd_chunk_{chunk_idx:02d}.mp4")
664
- chunk_video_path.write_bytes(response.content)
665
- chunk_video_paths.append(chunk_video_path)
666
-
667
- # The returned chunk contains the conditioning frame followed by generated frames.
668
- # Drop the conditioning frame when stitching the generated-only rollout.
669
- frames = iio.imread(chunk_video_path)
670
- stitch_frames.extend(frames[1:])
671
-
672
- # Autoregressive conditioning: use the final generated frame from this chunk
673
- # as the input image for the next vLLM-Omni request.
674
- if chunk_idx + 1 < len(action_chunks):
675
- current_frame_path = Path(f"/tmp/cosmos3_nano_action_fd_ar_frame_{chunk_idx + 1:02d}.png")
676
- iio.imwrite(current_frame_path, frames[-1])
677
-
678
- stitched_path = Path("/tmp/cosmos3_nano_action_fd_agibotworld_4chunk.mp4")
679
- iio.imwrite(stitched_path, np.asarray(stitch_frames), fps=fps)
680
- print("Generated chunk videos:", chunk_video_paths)
681
- print("Saved stitched rollout:", stitched_path)
682
- print("stitched resolution:", f"{input_width}x{input_height}")
683
- ```
684
-
685
-
686
- Example output:
687
-
688
- <video width="640" controls src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_action_fd_agibotworld_4chunk_output.mp4"></video>
689
-
690
- ###### Action inverse dynamics
691
-
692
- ```python
693
- import json
694
- import time
695
- from pathlib import Path
696
-
697
- import requests
698
-
699
- base_url = "http://localhost:8000"
700
- input_videos = {
701
- "av_inverse_0": Path("assets/example_action_id_av_0_input.mp4"),
702
- "av_inverse_1": Path("assets/example_action_id_av_1_input.mp4"),
703
- }
704
-
705
- for name, video_path in input_videos.items():
706
- extra_params = {
707
- "action_mode": "inverse_dynamics",
708
- "domain_name": "av",
709
- "action_chunk_size": 60,
710
- "image_size": 480,
711
- "view_point": "ego_view",
712
- "raw_action_dim": 9,
713
- "guardrails": True,
714
- }
715
- data = {
716
- "prompt": "You are an autonomous vehicle planning system.",
717
- "num_frames": "61",
718
- "fps": "10",
719
- "num_inference_steps": "30",
720
- "guidance_scale": "1.0",
721
- "flow_shift": "10.0",
722
- "seed": "0",
723
- "extra_params": json.dumps(extra_params),
724
- }
725
-
726
- with video_path.open("rb") as video_file:
727
- files = {
728
- "input_reference": (video_path.name, video_file, "video/mp4"),
729
- }
730
- print(f"Submitting {name} request to server...")
731
- response = requests.post(f"{base_url}/v1/videos", data=data, files=files)
732
- response.raise_for_status()
733
- initial = response.json()
734
-
735
- while True:
736
- response = requests.get(f"{base_url}/v1/videos/{initial['id']}", timeout=30)
737
- response.raise_for_status()
738
- final = response.json()
739
- print(initial["id"], final.get("status"), f"{final.get('progress', 0)}%")
740
- if final.get("status") == "completed":
741
- break
742
- if final.get("status") in {"failed", "cancelled"}:
743
- raise RuntimeError(json.dumps(final, indent=2))
744
- time.sleep(2)
745
-
746
- action = final.get("action")
747
- if not action or "data" not in action:
748
- raise RuntimeError(f"Response did not include action data: {json.dumps(final, indent=2)}")
749
-
750
- output_path = Path(f"/tmp/cosmos3_nano_action_id_{name}.json")
751
- output_path.write_text(json.dumps(action, indent=2))
752
- print(f"Saved predicted action to {output_path}")
753
- print("action shape:", action.get("shape"), "dtype:", action.get("dtype"))
754
- ```
755
-
756
- Example outputs:
757
-
758
- - [av_inverse_0 predicted action JSON](https://huggingface.co/nvidia/Cosmos3-Nano/blob/main/assets/example_action_id_av_0_output.json)
759
- - [av_inverse_1 predicted action JSON](https://huggingface.co/nvidia/Cosmos3-Nano/blob/main/assets/example_action_id_av_1_output.json)
760
-
761
- <img width="1280" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_action_id_av_0_output.png">
762
-
763
- <img width="1280" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_action_id_av_1_output.png">
764
-
765
- ### vLLM
766
-
767
- #### General Invocation
768
-
769
- You can use the release-tested `vllm` package for deploying an OpenAI-compatible API endpoint:
770
-
771
- ```shell
772
- uv venv --python 3.13 --seed --managed-python
773
- source .venv/bin/activate
774
- uv pip install --torch-backend=cu130 "vllm==0.21.0" \
775
- "vllm-cosmos3 @ git+https://github.com/NVIDIA/cosmos-framework.git#subdirectory=packages/vllm-cosmos3" \
776
- openai
777
- ```
778
-
779
- Use `--torch-backend=cu130 "vllm==0.21.0"` for CUDA 13 drivers. For CUDA 12.8 drivers, use `--torch-backend=cu128 "vllm==0.19.1"`.
780
-
781
- Start the Reasoner server:
782
-
783
- ```shell
784
- CUDA_VISIBLE_DEVICES=0 \
785
- vllm serve nvidia/Cosmos3-Nano \
786
- --hf-overrides '{"architectures": ["Cosmos3ReasonerForConditionalGeneration"]}' \
787
- --tensor-parallel-size 1 \
788
- --mm-encoder-tp-mode data \
789
- --async-scheduling \
790
- --allowed-local-media-path / \
791
- --media-io-kwargs '{"video": {"num_frames": -1}}' \
792
- --port 8000
793
- ```
794
-
795
- #### Examples
796
-
797
- ##### Reasoning
798
-
799
- Run this example from the model repository root. It reads the robot planning prompt from `assets/example_reasoning_prompt.json` and sends `assets/example_reasoning_input.png` to the local vLLM server.
800
-
801
- ```python
802
- import json
803
- from pathlib import Path
804
-
805
- import openai
806
-
807
- # 1. Read the image reasoning prompt
808
- example = json.load(open("assets/example_reasoning_prompt.json"))
809
- image_path = Path("assets/example_reasoning_input.png").resolve()
810
- image_url = image_path.as_uri()
811
-
812
- # 2. Query the OpenAI-compatible vLLM server
813
- client = openai.OpenAI(
814
- api_key="EMPTY",
815
- base_url="http://localhost:8000/v1",
816
- )
817
-
818
- response = client.chat.completions.create(
819
- model=client.models.list().data[0].id,
820
- messages=[
821
- {
822
- "role": "user",
823
- "content": [
824
- {"type": "image_url", "image_url": {"url": image_url}},
825
- {"type": "text", "text": example["prompt"]},
826
- ],
827
- },
828
- ],
829
- max_tokens=example["max_tokens"],
830
- seed=0,
831
- )
832
-
833
- # 3. Print the generated reasoning output
834
- print(response.choices[0].message.content)
835
- ```
836
-
837
- Example input:
838
-
839
- <img src="assets/example_reasoning_input.png" width="640">
840
-
841
- Prompt:
842
-
843
- ```text
844
- The task is to put flower into the red bottle. Generate a plan consisting of subtasks for accomplish the task.
845
- ```
846
-
847
- Example output from the command above:
848
-
849
- ```text
850
- Move your arm to the flower. Grasp the flower. Move your arm to the red bottle. Place the flower in the red bottle.
851
- ```
852
-
853
- ### Diffusers
854
-
855
- Cosmos3 is fully supported within the popular HuggingFace Diffusers package. This integration makes it a supported inference backend, allowing developers to easily incorporate Cosmos3's capabilities — such as text-to-video generation — into their pipelines using the `Cosmos3OmniPipeline` class, as demonstrated by the provided code examples (see examples for other modalities on the HuggingFace Cosmos3 page).
856
-
857
- #### Container
858
-
859
- To install diffusers with Cosmos3OmniPipeline:
860
-
861
- ```
862
- uv venv --python 3.13 --seed --managed-python
863
- source .venv/bin/activate
864
- uv pip install \
865
- "diffusers @ git+https://github.com/huggingface/diffusers.git" \
866
- accelerate \
867
- av \
868
- cosmos_guardrail \
869
- huggingface_hub \
870
- imageio \
871
- imageio-ffmpeg \
872
- torch \
873
- torchvision \
874
- transformers
875
-
876
- ```
877
-
878
- #### Examples
879
-
880
- ##### Text to video generation
881
-
882
- Run this example from the model repository root. It reads the JSON-upsampled prompt from `assets/example_t2v_prompt.json` and the negative prompt from `assets/negative_prompt.json`. It then loads the pipeline and generate the video, then save it to an MP4 file.
883
-
884
- ```python
885
- import json
886
- import torch
887
- from diffusers import Cosmos3OmniPipeline
888
- from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
889
- from diffusers.utils import export_to_video
890
-
891
- # Read JSON-upsampled prompt and negative prompt
892
- json_prompt = json.load(open("assets/example_t2v_prompt.json"))
893
- negative_prompt = json.load(open("assets/negative_prompt.json"))
894
-
895
- pipe = Cosmos3OmniPipeline.from_pretrained(
896
- "nvidia/Cosmos3-Nano",
897
- torch_dtype=torch.bfloat16,
898
- device_map="cuda",
899
- enable_safety_checker=True,
900
- )
901
- pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=10.0)
902
-
903
- result = pipe(
904
- prompt=json.dumps(json_prompt),
905
- negative_prompt=json.dumps(negative_prompt),
906
- num_frames=189,
907
- height=720,
908
- width=1280,
909
- num_inference_steps=35,
910
- guidance_scale=6.0,
911
- generator=torch.Generator(device="cuda").manual_seed(123),
912
- )
913
-
914
- export_to_video(result.video, "/tmp/cosmos3_nano_t2v_diffusers.mp4", fps=24)
915
- print("Saved video to /tmp/cosmos3_nano_t2v_diffusers.mp4")
916
- ```
917
-
918
- Example output:
919
-
920
- <video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Nano/resolve/main/assets/example_t2v_diffusers_output.mp4"></video>
921
-
922
- ### SGLang
923
-
924
- [SGLang Diffusion](https://docs.sglang.io/docs/sglang-diffusion/index) can serve `nvidia/Cosmos3-Nano` through OpenAI-compatible image and video generation endpoints. Install SGLang from the main branch with diffusion dependencies, then start a server:
925
-
926
- ```shell
927
- git clone --branch main https://github.com/sgl-project/sglang.git
928
- cd sglang
929
- pip install -e "python[diffusion]"
930
- pip install "cosmos-guardrail==0.3.1"
931
-
932
- sglang serve --model-path nvidia/Cosmos3-Nano
933
- ```
934
-
935
- Cosmos 3 support in SGLang Diffusion currently requires the SGLang main branch. Switch to a stable SGLang release once Cosmos 3 support is included there.
936
-
937
- For a video-specialized checkpoint, use `Cosmos3-Super-Image2Video` with multiple GPUs:
938
-
939
- ```shell
940
- sglang serve \
941
- --model-path nvidia/Cosmos3-Super-Image2Video \
942
- --num-gpus 4
943
- ```
944
-
945
- Supported SGLang endpoints:
946
-
947
- | Mode | Endpoint | Notes |
948
- | --- | --- | --- |
949
- | Text to image | `POST /v1/images/generations` | Returns base64 image data by default |
950
- | Text to video | `POST /v1/videos` | Creates an async job; poll `GET /v1/videos/{id}` and download `/content` |
951
- | Image to video | `POST /v1/videos` | Upload the conditioning image with `input_reference` |
952
-
953
- Example text-to-video request:
954
-
955
- ```shell
956
- job_id=$(curl -sS -X POST http://localhost:30000/v1/videos \
957
- --form-string "prompt=A small warehouse robot moves a blue box across a clean floor." \
958
- --form-string "negative_prompt=blurry, distorted, low quality" \
959
- --form-string "size=1280x720" \
960
- --form-string "num_frames=81" \
961
- --form-string "fps=24" \
962
- --form-string "num_inference_steps=35" \
963
- --form-string "guidance_scale=4.0" \
964
- --form-string "flow_shift=10.0" \
965
- --form-string "seed=42" \
966
- --form-string 'extra_params={"guardrails":true,"use_resolution_template":false,"use_duration_template":false}' \
967
- | python -c 'import json, sys; print(json.load(sys.stdin)["id"])')
968
-
969
- while true; do
970
- status=$(curl -sS "http://localhost:30000/v1/videos/${job_id}" \
971
- | python -c 'import json, sys; print(json.load(sys.stdin)["status"])')
972
- [ "$status" = "completed" ] && break
973
- [ "$status" = "failed" ] && exit 1
974
- sleep 1
975
- done
976
-
977
- curl -sS -L "http://localhost:30000/v1/videos/${job_id}/content" \
978
- -o cosmos3_t2v_output.mp4
979
- ```
980
-
981
- SGLang accepts Cosmos 3 request options including `max_sequence_length`, `flow_shift`, `extra_params.guardrails`, `extra_params.use_resolution_template`, and `extra_params.use_duration_template`. Video-to-video, video-with-sound, and action generation are not supported by SGLang yet.
982
-
983
- For complete serving instructions and request examples, see the [Cosmos3 SGLang cookbook](https://docs.sglang.io/cookbook/diffusion/Cosmos/Cosmos3).
984
 
985
  ## Limitations
986
 
987
- Cosmos3 may produce imperfect outputs in challenging scenarios. Generation artifacts include temporal inconsistency, unstable camera or object motion, imprecise physical interactions, inaccurate audio-video synchronization, and action-state drift — especially in long-horizon or high-resolution outputs. Reasoning may also be incorrect: object states, causal relationships, spatial geometry, temporal ordering, agent intent, and future outcomes can be misinferred, and complex or long-context inputs may yield hallucinated entities, inconsistent interpretations, or implausible predictions. Because the model lacks an explicit physics simulator, 3D geometry, 4D space-time evolution, object permanence, contact dynamics, and physical laws are only approximated — producing artifacts such as disappearing or morphing objects, unrealistic collisions, and physically implausible motions. Quality further degrades in out-of-distribution environments, safety-critical edge cases, and domains underrepresented in training.
988
-
989
- Cosmos3 outputs should not be treated as physically accurate simulation, reliable ground-truth reasoning, or safety-certified decision making. Applications involving robotics control, autonomous systems, scientific simulation, or safety-critical planning require additional validation, external constraints, system-level safety analysis, and domain-specific guardrails before deployment.
990
 
991
  ## Inference
992
 
993
- **Acceleration Engine:** [PyTorch](https://pytorch.org/), [vLLM](https://github.com/vllm-project/vllm), [vLLM-Omni](https://github.com/vllm-project/vllm-omni), [Hugging Face Diffusers](https://github.com/huggingface/diffusers), [SGLang](https://github.com/sgl-project/sglang), [SGLang Diffusion](https://docs.sglang.io/docs/sglang-diffusion/index)
994
-
995
- **Test Hardware:** GB200 and H100
996
-
997
- ## Ethical Considerations
998
-
999
- NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. Developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
1000
-
1001
- Please make sure you have proper rights and permissions for all input image and video content; if image or video includes people, personal health information, or intellectual property, the image or video generated will not blur or maintain proportions of image subjects included.
1002
-
1003
- Users are responsible for model inputs and outputs. Users are responsible for ensuring safe integration of this model, including implementing guardrails as well as other safety mechanisms, prior to deployment.
1004
 
1005
- For more detailed information on ethical considerations for this model, please see the Model Card++ [Explainability](EXPLAINABILITY.md), [Bias](BIAS.md), [Safety & Security](SAFETY.md), and [Privacy](PRIVACY.md) subcards. Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
 
1
  ---
2
+ library_name: diffusers
3
  license: other
4
  license_name: openmdw1.1-license
5
+ license_link: https://openmdw.ai/license/1-1/
6
+ pipeline_tag: any-to-any
 
7
  tags:
8
+ - nvidia
9
+ - cosmos
10
+ - cosmos3
11
+ - vllm
12
+ - vllm-omni
13
+ - text, image, video, audio, and action generation
14
+ - omnimodel
 
 
 
15
  ---
16
 
17
  # **Cosmos 3: Omnimodal World Models for Physical AI**
18
+ **[Model Collection](https://huggingface.co/collections/nvidia/cosmos3)** | **[Code](https://github.com/nvidia/cosmos)** | **[Paper](https://huggingface.co/papers/2606.02800)** | **[Website](https://research.nvidia.com/labs/cosmos-lab/cosmos3/)**
19
 
20
  [NVIDIA Cosmos™](https://github.com/nvidia/cosmos) is a world foundation model platform designed to accelerate the development of Physical AI by enabling machines to understand, simulate, and interact with the physical world across robotics, autonomous driving, and smart space environments, including industrial and factory-scale applications.
21
 
22
+ Cosmos 3 is a family of omnimodal world models designed to jointly process and generate language, image, video, audio, and action sequences within a unified mixture-of-transformers architecture.
23
+
24
+ ## Sample Usage (Diffusers)
25
+
26
+ Cosmos 3 is fully supported within the Hugging Face `diffusers` library.
27
+
28
+ ```python
29
+ import torch
30
+ from diffusers import Cosmos3OmniPipeline
31
+ from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
32
+ from diffusers.utils import export_to_video
33
+
34
+ pipe = Cosmos3OmniPipeline.from_pretrained(
35
+ "nvidia/Cosmos3-Nano",
36
+ torch_dtype=torch.bfloat16,
37
+ device_map="cuda",
38
+ )
39
+ pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=10.0)
40
+
41
+ result = pipe(
42
+ prompt="A mobile robot navigates a warehouse aisle and stops at a shelf.",
43
+ negative_prompt="",
44
+ image=None,
45
+ num_frames=189,
46
+ height=720,
47
+ width=1280,
48
+ fps=24,
49
+ num_inference_steps=35,
50
+ guidance_scale=6.0,
51
+ enable_sound=False,
52
+ add_resolution_template=False,
53
+ add_duration_template=False,
54
+ generator=torch.Generator(device="cuda").manual_seed(1234),
55
+ )
56
+
57
+ export_to_video(result.video, "cosmos3_t2v.mp4", fps=24, macro_block_size=1)
58
+ ```
59
+
60
  # Model Overview: Cosmos3-Nano
61
 
62
  ## Description
 
87
 
88
  This model is released under the [OpenMDW1.1](https://openmdw.ai/license/1-1/)
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  ## Model Architecture
91
 
92
  **Architecture Type:** Transformer
 
93
  **Network Architecture:** Mixture-of-Transformers (MoT)
94
 
95
+ Cosmos3 is an Omni-modal foundation model built on a Mixture-of-Transformers (MoT) architecture consisting of two complementary transformer towers: an autoregressive transformer for discrete token generation and a diffusion transformer for continuous multimodal generation. During inference, text is generated through standard next-token autoregressive decoding, while non-text modalities, such as images, video, audio, and actions, are synthesized through iterative denoising.
 
 
96
 
97
  **Number of trainable model parameters:**
 
98
  - Cosmos3-Nano: 16B
99
  - Cosmos3-Super: 64B
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  ## Software Integration
102
 
103
  **Runtime Engine(s):**
 
104
  - [PyTorch](https://github.com/nvidia/cosmos3)
105
  - [vLLM-Omni](https://github.com/vllm-project/vllm-omni)
106
  - [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)
 
107
 
108
  **Supported Hardware Microarchitecture Compatibility:**
 
109
  - NVIDIA Ampere
110
  - NVIDIA Blackwell
111
  - NVIDIA Hopper
112
 
 
 
 
 
 
 
 
 
113
  ## Training, Testing, and Evaluation Datasets
114
 
115
  ### Dataset Overview
 
116
  - **Total Size:** 1.3B data points
117
  - **Total Number of Datasets:** 393 dataset entries
 
 
 
 
118
 
119
+ The training, testing, and evaluation datasets consist of diverse multimodal video, image, audio, action, synthetic, and sensor-conditioned data sourced from NVIDIA-owned data and publicly available, commercially permissive datasets.
 
 
120
 
121
  **Data Modality and Training Data Size**
122
 
 
128
  | Audio | Not Applicable | 139M |
129
  | Action | Not Applicable | 8M |
130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  ## Benchmarks
132
 
133
+ Please see our [technical paper](https://huggingface.co/papers/2606.02800) for detailed evaluations of the model.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
  ## Limitations
136
 
137
+ Cosmos3 may produce artifacts in long, high-resolution, or physically complex outputs. Common failure modes include temporal inconsistency, unstable camera or object motion, inaccurate sound-video alignment, imperfect action-state consistency, and physically implausible dynamics. It does not have an explicit physics engine and approximates physical laws.
 
 
138
 
139
  ## Inference
140
 
141
+ **Acceleration Engine:** [PyTorch](https://pytorch.org/), [vLLM](https://github.com/vllm-project/vllm), [vLLM-Omni](https://github.com/vllm-project/vllm-omni), [Hugging Face Diffusers](https://github.com/huggingface/diffusers)
 
 
 
 
 
 
 
 
 
 
142
 
143
+ **Test Hardware:** GB200 and H100
sound_tokenizer/diffusion_pytorch_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a4b6da5975bf89f6853fe589ad4752d281ac79fbdfad52ea90537fa080b4b9c2
3
- size 1985176840
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d4c61cde38acfb0cad9048a140c3533750277a8462b19dc08450d9fe1ad9879
3
+ size 1892409600