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-Nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Nano 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-Nano 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-Nano", 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
Update MC
#25
by kediwu0331 - opened
README.md
CHANGED
|
@@ -920,11 +920,11 @@ sglang serve --model-path nvidia/Cosmos3-Nano
|
|
| 920 |
|
| 921 |
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.
|
| 922 |
|
| 923 |
-
|
| 924 |
|
| 925 |
```shell
|
| 926 |
sglang serve \
|
| 927 |
-
--model-path nvidia/Cosmos3-
|
| 928 |
--num-gpus 4
|
| 929 |
```
|
| 930 |
|
|
|
|
| 920 |
|
| 921 |
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.
|
| 922 |
|
| 923 |
+
To serve the model on multiple GPUs:
|
| 924 |
|
| 925 |
```shell
|
| 926 |
sglang serve \
|
| 927 |
+
--model-path nvidia/Cosmos3-Nano \
|
| 928 |
--num-gpus 4
|
| 929 |
```
|
| 930 |
|