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
Use SGLang main branch for Cosmos3 install
Browse files
README.md
CHANGED
|
@@ -994,10 +994,10 @@ Cosmos3 outputs should not be treated as physically accurate simulation, reliabl
|
|
| 994 |
|
| 995 |
### SGLang
|
| 996 |
|
| 997 |
-
SGLang-Diffusion can serve `nvidia/Cosmos3-Super` through OpenAI-compatible image and video endpoints. Install SGLang from
|
| 998 |
|
| 999 |
```bash
|
| 1000 |
-
git clone https://github.com/sgl-project/sglang.git
|
| 1001 |
cd sglang
|
| 1002 |
pip install -e "python[diffusion]"
|
| 1003 |
pip install "cosmos-guardrail==0.3.1"
|
|
@@ -1007,6 +1007,8 @@ sglang serve \
|
|
| 1007 |
--num-gpus 4
|
| 1008 |
```
|
| 1009 |
|
|
|
|
|
|
|
| 1010 |
For the video-specialized checkpoint:
|
| 1011 |
|
| 1012 |
```bash
|
|
|
|
| 994 |
|
| 995 |
### SGLang
|
| 996 |
|
| 997 |
+
SGLang-Diffusion can serve `nvidia/Cosmos3-Super` through OpenAI-compatible image and video endpoints. Install SGLang from the main branch with diffusion dependencies, then start the server:
|
| 998 |
|
| 999 |
```bash
|
| 1000 |
+
git clone --branch main https://github.com/sgl-project/sglang.git
|
| 1001 |
cd sglang
|
| 1002 |
pip install -e "python[diffusion]"
|
| 1003 |
pip install "cosmos-guardrail==0.3.1"
|
|
|
|
| 1007 |
--num-gpus 4
|
| 1008 |
```
|
| 1009 |
|
| 1010 |
+
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.
|
| 1011 |
+
|
| 1012 |
For the video-specialized checkpoint:
|
| 1013 |
|
| 1014 |
```bash
|