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
Commit ·
c92432b
1
Parent(s): fdbdd8c
Add modular pipeline index (#16)
Browse files- Add modular pipeline index (631a0d92571cd399b19247d2611a46c18f093d0a)
Co-authored-by: Atharva Joshi <atharvajoshi10@users.noreply.huggingface.co>
- modular_model_index.json +75 -0
modular_model_index.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_blocks_class_name": "Cosmos3OmniBlocks",
|
| 3 |
+
"_class_name": "Cosmos3OmniModularPipeline",
|
| 4 |
+
"_diffusers_version": "0.39.0.dev0",
|
| 5 |
+
"text_tokenizer": [
|
| 6 |
+
"transformers",
|
| 7 |
+
"Qwen2TokenizerFast",
|
| 8 |
+
{
|
| 9 |
+
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 10 |
+
"revision": null,
|
| 11 |
+
"subfolder": "text_tokenizer",
|
| 12 |
+
"type_hint": [
|
| 13 |
+
"transformers",
|
| 14 |
+
"Qwen2TokenizerFast"
|
| 15 |
+
],
|
| 16 |
+
"variant": null
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"vae": [
|
| 20 |
+
"diffusers",
|
| 21 |
+
"AutoencoderKLWan",
|
| 22 |
+
{
|
| 23 |
+
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 24 |
+
"revision": null,
|
| 25 |
+
"subfolder": "vae",
|
| 26 |
+
"type_hint": [
|
| 27 |
+
"diffusers",
|
| 28 |
+
"AutoencoderKLWan"
|
| 29 |
+
],
|
| 30 |
+
"variant": null
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"transformer": [
|
| 34 |
+
"diffusers",
|
| 35 |
+
"Cosmos3OmniTransformer",
|
| 36 |
+
{
|
| 37 |
+
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 38 |
+
"revision": null,
|
| 39 |
+
"subfolder": "transformer",
|
| 40 |
+
"type_hint": [
|
| 41 |
+
"diffusers",
|
| 42 |
+
"Cosmos3OmniTransformer"
|
| 43 |
+
],
|
| 44 |
+
"variant": null
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"scheduler": [
|
| 48 |
+
"diffusers",
|
| 49 |
+
"UniPCMultistepScheduler",
|
| 50 |
+
{
|
| 51 |
+
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 52 |
+
"revision": null,
|
| 53 |
+
"subfolder": "scheduler",
|
| 54 |
+
"type_hint": [
|
| 55 |
+
"diffusers",
|
| 56 |
+
"UniPCMultistepScheduler"
|
| 57 |
+
],
|
| 58 |
+
"variant": null
|
| 59 |
+
}
|
| 60 |
+
],
|
| 61 |
+
"sound_tokenizer": [
|
| 62 |
+
"diffusers",
|
| 63 |
+
"Cosmos3AVAEAudioTokenizer",
|
| 64 |
+
{
|
| 65 |
+
"pretrained_model_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 66 |
+
"revision": null,
|
| 67 |
+
"subfolder": "sound_tokenizer",
|
| 68 |
+
"type_hint": [
|
| 69 |
+
"diffusers",
|
| 70 |
+
"Cosmos3AVAEAudioTokenizer"
|
| 71 |
+
],
|
| 72 |
+
"variant": null
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
}
|