Cosmos
Diffusers
Safetensors
cosmos3_omni
nvidia
cosmos3
vllm
vllm-omni
sglang
sglang-diffusion
text, image, video, audio, and action generation
omnimodel
Instructions to use nvidia/Cosmos3-Super with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Super with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Diffusers
How to use nvidia/Cosmos3-Super with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/Cosmos3-Super", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add pipeline tag, library name, and sample usage
#12
by nielsr HF Staff - opened
Files changed (5)
- README.md+63-86
- modular_model_index.jsonDeleted-75
- sound_tokenizer.ckptAdded+3
- sound_tokenizer.jsonAdded+42
- sound_tokenizer/diffusion_pytorch_model.safetensors+2-2
12344565678910111213141516178910111213141516171821192021227 unmodified lines303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818223 unmodified lines10610710810911011111211311411511678 unmodified lines19519619715319819920015620120220324 unmodified lines228229230187188231232233613 unmodified lines84784884980885085185285398 unmodified lines9529539549139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779559569572 unmodified lines9609619629869639649659665 unmodified lines972973974998975---library_name: diffuserslicense: otherlicense_name: openmdw1.1-licenselicense_link: >- https://openmdw.ai/license/1-1/library_name: cosmoslicense_link: https://openmdw.ai/license/1-1/pipeline_tag: any-to-anytags: - nvidia - cosmos - cosmos3 - vllm - vllm-omni - sglang - sglang-diffusion - diffusers - text, image, video, audio, and action generation - omnimodel- nvidia- cosmos- cosmos3- vllm- vllm-omni- diffusers- text, image, video, audio, and action generation- omnimodel---
# **Cosmos 3: Omnimodal World Models for Physical AI****[Cosmos3](https://huggingface.co/collections/nvidia/cosmos3)** | **[Cosmos3 Examples](https://huggingface.co/collections/nvidia/cosmos3-examples)** | **[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/)****[Paper Page](https://huggingface.co/papers/2606.02800)** | **[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/)**
[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.
7 unmodified lines
**Model Developer:** NVIDIA
### Sample Usage
You can use the model with the [diffusers](https://github.com/huggingface/diffusers) library as shown below:
```pythonimport torchfrom diffusers import Cosmos3OmniPipelinefrom diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepSchedulerfrom diffusers.utils import export_to_video
pipe = Cosmos3OmniPipeline.from_pretrained( "nvidia/Cosmos3-Super", torch_dtype=torch.bfloat16, device_map="cuda",)pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=10.0)
result = pipe( prompt="A mobile robot navigates a warehouse aisle and stops at a shelf.", num_frames=189, height=720, width=1280, fps=24, num_inference_steps=35, guidance_scale=6.0, generator=torch.Generator(device="cuda").manual_seed(123),)
export_to_video(result.video, "cosmos3_super_t2v.mp4", fps=24)```
### Model Versions- Cosmos3-Nano: - 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.
- Cosmos3-Super: - 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.
- Cosmos3-Nano-Policy-DROID: - Given language instructions and visual observations from the DROID robot platform, generate robot action trajectories for manipulation and control tasks.
- Cosmos3-Super-Image2Video: - Given one input image and text instructions, generate temporally coherent video sequences that are consistent with the provided visual content.
- Cosmos3-Super-Text2Image: - Given text input, generate high-fidelity images that are consistent with the provided description.
### License
This model is released under the [OpenMDW1.1](https://openmdw.ai/license/1-1/)23 unmodified lines
**Number of trainable model parameters:**
- Cosmos3-Nano: 16B- Cosmos3-Super: 64B- Cosmos3-Nano-Policy-DROID: 16B- Cosmos3-Super-Image2Video: 64B- Cosmos3-Super-Text2Image: 64B
## Input/Output Specifications
78 unmodified lines
**Runtime Engine(s):**
- [PyTorch](https://github.com/NVIDIA/cosmos)- [PyTorch](https://github.com/nvidia/cosmos3)- [vLLM-Omni](https://github.com/vllm-project/vllm-omni)- [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)- [SGLang](https://github.com/sgl-project/sglang)
**Supported Hardware Microarchitecture Compatibility:**
24 unmodified lines
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.
- For more information about the datasets used to train this model, please see the [Public Summary of Training Content](https://docs.nvidia.com/cosmos/latest/_downloads/e482b7114ce8dbfbb07d2d4b42cafe4e/training-content-Cosmos-3.pdf).
**Data Modality and Training Data Size**
| Modality | Reasoning Data Sample Count | Generation Data Sample Count |613 unmodified lines base_url="http://localhost:8000/v1",)
response = client.chat.completions.create(response = client.chat.completion.create( model=client.models.list().data[0].id, messages=[ {98 unmodified lines
<video controls width="1280" height="720" src="https://huggingface.co/nvidia/Cosmos3-Super/resolve/main/assets/example_t2v_diffusers_output.mp4"></video>
### SGLang
[SGLang Diffusion](https://docs.sglang.io/docs/sglang-diffusion/index) can serve `nvidia/Cosmos3-Super` through OpenAI-compatible image and video generation endpoints. Install SGLang from the main branch with diffusion dependencies, then start the server:
```bashgit clone --branch main https://github.com/sgl-project/sglang.gitcd sglangpip install -e "python[diffusion]"pip install "cosmos-guardrail==0.3.1"
sglang serve \ --model-path nvidia/Cosmos3-Super \ --num-gpus 4```
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.
For the video-specialized checkpoint:
```bashsglang serve \ --model-path nvidia/Cosmos3-Super-Image2Video \ --num-gpus 4```
Supported SGLang endpoints:
| Mode | Endpoint | Notes || --- | --- | --- || Text to image | `POST /v1/images/generations` | Returns base64 image data by default || Text to video | `POST /v1/videos` | Creates an async job; poll `GET /v1/videos/{id}` and download `/content` || Image to video | `POST /v1/videos` | Upload the conditioning image with `input_reference` |
Example text-to-video request:
```bashjob_id=$(curl -sS -X POST http://localhost:30000/v1/videos \ --form-string "prompt=A small warehouse robot moves a blue box across a clean floor." \ --form-string "negative_prompt=blurry, distorted, low quality" \ --form-string "size=1280x720" \ --form-string "num_frames=81" \ --form-string "fps=24" \ --form-string "num_inference_steps=35" \ --form-string "guidance_scale=4.0" \ --form-string "flow_shift=10.0" \ --form-string "seed=42" \ --form-string 'extra_params={"guardrails":true,"use_resolution_template":false,"use_duration_template":false}' \ | python -c 'import json, sys; print(json.load(sys.stdin)["id"])')
while true; do status=$(curl -sS "http://localhost:30000/v1/videos/${job_id}" \ | python -c 'import json, sys; print(json.load(sys.stdin)["status"])') [ "$status" = "completed" ] && break [ "$status" = "failed" ] && exit 1 sleep 1done
curl -sS -L "http://localhost:30000/v1/videos/${job_id}/content" \ -o cosmos3_super_t2v_output.mp4```
Video-to-video, video-with-sound, and action generation are not supported by SGLang yet.
For complete serving instructions and request examples, see the [Cosmos3 SGLang cookbook](https://docs.sglang.io/cookbook/diffusion/Cosmos/Cosmos3).
## Limitations
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.2 unmodified lines
## Inference
**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)**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)
**Test Hardware:** GB200 and H100
5 unmodified lines
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.
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/).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/).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ "_blocks_class_name": "Cosmos3OmniBlocks", "_class_name": "Cosmos3OmniModularPipeline", "_diffusers_version": "0.39.0.dev0", "text_tokenizer": [ "transformers", "Qwen2TokenizerFast", { "pretrained_model_name_or_path": "nvidia/Cosmos3-Super", "revision": null, "subfolder": "text_tokenizer", "type_hint": [ "transformers", "Qwen2TokenizerFast" ], "variant": null } ], "vae": [ "diffusers", "AutoencoderKLWan", { "pretrained_model_name_or_path": "nvidia/Cosmos3-Super", "revision": null, "subfolder": "vae", "type_hint": [ "diffusers", "AutoencoderKLWan" ], "variant": null } ], "transformer": [ "diffusers", "Cosmos3OmniTransformer", { "pretrained_model_name_or_path": "nvidia/Cosmos3-Super", "revision": null, "subfolder": "transformer", "type_hint": [ "diffusers", "Cosmos3OmniTransformer" ], "variant": null } ], "scheduler": [ "diffusers", "UniPCMultistepScheduler", { "pretrained_model_name_or_path": "nvidia/Cosmos3-Super", "revision": null, "subfolder": "scheduler", "type_hint": [ "diffusers", "UniPCMultistepScheduler" ], "variant": null } ], "sound_tokenizer": [ "diffusers", "Cosmos3AVAEAudioTokenizer", { "pretrained_model_name_or_path": "nvidia/Cosmos3-Super", "revision": null, "subfolder": "sound_tokenizer", "type_hint": [ "diffusers", "Cosmos3AVAEAudioTokenizer" ], "variant": null } ]}123version https://git-lfs.github.com/spec/v1oid sha256:6daeb68a219f3e86c0918f616d78b9ebf073f3d700df63ff1c02d214c081d72dsize 1985246007123456789101112131415161718192021222324252627282930313233343536373839404142{ "model_type": "autoencoder_v2", "sampling_rate": 48000, "stereo": true, "use_wav_as_input": true, "normalize_volume": true, "hop_size": 1920, "input_channels": 1, "enc_type": "spec_convnext", "enc_dim": 192, "enc_intermediate_dim": 768, "enc_num_layers": 12, "enc_num_blocks": 2, "enc_n_fft": 64, "enc_hop_length": 16, "enc_latent_dim": 128, "enc_c_mults": [1, 2, 4], "enc_strides": [4, 5, 6], "enc_identity_init": false, "enc_use_snake": true, "dec_type": "oobleck", "dec_dim": 320, "dec_c_mults": [1, 2, 4, 8, 16], "dec_strides": [2, 4, 5, 6, 8], "dec_use_snake": true, "dec_final_tanh": false, "dec_out_channels": 2, "dec_anti_aliasing": false, "dec_use_nearest_upsample": false, "dec_use_tanh_at_final": false, "bottleneck_type": "vae", "bottleneck": {"type": "vae"}, "activation": "snakebeta", "snake_logscale": true, "anti_aliasing": false, "use_cuda_kernel": false, "causal": false, "padding_mode": "zeros", "vocoder_input_dim": 64, "latent_mean": null, "latent_std": null}12323version https://git-lfs.github.com/spec/v1oid sha256:a4b6da5975bf89f6853fe589ad4752d281ac79fbdfad52ea90537fa080b4b9c2size 1985176840oid sha256:9d4c61cde38acfb0cad9048a140c3533750277a8462b19dc08450d9fe1ad9879size 1892409600README.md+63-86
modular_model_index.jsonDeleted-75
sound_tokenizer.ckptAdded+3
sound_tokenizer.jsonAdded+42
sound_tokenizer/diffusion_pytorch_model.safetensors+2-2