Add pipeline tag, library name, and paper link

#13
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +47 -452
README.md CHANGED
@@ -1,466 +1,52 @@
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-omni
12
- - diffusers
13
- - text-to-image
14
- - image-generation
15
- countDownloads:
16
- - checkpoint.json
17
- - config.json
18
- - generation_config.json
19
- - model.safetensors.index.json
20
- - model_index.json
21
- - tokenizer.json
22
- - tokenizer_config.json
23
- - sound_tokenizer/config.json
24
- - sound_tokenizer/diffusion_pytorch_model.safetensors
25
- - text_tokenizer/tokenizer.json
26
- - text_tokenizer/tokenizer_config.json
27
- - transformer/config.json
28
- - transformer/diffusion_pytorch_model-00001-of-00027.safetensors
29
- - transformer/diffusion_pytorch_model-00002-of-00027.safetensors
30
- - transformer/diffusion_pytorch_model-00003-of-00027.safetensors
31
- - transformer/diffusion_pytorch_model-00004-of-00027.safetensors
32
- - transformer/diffusion_pytorch_model-00005-of-00027.safetensors
33
- - transformer/diffusion_pytorch_model-00006-of-00027.safetensors
34
- - transformer/diffusion_pytorch_model-00007-of-00027.safetensors
35
- - transformer/diffusion_pytorch_model-00008-of-00027.safetensors
36
- - transformer/diffusion_pytorch_model-00009-of-00027.safetensors
37
- - transformer/diffusion_pytorch_model-00010-of-00027.safetensors
38
- - transformer/diffusion_pytorch_model-00011-of-00027.safetensors
39
- - transformer/diffusion_pytorch_model-00012-of-00027.safetensors
40
- - transformer/diffusion_pytorch_model-00013-of-00027.safetensors
41
- - transformer/diffusion_pytorch_model-00014-of-00027.safetensors
42
- - transformer/diffusion_pytorch_model-00015-of-00027.safetensors
43
- - transformer/diffusion_pytorch_model-00016-of-00027.safetensors
44
- - transformer/diffusion_pytorch_model-00017-of-00027.safetensors
45
- - transformer/diffusion_pytorch_model-00018-of-00027.safetensors
46
- - transformer/diffusion_pytorch_model-00019-of-00027.safetensors
47
- - transformer/diffusion_pytorch_model-00020-of-00027.safetensors
48
- - transformer/diffusion_pytorch_model-00021-of-00027.safetensors
49
- - transformer/diffusion_pytorch_model-00022-of-00027.safetensors
50
- - transformer/diffusion_pytorch_model-00023-of-00027.safetensors
51
- - transformer/diffusion_pytorch_model-00024-of-00027.safetensors
52
- - transformer/diffusion_pytorch_model-00025-of-00027.safetensors
53
- - transformer/diffusion_pytorch_model-00026-of-00027.safetensors
54
- - transformer/diffusion_pytorch_model-00027-of-00027.safetensors
55
- - transformer/diffusion_pytorch_model.safetensors.index.json
56
- - vae/config.json
57
- - vae/diffusion_pytorch_model.safetensors
58
- - vision_encoder/config.json
59
- - vision_encoder/model.safetensors
60
  ---
61
 
62
  # **Cosmos 3: Omnimodal World Models for Physical AI**
63
- **[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/)**
64
 
