Instructions to use SimpleTuner/cosmos3-component-generation-layers-bf16-edge 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-edge 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-edge", 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: 1,109 Bytes
254cff8 | 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | {
"action_dim": 64,
"action_gen": true,
"attention_bias": false,
"attention_dropout": 0.0,
"base_fps": 24,
"component": "cosmos3_generator",
"dtype": "bfloat16",
"enable_fps_modulation": true,
"head_dim": 128,
"hidden_act": "relu2",
"hidden_size": 2048,
"intermediate_size": 9216,
"latent_channel": 48,
"latent_patch_size": 2,
"load_reasoning_layers": false,
"num_attention_heads": 16,
"num_embodiment_domains": 32,
"num_hidden_layers": 28,
"num_key_value_heads": 8,
"patch_latent_dim": 192,
"qk_norm_for_text": false,
"rms_norm_eps": 1e-05,
"rope_axes_dim": [
24,
20,
20
],
"rope_scaling": {
"mrope_section": [
24,
20,
20
]
},
"rope_theta": 100000000,
"sound_dim": null,
"sound_gen": false,
"sound_latent_fps": 25,
"source_model_id": "nvidia/Cosmos3-Edge",
"source_revision": "6f58f6b4c91288838e60b6bcb2cc45d997e961de",
"timestep_scale": 0.001,
"unified_3d_mrope_reset_spatial_ids": true,
"unified_3d_mrope_temporal_modality_margin": 15000,
"use_und_k_norm_for_gen": true,
"vocab_size": 131072
}
|