Text-to-Image
Cosmos
Diffusers
Safetensors
cosmos3_omni
nvidia
cosmos3
vllm-omni
sglang
sglang-diffusion
image-generation
Instructions to use nvidia/Cosmos3-Super-Text2Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Super-Text2Image 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-Text2Image 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-Text2Image", 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
Fix SGLang documentation links
Browse files
README.md
CHANGED
|
@@ -168,7 +168,7 @@ Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated sys
|
|
| 168 |
- [PyTorch](https://github.com/nvidia/cosmos3)
|
| 169 |
- [vLLM-Omni](https://github.com/vllm-project/vllm-omni)
|
| 170 |
- [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)
|
| 171 |
-
- [SGLang](https://sgl-project
|
| 172 |
|
| 173 |
**Supported Hardware Microarchitecture Compatibility:**
|
| 174 |
|
|
@@ -386,7 +386,7 @@ print("Saved image to /tmp/cosmos3_t2i.png")
|
|
| 386 |
|
| 387 |
### SGLang
|
| 388 |
|
| 389 |
-
[SGLang Diffusion](https://
|
| 390 |
|
| 391 |
```bash
|
| 392 |
git clone --branch main https://github.com/sgl-project/sglang.git
|
|
@@ -421,7 +421,7 @@ curl -sS -X POST http://localhost:30000/v1/images/generations \
|
|
| 421 |
}'
|
| 422 |
```
|
| 423 |
|
| 424 |
-
For complete serving instructions and request examples, see the [Cosmos3 SGLang cookbook](https://
|
| 425 |
|
| 426 |
### Diffusers
|
| 427 |
|
|
@@ -490,7 +490,7 @@ Cosmos3 outputs should not be treated as physically accurate simulation, reliabl
|
|
| 490 |
|
| 491 |
## Inference
|
| 492 |
|
| 493 |
-
**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://sgl-project
|
| 494 |
|
| 495 |
**Test Hardware:** GB200 and H100
|
| 496 |
|
|
|
|
| 168 |
- [PyTorch](https://github.com/nvidia/cosmos3)
|
| 169 |
- [vLLM-Omni](https://github.com/vllm-project/vllm-omni)
|
| 170 |
- [Hugging Face Diffusers](https://huggingface.co/docs/diffusers/en/index)
|
| 171 |
+
- [SGLang](https://github.com/sgl-project/sglang)
|
| 172 |
|
| 173 |
**Supported Hardware Microarchitecture Compatibility:**
|
| 174 |
|
|
|
|
| 386 |
|
| 387 |
### SGLang
|
| 388 |
|
| 389 |
+
[SGLang Diffusion](https://docs.sglang.io/docs/sglang-diffusion/index) can serve `nvidia/Cosmos3-Super-Text2Image` through OpenAI-compatible image generation endpoints. Install SGLang from the main branch with diffusion dependencies, then start the server:
|
| 390 |
|
| 391 |
```bash
|
| 392 |
git clone --branch main https://github.com/sgl-project/sglang.git
|
|
|
|
| 421 |
}'
|
| 422 |
```
|
| 423 |
|
| 424 |
+
For complete serving instructions and request examples, see the [Cosmos3 SGLang cookbook](https://docs.sglang.io/cookbook/diffusion/Cosmos/Cosmos3).
|
| 425 |
|
| 426 |
### Diffusers
|
| 427 |
|
|
|
|
| 490 |
|
| 491 |
## Inference
|
| 492 |
|
| 493 |
+
**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)
|
| 494 |
|
| 495 |
**Test Hardware:** GB200 and H100
|
| 496 |
|