65
- [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.
 
 
66
 
67
  # Model Overview: Cosmos3-Super-Text2Image
68
 
69
  ## Description
70
 
71
- Cosmos3 is a collection of Omnimodal world models capable of generating dynamic, high-quality video, image, audio, and action commands from combinations of text, image, video, and action trajectory inputs. It serves as a foundational building block for a broad range of Physical AI applications and research spanning world understanding, world generation, simulation, and embodied policy learning.
72
-
73
- This model is ready for commercial and non-commercial use.
74
-
75
- **Model Developer:** NVIDIA
76
-
77
- ### Model Versions
78
- - Cosmos3-Nano:
79
- - Given multimodal inputs including text, images, video, audio, and action trajectories, generate coherent text, images, video, audio, and action outputs for multimodal understanding, world simulation, future prediction, action reasoning, and Physical AI applications.
80
-
81
- - Cosmos3-Super:
82
- - Given multimodal inputs including text, images, video, audio, and action trajectories, generate coherent text, images, video, audio, and action outputs for multimodal understanding, world simulation, future prediction, action reasoning, and Physical AI applications.
83
-
84
- - Cosmos3-Nano-Policy-DROID:
85
- - Given language instructions and visual observations from the DROID robot platform, generate robot action trajectories for manipulation and control tasks.
86
-
87
- - Cosmos3-Super-Image2Video:
88
- - Given one input image and text instructions, generate temporally coherent video sequences that are consistent with the provided visual content.
89
-
90
- - Cosmos3-Super-Text2Image:
91
- - Given text input, generate high-fidelity images that are consistent with the provided description.
92
-
93
- ### License
94
-
95
- This model is released under the [OpenMDW1.1](https://openmdw.ai/license/1-1/)
96
-
97
- ### Deployment Geography
98
-
99
- Global
100
-
101
- ### Use Case
102
-
103
- Physical AI: Encompassing robotics, autonomous vehicles (AV), and smart space environments, including industrial and factory-scale applications.
104
-
105
- ### Release Date
106
-
107
- Hugging Face 05/31/2026 via [https://huggingface.co/collections/nvidia/cosmos3](https://huggingface.co/collections/nvidia/cosmos3)
108
- GitHub 05/31/2026 via [https://github.com/nvidia/cosmos](https://github.com/nvidia/cosmos)
109
-
110
- ## Model Architecture
111
-
112
- **Architecture Type:** Transformer
113
-
114
- **Network Architecture:** Mixture-of-Transformers (MoT)
115
-
116
- 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.
117
-
118
- **This model was developed based on:** [Cosmos Framework](https://github.com/nvidia/cosmos-framework)
119
-
120
- **Number of trainable model parameters:**
121
-
122
- - Cosmos3-Nano: 16B
123
- - Cosmos3-Super: 64B
124
- - Cosmos3-Nano-Policy-DROID: 16B
125
- - Cosmos3-Super-Image2Video: 64B
126
- - Cosmos3-Super-Text2Image: 64B
127
-
128
- ## Input/Output Specifications
129
-
130
- - **Generator Input**
131
- - **Input Type(s)**: Text, Image, Video (with audio or without audio), Action Trajectory
132
- - **Input Format(s)**:
133
- - Text: String
134
- - Image: jpg, png, jpeg, webp
135
- - Video (with or without audio): mp4
136
- - Action: json (1D list)
137
- - **Input Parameters**:
138
- - Text: One-dimensional (1D)
139
- - Image: Two-dimensional (2D)
140
- - Video: Three-dimensional (3D)
141
- - Audio: One-dimensional (1D)
142
- - Action trajectory: One-dimensional (1D)
143
- - **Other Properties Related to Input**:
144
- - For video inputs, we accept various resolutions, including 720p, 480p, and 256p.
145
- - 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.
146
- - Image and video inputs are RGB color (8 bits per channel, sRGB color space); grayscale inputs are not supported.
147
- - 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.
148
- - 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).
149
- - **Input Size and Length limits:**
150
- - **Text:** 4096 tokens
151
- - **Image:** 256p, 480p, and 720p resolution at one of these aspect ratios (16:9, 4:3, 1:1, 3:4, 9:16)
152
- - **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.
153
- - **Audio:** Max 0.5 second
154
- - **Action:** 16 – 400 video frames
155
- - **Generator Output**
156
- - **Output Type(s)**: Image, video, audio, action, text
157
- - **Output Format(s)**:
158
- - Image: JPG
159
- - Video: MP4
160
- - Audio: Advanced Audio Coding (AAC) stream (muxed within the MP4)
161
- - Action: 1D list (.json)
162
- - Text: string
163
- - **Output Parameters**:
164
- - Image: Two-dimensional (2D)
165
- - Video: Three-dimensional (3D)
166
- - Audio: One-dimensional (1D)
167
- - Action: One-dimensional (1D)
168
- - Text: One-dimensional (1D)
169
- - **Other Properties Related to Output**:
170
- - 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.
171
- - Video generation supports durations from 5 to 400 frames, with 189 frames as the default generation duration.
172
- - 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).
173
- - Audio: 48 kHz stereo AAC stream muxed into video mp4
174
- - Video: mp4 at the FPS specified in input
175
- - Image: JPEG
176
- - **Reasoner Input**
177
- - **Input Type(s)**: Text, Text+Image, Text+Video
178
- - **Input Format(s)**:
179
- - Text: String
180
- - Image: jpg, png, jpeg, webp
181
- - Video: mp4
182
- - **Input Parameters**:
183
- - Text: One-dimensional (1D)
184
- - Image: Two-dimensional (2D)
185
- - Video: Three-dimensional (3D)
186
- - **Other Properties Related to Input**:
187
- - Video inputs are recommended at a frame rate of 4 fps.
188
- - Long-context inputs supported up to 256K tokens.
189
- - **Input Size and Length limits:**
190
- - **Text:** Up to 256K tokens (context window).
191
- - **Image:** Standard input image formats; passed as file or URL.
192
- - **Video:** mp4 at the recommended 4 fps.
193
- - **Reasoner Output**
194
- - **Output Type(s)**: Text
195
- - **Output Format(s)**:
196
- - Text: string
197
- - **Output Parameters**:
198
- - Text: One-dimensional (1D)
199
- - **Other Properties Related to Output**:
200
- - Default `max_tokens=4096+` is recommended for reasoning outputs; longer outputs may be requested.
201
- - Reasoning outputs may include structured chain-of-thought, 2D/3D point localization, and bounding-box coordinates for vision-based tasks.
202
-
203
- The video content visualizes the input text description as a short animated scene, capturing key elements within the specified time constraints.
204
-
205
- 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.
206
-
207
- ## Software Integration
208
-
209
- **Runtime Engine(s):**
210
-
211
- - [PyTorch](https://github.com/nvidia/cosmos3)
212
- - [vLLM-Omni](https://github.com/vllm-project/vllm-omni)
213
- - [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)
214
-
215
- **Supported Hardware Microarchitecture Compatibility:**
216
-
217
- - NVIDIA Ampere
218
- - NVIDIA Blackwell
219
- - NVIDIA Hopper
220
-
221
- **Operating System(s):**
222
-
223
- - Linux (We have not tested on other operating systems.)
224
-
225
- **Note:** Only BF16 precision is tested. Other precisions like FP4, FP8, and FP16 are not officially supported.
226
-
227
- 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.
228
-
229
- ## Training, Testing, and Evaluation Datasets
230
-
231
- ### Dataset Overview
232
-
233
- - **Total Size:** 1.3B data points
234
- - **Total Number of Datasets:** 393 dataset entries
235
- - **Dataset partition:** Training [100%], Testing [N/A — evaluation benchmarks used separately], Validation [N/A — evaluation benchmarks used separately]
236
- - **Time period for training data collection:** 2024–2026
237
- - **Time period for testing data collection:** N/A (standard public benchmarks)
238
- - **Time period for validation data collection:** N/A (standard public benchmarks)
239
-
240
- 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.
241
-
242
- 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.
243
-
244
- **Data Modality and Training Data Size**
245
-
246
- | Modality | Reasoning Data Sample Count | Generation Data Sample Count |
247
- | -------- | ------------------- | -------------------- |
248
- | Text | 22M | Not Applicable |
249
- | Image | 19M | 767M |
250
- | Video | 1M | 348M |
251
- | Audio | Not Applicable | 139M |
252
- | Action | Not Applicable | 8M |
253
-
254
- **Data Collection Method by dataset**
255
-
256
- - Hybrid: Automatic/Sensors, Synthetic, Automated
257
-
258
- **Labeling Method by dataset**
259
-
260
- - Hybrid: Human, Automated
261
-
262
- **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.
263
-
264
- ### Public Datasets
265
-
266
- | Dataset                                                             | Samples           |
267
- |---|---|
268
- | OpenImage | 1.2M |
269
- | Coyo700M | 100M |
270
- | YouTube Video | 340M |
271
- | UMI | 4.5M |
272
-
273
- ### Private Datasets
274
-
275
- | Dataset                                                             | Samples           |
276
- |---|---|
277
- | Egocentric | 7M |
278
- | Nexar | 0.6M |
279
- | AgiBot | 0.2M |
280
- | HOI | 0.3M |
281
-
282
- ### Synthetic Datasets
283
-
284
- | Dataset | Samples |
285
- |---|---|
286
- | synthetic images generated using HiDream-I1 | 15M |
287
- | synthetic images generated using Qwen-Image-2512 | 14M |
288
- | synthetic captions generated using Qwen3-VL | 1115M |
289
-
290
- ## Evaluation Datasets
291
-
292
- **Data Collection Method by dataset**
293
-
294
- - Hybrid: Automatic/Sensors, Synthetic, Automated
295
-
296
- **Labeling Method by dataset**
297
-
298
- - Hybrid: Human, Automated
299
-
300
- **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.
301
-
302
- ## Benchmarks
303
-
304
- Please see our [technical paper](https://research.nvidia.com/labs/cosmos-lab/cosmos3/technical-report.pdf) for detailed evaluations of the base model.
305
-
306
- ### Text-to-image benchmark results
307
-
308
- ![benchmark results](assets/benchmark-text2image.png)
309
-
310
- ### Artificial Analysis Leaderboard
311
-
312
- #### Open-Source Models [2026/05/28/]
313
-
314
- ![Artificial Analysis Text-to-Image leaderboard — open-source models](assets/benchmark-text2image-leaderboard.png)
315
-
316
- #### All Models [2026/05/28/] (Including Closed-Source)
317
-
318
- ![Artificial Analysis Text-to-Image leaderboard — all models including closed-source](assets/benchmark-text2image-leaderboard-all-models.jpg)
319
-
320
- ## Qualitative examples
321
 
322
- ![Qualitative examples](assets/more_images.jpg)
 
 
 
323
 
324
  ## Usage
325
 
326
- - See [Cosmos](https://github.com/nvidia/cosmos) for details.
327
-
328
- ### Prompt upsampling
329
-
330
- 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).
331
-
332
- For example, for text-to-image upsampling using Opus-4.7:
333
-
334
- ```bash
335
- git clone https://github.com/NVIDIA/cosmos-framework.git packages/cosmos-framework
336
- pip install -e packages/cosmos-framework
337
-
338
- export PROMPT_UPSAMPLER_ENDPOINT_URL="https://api.anthropic.com/v1/"
339
- export PROMPT_UPSAMPLER_MODEL_NAME="claude-opus-4-7"
340
- export PROMPT_UPSAMPLER_API_TOKEN="<your_token>"
341
-
342
- python -m cosmos_framework.inference.prompt_upsampling \
343
- --input assets/original_prompt.txt \
344
- --output /tmp/upsampled_t2i_opus/ \
345
- --mode text2image \
346
- --endpoint-url "${PROMPT_UPSAMPLER_ENDPOINT_URL}" \
347
- --model "${PROMPT_UPSAMPLER_MODEL_NAME}" \
348
- --api-token "${PROMPT_UPSAMPLER_API_TOKEN}" \
349
- --resolution 768 \
350
- --aspect-ratio "1,1"
351
- ```
352
-
353
- The JSON-upsampled version of `assets/original_prompt.txt` is saved in `assets/example_caption.json` for convenience, and is used for the image generation examples below.
354
-
355
- ### vLLM-Omni
356
-
357
- #### Container
358
-
359
- ```
360
- docker pull vllm/vllm-omni:cosmos3
361
- ```
362
-
363
- #### General Invocation
364
-
365
- You can use the release-tested `vllm-omni` package for deploying an OpenAI-compatible API inference endpoint.
366
- The recommended vLLM-Omni serving configuration for `nvidia/Cosmos3-Super-Text2Image` on a 8xH100 node is:
367
-
368
- ```bash
369
- vllm serve nvidia/Cosmos3-Super-Text2Image \
370
- --omni \
371
- --host 0.0.0.0 \
372
- --port 8000 \
373
- --cfg-parallel-size 2 \
374
- --ulysses-degree 4 \
375
- --tensor-parallel-size 1 \
376
- --use-hsdp \
377
- --hsdp-shard-size 8 \
378
- --init-timeout 1800
379
- ```
380
-
381
- Setting `--enable-layerwise-offload` can help with memory usage on GPUs with less available memory; however, please note that for text2image generation, this may incur a significant performance penalty. For 4xH200 or 4xGB200 one can simply use `--cfg-parallel-size 2 --ulysses-degree 2 --tensor-parallel-size 1`.
382
-
383
- #### Examples
384
-
385
- ##### Text to image generation
386
- ```python
387
- import base64
388
- import json
389
- import requests
390
-
391
- # 1. Read JSON-upsampled prompt
392
- json_prompt = json.load(open("assets/example_caption.json"))
393
-
394
- # 2. Build your API payload
395
- payload = {
396
- "prompt": json.dumps(json_prompt),
397
- "size": "1024x1024",
398
- "n": 1, # single frame generation
399
- "num_inference_steps": 50,
400
- "guidance_scale": 4.0,
401
- "flow_shift": 3.0,
402
- "negative_prompt": "",
403
- "seed": 1143,
404
- "extra_args": {
405
- "use_resolution_template": False,
406
- "guardrails": True,
407
- },
408
- }
409
-
410
- # 3. Send the POST request
411
- url = "http://localhost:8000/v1/images/generations"
412
- print("Sending request to server...")
413
- response = requests.post(url, json=payload, headers={"Content-Type": "application/json"})
414
- response.raise_for_status()
415
-
416
- # 4. Extract the base64 data and decode it into an image
417
- response_json = response.json()
418
- b64_data = response_json["data"][0]["b64_json"]
419
- image_bytes = base64.b64decode(b64_data)
420
-
421
- # 5. Save the final PNG file
422
- with open("/tmp/cosmos3_t2i.png", "wb") as image_file:
423
- image_file.write(image_bytes)
424
- print("Saved image to /tmp/cosmos3_t2i.png")
425
- ```
426
-
427
- ![example_image](assets/example_image.png)
428
-
429
  ### Diffusers
430
 
431
- 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-image 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).
432
-
433
- **Note:** This example is tested on GB200. For H100, use the [vLLM-Omni serving recipe](#vllm-omni) above, which supports multi-GPU deployment via HSDP.
434
 
435
- #### Installation
436
-
437
- To install diffusers with Cosmos3OmniPipeline:
438
- ```
439
- uv venv --python 3.13 --seed --managed-python
440
- source .venv/bin/activate
441
- uv pip install \
442
- "diffusers @ git+https://github.com/huggingface/diffusers.git" \
443
- accelerate \
444
- av \
445
- cosmos_guardrail \
446
- huggingface_hub \
447
- imageio \
448
- imageio-ffmpeg \
449
- torch \
450
- torchvision \
451
- transformers
452
- ```
453
-
454
- #### Examples
455
-
456
- ##### Text to image generation
457
  ```python
458
  import json
459
  import torch
460
  from diffusers import Cosmos3OmniPipeline
461
  from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
462
 
463
- json_prompt = json.load(open("assets/example_caption.json"))
 
 
 
 
464
 
465
  pipe = Cosmos3OmniPipeline.from_pretrained(
466
  "nvidia/Cosmos3-Super-Text2Image",
@@ -481,28 +67,37 @@ result = pipe(
481
  generator=torch.Generator(device="cuda").manual_seed(1143),
482
  )
483
 
484
- result.video[0].save("/tmp/cosmos3_t2i.png")
485
- print("Saved image to /tmp/cosmos3_t2i.png")
486
  ```
487
 
488
- ## Limitations
489
-
490
- 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.
491
-
492
- 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.
493
 
494
- ## Inference
495
 
496
- **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)
 
 
 
 
 
 
 
 
 
 
 
497
 
498
- **Test Hardware:** GB200 and H100
499
 
500
- ## Ethical Considerations
 
 
 
501
 
502
- 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.
503
 
504
- 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.
505
 
506
- 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.
507
 
508
- 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: text-to-image
 
7
  tags:
8
+ - nvidia
9
+ - cosmos
10
+ - cosmos3
11
+ - vllm-omni
12
+ - image-generation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
  # **Cosmos 3: Omnimodal World Models for Physical AI**
16
+ **[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/)**
17
 
18
+ [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.
19
+
20
+ 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.
21
 
22
  # Model Overview: Cosmos3-Super-Text2Image
23
 
24
  ## Description
25
 
26
+ Cosmos3-Super-Text2Image is a 64B parameter model designed to generate high-fidelity images from text input. It serves as a foundational building block for Physical AI applications spanning world understanding, simulation, and embodied policy learning.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
+ - **Model Developer:** NVIDIA
29
+ - **Architecture:** Mixture-of-Transformers (MoT)
30
+ - **Trainable Parameters:** 64B
31
+ - **License:** [OpenMDW1.1](https://openmdw.ai/license/1-1/)
32
 
33
  ## Usage
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  ### Diffusers
36
 
37
+ Cosmos3 is fully supported within the Hugging Face [Diffusers](https://huggingface.co/docs/diffusers/en/index) library.
 
 
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ```python
40
  import json
41
  import torch
42
  from diffusers import Cosmos3OmniPipeline
43
  from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
44
 
45
+ # Cosmos 3 works best with structured, upsampled prompts.
46
+ # See https://github.com/nvidia/cosmos for prompt upsampling details.
47
+ json_prompt = {
48
+ "comprehensive_t2i_caption": "A photorealistic studio photograph of two hands working a spinning cylinder of wet gray clay on a pottery wheel, fingers gently pinching and pulling the walls upward to form a narrow neck and rounded belly."
49
+ }
50
 
51
  pipe = Cosmos3OmniPipeline.from_pretrained(
52
  "nvidia/Cosmos3-Super-Text2Image",
 
67
  generator=torch.Generator(device="cuda").manual_seed(1143),
68
  )
69
 
70
+ result.video[0].save("cosmos3_t2i.png")
 
71
  ```
72
 
73
+ ### vLLM-Omni
 
 
 
 
74
 
75
+ You can use the `vllm-omni` package for deploying an OpenAI-compatible API inference endpoint.
76
 
77
+ ```bash
78
+ vllm serve nvidia/Cosmos3-Super-Text2Image \
79
+ --omni \
80
+ --host 0.0.0.0 \
81
+ --port 8000 \
82
+ --cfg-parallel-size 2 \
83
+ --ulysses-degree 4 \
84
+ --tensor-parallel-size 1 \
85
+ --use-hsdp \
86
+ --hsdp-shard-size 8 \
87
+ --init-timeout 1800
88
+ ```
89
 
90
+ ## Input/Output Specifications
91
 
92
+ - **Input Type**: Text
93
+ - **Output Type**: Image (JPEG)
94
+ - **Input Size**: Up to 4096 tokens
95
+ - **Supported Resolutions**: 256p, 480p, and 720p resolution at aspect ratios 16:9, 4:3, 1:1, 3:4, 9:16.
96
 
97
+ ## Limitations
98
 
99
+ Cosmos3 may produce imperfect outputs in challenging scenarios, such as imprecise physical interactions or object morphing. Because the model lacks an explicit physics simulator, physical laws are only approximated. Quality further degrades in out-of-distribution environments or safety-critical edge cases. Outputs should not be treated as physically accurate simulations or safety-certified decision-making tools.
100
 
101
+ ## Ethical Considerations
102
 
103
+ NVIDIA believes Trustworthy AI is a shared responsibility. Users are responsible for ensuring safe integration of this model, including implementing guardrails and other safety mechanisms prior to deployment. Please ensure you have proper rights and permissions for all input content.