Instructions to use circulus/Cosmos3-Edge-bnb-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use circulus/Cosmos3-Edge-bnb-4bit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("circulus/Cosmos3-Edge-bnb-4bit", 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
| { | |
| "_class_name": "Cosmos3OmniTransformer", | |
| "_diffusers_version": "0.40.0.dev0", | |
| "_name_or_path": "nvidia/Cosmos3-Edge", | |
| "action_dim": 64, | |
| "action_gen": true, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "backbone_type": "cosmos3_edge_nemotron_dense", | |
| "base_fps": 24, | |
| "enable_fps_modulation": true, | |
| "head_dim": 128, | |
| "hidden_act": "relu2", | |
| "hidden_size": 2048, | |
| "intermediate_size": 9216, | |
| "latent_channel": 48, | |
| "latent_patch_size": 2, | |
| "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, | |
| "quantization_config": { | |
| "_load_in_4bit": true, | |
| "_load_in_8bit": false, | |
| "bnb_4bit_compute_dtype": "bfloat16", | |
| "bnb_4bit_quant_storage": "uint8", | |
| "bnb_4bit_quant_type": "nf4", | |
| "bnb_4bit_use_double_quant": true, | |
| "llm_int8_enable_fp32_cpu_offload": false, | |
| "llm_int8_has_fp16_weight": false, | |
| "llm_int8_skip_modules": null, | |
| "llm_int8_threshold": 6.0, | |
| "load_in_4bit": true, | |
| "load_in_8bit": false, | |
| "quant_method": "bitsandbytes" | |
| }, | |
| "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, | |
| "temporal_compression_factor": 4, | |
| "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 | |
| } | |