File size: 4,081 Bytes
fdafd05
9ef9426
fdafd05
 
9ef9426
 
fdafd05
9ef9426
 
 
 
 
fdafd05
 
 
9ef9426
fdafd05
9ef9426
 
 
fdafd05
 
 
 
 
9ef9426
fdafd05
9ef9426
 
 
 
fdafd05
 
 
 
 
9ef9426
fdafd05
 
 
 
 
 
 
9ef9426
 
 
 
 
fdafd05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9ef9426
fdafd05
 
9ef9426
fdafd05
9ef9426
fdafd05
9ef9426
 
 
 
 
 
 
 
 
 
 
 
fdafd05
9ef9426
fdafd05
9ef9426
 
 
 
fdafd05
9ef9426
fdafd05
9ef9426
fdafd05
9ef9426
fdafd05
9ef9426
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
library_name: diffusers
license: other
license_name: openmdw1.1-license
license_link: https://openmdw.ai/license/1-1/
pipeline_tag: text-to-image
tags:
- nvidia
- cosmos
- cosmos3
- vllm-omni
- image-generation
---

# **Cosmos 3: Omnimodal World Models for Physical AI**
**[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/)**

[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.

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.

# Model Overview: Cosmos3-Super-Text2Image

## Description

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.

- **Model Developer:** NVIDIA
- **Architecture:** Mixture-of-Transformers (MoT)
- **Trainable Parameters:** 64B
- **License:** [OpenMDW1.1](https://openmdw.ai/license/1-1/)

## Usage

### Diffusers

Cosmos3 is fully supported within the Hugging Face [Diffusers](https://huggingface.co/docs/diffusers/en/index) library.

```python
import json
import torch
from diffusers import Cosmos3OmniPipeline
from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler

# Cosmos 3 works best with structured, upsampled prompts.
# See https://github.com/nvidia/cosmos for prompt upsampling details.
json_prompt = {
    "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."
}

pipe = Cosmos3OmniPipeline.from_pretrained(
    "nvidia/Cosmos3-Super-Text2Image",
    torch_dtype=torch.bfloat16,
    device_map="cuda",
    enable_safety_checker=True,
)
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=3.0)

result = pipe(
    prompt=json.dumps(json_prompt),
    negative_prompt="",
    num_frames=1,
    height=1024,
    width=1024,
    num_inference_steps=50,
    guidance_scale=4.0,
    generator=torch.Generator(device="cuda").manual_seed(1143),
)

result.video[0].save("cosmos3_t2i.png")
```

### vLLM-Omni

You can use the `vllm-omni` package for deploying an OpenAI-compatible API inference endpoint.

```bash
vllm serve nvidia/Cosmos3-Super-Text2Image \
  --omni \
  --host 0.0.0.0 \
  --port 8000 \
  --cfg-parallel-size 2 \
  --ulysses-degree 4 \
  --tensor-parallel-size 1 \
  --use-hsdp \
  --hsdp-shard-size 8 \
  --init-timeout 1800
```

## Input/Output Specifications

- **Input Type**: Text
- **Output Type**: Image (JPEG)
- **Input Size**: Up to 4096 tokens
- **Supported Resolutions**: 256p, 480p, and 720p resolution at aspect ratios 16:9, 4:3, 1:1, 3:4, 9:16.

## Limitations

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.

## Ethical Considerations

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.