Cosmos
Diffusers
Safetensors
cosmos3_omni
nvidia
cosmos3
vllm
vllm-omni
sglang
sglang-diffusion
text, image, video, audio, and action generation
omnimodel
Instructions to use nvidia/Cosmos3-Nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos3-Nano 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-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("nvidia/Cosmos3-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
FP8 checkpoint for Cosmos3-Nano
#23
by wkutak - opened
Files changed (12)
- hf_quant_config.jsonAdded+185
- model.safetensors.index.json
- transformer/config.json+212-1
- transformer/diffusion_pytorch_model-00001-of-00007.safetensors → transformer/diffusion_pytorch_model-00001-of-00004.safetensorsRenamed+2-2
- transformer/diffusion_pytorch_model-00002-of-00007.safetensors → transformer/diffusion_pytorch_model-00002-of-00004.safetensorsRenamed+2-2
- transformer/diffusion_pytorch_model-00003-of-00007.safetensors → transformer/diffusion_pytorch_model-00003-of-00004.safetensorsRenamed+2-2
- transformer/diffusion_pytorch_model-00004-of-00007.safetensors → transformer/diffusion_pytorch_model-00004-of-00004.safetensorsRenamed+2-2
- transformer/diffusion_pytorch_model-00005-of-00007.safetensorsDeleted-3
- transformer/diffusion_pytorch_model-00006-of-00007.safetensorsDeleted-3
- transformer/diffusion_pytorch_model-00007-of-00007.safetensorsDeleted-3
- transformer/diffusion_pytorch_model.safetensors.index.json
- transformer/modelopt_state.pthAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185{ "block_quantize": null, "calib_cfg": { "method": "max" }, "channel_quantize": null, "disable_conv_quantization": false, "forward_loop": null, "modelopt_config": { "algorithm": "max", "quant_cfg": [ { "enable": false, "quantizer_name": "*" }, { "cfg": { "axis": null, "fake_quant": false, "num_bits": [ 4, 3 ] }, "quantizer_name": "*weight_quantizer" }, { "cfg": { "axis": null, "num_bits": [ 4, 3 ] }, "quantizer_name": "*input_quantizer" }, { "enable": false, "parent_class": "nn.BatchNorm1d", "quantizer_name": "*" }, { "enable": false, "parent_class": "nn.BatchNorm2d", "quantizer_name": "*" }, { "enable": false, "parent_class": "nn.BatchNorm3d", "quantizer_name": "*" }, { "enable": false, "parent_class": "nn.LeakyReLU", "quantizer_name": "*" }, { "enable": false, "quantizer_name": "*lm_head*" }, { "enable": false, "quantizer_name": "*proj_out.*" }, { "enable": false, "quantizer_name": "*block_sparse_moe.gate*" }, { "enable": false, "quantizer_name": "*router*" }, { "enable": false, "quantizer_name": "*mlp.gate.*" }, { "enable": false, "quantizer_name": "*mlp.shared_expert_gate.*" }, { "enable": false, "quantizer_name": "*linear_attn.conv1d*" }, { "enable": false, "quantizer_name": "*mixer.conv1d*" }, { "enable": false, "quantizer_name": "*output_layer*" }, { "enable": false, "quantizer_name": "output.*" }, { "enable": false, "quantizer_name": "*proj_in*" }, { "enable": false, "quantizer_name": "*proj_out*" }, { "enable": false, "quantizer_name": "*time_embedder*" }, { "enable": false, "quantizer_name": "*audio_proj_in*" }, { "enable": false, "quantizer_name": "*audio_proj_out*" }, { "enable": false, "quantizer_name": "*action_proj_in*" }, { "enable": false, "quantizer_name": "*action_proj_out*" }, { "enable": false, "quantizer_name": "*lm_head*" }, { "enable": false, "quantizer_name": "*visual*" } ] }, "modules_to_not_convert": [ "proj_in", "proj_out", "time_embedder", "audio_proj_in", "audio_proj_out", "action_proj_in", "action_proj_out", "lm_head", "visual" ], "quant_method": "modelopt", "quant_type": "FP8_FP8", "scale_block_quantize": null, "scale_channel_quantize": null, "weight_only": false, "config_groups": { "group_0": { "input_activations": { "dynamic": false, "num_bits": 8, "type": "float" }, "weights": { "dynamic": false, "num_bits": 8, "type": "float" }, "targets": [ "Linear" ] } }, "quant_algo": "FP8", "ignore": [ "proj_in", "proj_out", "time_embedder*", "audio_proj_in", "audio_proj_out", "action_proj_in", "action_proj_out", "lm_head", "model.visual*", "visual*" ], "producer": { "name": "modelopt", "version": "0.44.0" }}12345622 unmodified lines29303132333435{"_class_name": "Cosmos3OmniTransformer","_diffusers_version": "0.37.1","action_dim": 64,"action_gen": true,"attention_bias": false,22 unmodified lines"qk_norm": false,"qk_norm_for_diffusion": true,"qk_norm_for_text": true,"rms_norm_eps": 1e-06,"rope_scaling": {"mrope_interleaved": true,"mrope_section": [12345622 unmodified lines2930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246{"_class_name": "Cosmos3OmniTransformer","_diffusers_version": "0.39.0","action_dim": 64,"action_gen": true,"attention_bias": false,22 unmodified lines"qk_norm": false,"qk_norm_for_diffusion": true,"qk_norm_for_text": true,"quantization_config": {"block_quantize": null,"calib_cfg": {"method": "max"},"channel_quantize": null,"disable_conv_quantization": false,"forward_loop": null,"modelopt_config": {"algorithm": "max","quant_cfg": [{"enable": false,"quantizer_name": "*"},{"cfg": {"axis": null,"fake_quant": false,"num_bits": [4,3]},"quantizer_name": "*weight_quantizer"},{"cfg": {"axis": null,"num_bits": [4,3]},"quantizer_name": "*input_quantizer"},{"enable": false,"parent_class": "nn.BatchNorm1d","quantizer_name": "*"},{"enable": false,"parent_class": "nn.BatchNorm2d","quantizer_name": "*"},{"enable": false,"parent_class": "nn.BatchNorm3d","quantizer_name": "*"},{"enable": false,"parent_class": "nn.LeakyReLU","quantizer_name": "*"},{"enable": false,"quantizer_name": "*lm_head*"},{"enable": false,"quantizer_name": "*proj_out.*"},{"enable": false,"quantizer_name": "*block_sparse_moe.gate*"},{"enable": false,"quantizer_name": "*router*"},{"enable": false,"quantizer_name": "*mlp.gate.*"},{"enable": false,"quantizer_name": "*mlp.shared_expert_gate.*"},{"enable": false,"quantizer_name": "*linear_attn.conv1d*"},{"enable": false,"quantizer_name": "*mixer.conv1d*"},{"enable": false,"quantizer_name": "*output_layer*"},{"enable": false,"quantizer_name": "output.*"},{"enable": false,"quantizer_name": "*proj_in*"},{"enable": false,"quantizer_name": "*proj_out*"},{"enable": false,"quantizer_name": "*time_embedder*"},{"enable": false,"quantizer_name": "*audio_proj_in*"},{"enable": false,"quantizer_name": "*audio_proj_out*"},{"enable": false,"quantizer_name": "*action_proj_in*"},{"enable": false,"quantizer_name": "*action_proj_out*"},{"enable": false,"quantizer_name": "*lm_head*"},{"enable": false,"quantizer_name": "*visual*"}]},"modules_to_not_convert": ["proj_in","proj_out","time_embedder","audio_proj_in","audio_proj_out","action_proj_in","action_proj_out","lm_head","visual"],"quant_method": "modelopt","quant_type": "FP8_FP8","runtime": {"diffusion_step_policy": {"schema_version": 1,"type": "first_last_n","index_space": "denoising_loop_iteration","scope": ["transformer"],"default_mode": "native","first_steps": {"count": 3,"mode": "a16"},"last_steps": {"count": 3,"mode": "a16"},"overlap": "a16","reasoner": "a16"}},"scale_block_quantize": null,"scale_channel_quantize": null,"weight_only": false,"config_groups": {"group_0": {"input_activations": {"dynamic": false,"num_bits": 8,"type": "float"},"weights": {"dynamic": false,"num_bits": 8,"type": "float"},"targets": ["Linear"]}},"quant_algo": "FP8","ignore": ["proj_in","proj_out","time_embedder*","audio_proj_in","audio_proj_out","action_proj_in","action_proj_out","lm_head","model.visual*","visual*"],"producer": {"name": "modelopt","version": "0.44.0"}},"rms_norm_eps": 1e-06,"rope_axes_dim": [24,20,20],"rope_scaling": {"mrope_interleaved": true,"mrope_section": [
123version https://git-lfs.github.com/spec/v1oid sha256:7d0f718198cac14cf323d58568c78aa1290b4bd1dcced6481624b5b9c6d70dc2size 4902257280123version https://git-lfs.github.com/spec/v1oid sha256:5140edb1b67c8593b7c6edeffb037fbd3607483e0d9dc91c57e513fc5ca29e9esize 4970103116
123version https://git-lfs.github.com/spec/v1oid sha256:7e6e7d270c193a58a1aec0cbc89f6f5afcaef6e3b951d86b0a432244c449e34esize 4999863656123version https://git-lfs.github.com/spec/v1oid sha256:65fb34e75b2275fe08067463b42d692ed374860d0559ab2a76c395df1438734bsize 4999955300
123version https://git-lfs.github.com/spec/v1oid sha256:15d08936149a7e77c6668e5b1cd47dc92a35e33741f0090d619045b66da9ff8dsize 4932719448123version https://git-lfs.github.com/spec/v1oid sha256:b70cfc2244820aa2b9936b313cb5341c838d87e9eae9f00ec3136b94c2ba61b3size 4992824672
123version https://git-lfs.github.com/spec/v1oid sha256:02cebbb557bced701eb825901e1de5f86d2e1feb49cb9a8d1fb7d1b878fdb31bsize 4983084656123version https://git-lfs.github.com/spec/v1oid sha256:f186eb1543b3ca55cf427d5677d745801eb942295e02de4ffe723c5c5e3cc770size 1493278920
123version https://git-lfs.github.com/spec/v1oid sha256:a5e3edd742b8f1fcf27a3eb3878c67dfcb0e6881588fa35deef503d640ea69d1size 4949498576123version https://git-lfs.github.com/spec/v1oid sha256:1bb99750f7ab4a47f8b0403a87aa43fefc9648660609ab2ace4cab361b957cd0size 4261644464123version https://git-lfs.github.com/spec/v1oid sha256:3f159bc8b82477adde771ae9e4f54f76564e02844a2fc6267903bd745111d7f6size 1318361208123version https://git-lfs.github.com/spec/v1oid sha256:1b31e0f686e3df50eb7b45aca990f939b912f5e62b2a9ed125677a29311f0b97size 451799hf_quant_config.jsonAdded+185
model.safetensors.index.json
transformer/config.json+212-1
transformer/diffusion_pytorch_model-00001-of-00007.safetensors → transformer/diffusion_pytorch_model-00001-of-00004.safetensorsRenamed+2-2
transformer/diffusion_pytorch_model-00002-of-00007.safetensors → transformer/diffusion_pytorch_model-00002-of-00004.safetensorsRenamed+2-2
transformer/diffusion_pytorch_model-00003-of-00007.safetensors → transformer/diffusion_pytorch_model-00003-of-00004.safetensorsRenamed+2-2
transformer/diffusion_pytorch_model-00004-of-00007.safetensors → transformer/diffusion_pytorch_model-00004-of-00004.safetensorsRenamed+2-2
transformer/diffusion_pytorch_model-00005-of-00007.safetensorsDeleted-3
transformer/diffusion_pytorch_model-00006-of-00007.safetensorsDeleted-3
transformer/diffusion_pytorch_model-00007-of-00007.safetensorsDeleted-3
transformer/diffusion_pytorch_model.safetensors.index.json
transformer/modelopt_state.pthAdded+3