Instructions to use SimpleTuner/cosmos3-component-generation-layers-bf16-super 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-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("SimpleTuner/cosmos3-component-generation-layers-bf16-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
File size: 657 Bytes
2c453e2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | {
"attention_bias": false,
"component": "cosmos3_generator",
"dtype": "bfloat16",
"head_dim": 128,
"hidden_act": "silu",
"hidden_size": 5120,
"intermediate_size": 25600,
"load_reasoning_layers": false,
"num_attention_heads": 64,
"num_hidden_layers": 64,
"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-Super",
"source_revision": "e0262be9d8f7586bc24c069a2aed2b665bdff266",
"vocab_size": 151936
}
|