Instructions to use SimpleTuner/cosmos3-component-generation-layers-bf16-nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SimpleTuner/cosmos3-component-generation-layers-bf16-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("SimpleTuner/cosmos3-component-generation-layers-bf16-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
| { | |
| "attention_bias": false, | |
| "component": "cosmos3_generator", | |
| "dtype": "bfloat16", | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "intermediate_size": 12288, | |
| "load_reasoning_layers": false, | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 36, | |
| "num_key_value_heads": 8, | |
| "qk_norm_for_text": true, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": { | |
| "mrope_interleaved": true, | |
| "mrope_section": [ | |
| 24, | |
| 20, | |
| 20 | |
| ], | |
| "rope_type": "default" | |
| }, | |
| "rope_theta": 5000000, | |
| "source_model_id": "nvidia/Cosmos3-Nano", | |
| "source_revision": "411f42a8fdfb8c5b2583cb8786e0938f49796eaa", | |
| "vocab_size": 151936 | |
| } | |