Instructions to use WaveCut/Cosmos3-Super-Text2Image-ModelOpt-FP8-Transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WaveCut/Cosmos3-Super-Text2Image-ModelOpt-FP8-Transformer with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WaveCut/Cosmos3-Super-Text2Image-ModelOpt-FP8-Transformer", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Add files using upload-large-folder tool
Browse files- .gitattributes +12 -0
- README.md +209 -0
- examples/01_metro_archive_reading_room_modelopt_fp8.png +3 -0
- examples/02_arctic_greenhouse_night_shift_modelopt_fp8.png +3 -0
- examples/03_control_room_restoration_modelopt_fp8.png +3 -0
- examples/04_rain_market_cross_section_modelopt_fp8.png +3 -0
- examples/05_manuscript_restoration_table_modelopt_fp8.png +3 -0
- examples/06_robotic_assembly_line_signage_modelopt_fp8.png +3 -0
- examples/07_kitchen_storm_chess_table_modelopt_fp8.png +3 -0
- examples/08_orbital_cockpit_cyrillic_ui_modelopt_fp8.png +3 -0
- examples/09_flood_command_center_modelopt_fp8.png +3 -0
- examples/10_cyrillic_newspaper_press_modelopt_fp8.png +3 -0
- examples/nvidia_example_caption_bf16.png +3 -0
- examples/nvidia_example_caption_modelopt_fp8.png +3 -0
- transformer/config.json +60 -0
- transformer/diffusion_pytorch_model-00001-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00002-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00003-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00004-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00005-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00006-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00007-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00008-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00009-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00010-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00011-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00012-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00013-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model-00014-of-00014.bin +3 -0
- transformer/diffusion_pytorch_model.bin.index.json +0 -0
- transformer/modelopt_state.pth +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
examples/10_cyrillic_newspaper_press_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
examples/nvidia_example_caption_bf16.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
examples/nvidia_example_caption_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
examples/01_metro_archive_reading_room_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
examples/02_arctic_greenhouse_night_shift_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
examples/03_control_room_restoration_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
examples/04_rain_market_cross_section_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
examples/05_manuscript_restoration_table_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
examples/06_robotic_assembly_line_signage_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
examples/07_kitchen_storm_chess_table_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
examples/08_orbital_cockpit_cyrillic_ui_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
examples/09_flood_command_center_modelopt_fp8.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: nvidia/Cosmos3-Super-Text2Image
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
pipeline_tag: text-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- cosmos3
|
| 7 |
+
- diffusers
|
| 8 |
+
- modelopt
|
| 9 |
+
- fp8
|
| 10 |
+
- nvidia
|
| 11 |
+
- text-to-image
|
| 12 |
+
license: other
|
| 13 |
+
license_name: openmdw1.1-license
|
| 14 |
+
license_link: https://openmdw.ai/license/1-1/
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Cosmos3-Super-Text2Image NVIDIA ModelOpt FP8 Transformer
|
| 18 |
+
|
| 19 |
+
This repository contains a transformer-only NVIDIA ModelOpt FP8 quantization for [nvidia/Cosmos3-Super-Text2Image](https://huggingface.co/nvidia/Cosmos3-Super-Text2Image).
|
| 20 |
+
|
| 21 |
+
It does not repeat the original model card. Read NVIDIA's model card, prompt-format guidance, license, and safety notes here:
|
| 22 |
+
[nvidia/Cosmos3-Super-Text2Image](https://huggingface.co/nvidia/Cosmos3-Super-Text2Image).
|
| 23 |
+
|
| 24 |
+
Only `transformer/` is provided as a weight artifact. The VAE, scheduler, tokenizers, safety checker, and other components are loaded from the base model.
|
| 25 |
+
|
| 26 |
+
## Recipe
|
| 27 |
+
|
| 28 |
+
| Setting | Value |
|
| 29 |
+
| --- | --- |
|
| 30 |
+
| Quantizer | NVIDIA ModelOpt |
|
| 31 |
+
| ModelOpt version | `0.44.0` |
|
| 32 |
+
| Quant type | `FP8_DEFAULT_CFG` |
|
| 33 |
+
| Weight-only | `True` |
|
| 34 |
+
| Compressed | `True` |
|
| 35 |
+
| Quantized modules inserted | `2709` |
|
| 36 |
+
| Quantization time | 1.34s |
|
| 37 |
+
| Compress time | 0.45s |
|
| 38 |
+
| Save time | 65.99s |
|
| 39 |
+
| Transformer checkpoint size | 61.06 GiB |
|
| 40 |
+
|
| 41 |
+
The checkpoint includes ModelOpt state in `transformer/modelopt_state.pth`.
|
| 42 |
+
|
| 43 |
+
## Assemble The Pipeline
|
| 44 |
+
|
| 45 |
+
Install ModelOpt in the same environment as Diffusers:
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
pip install "nvidia_modelopt[hf]"
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
The current tested runtime requires a small compatibility helper for ModelOpt `QTensorWrapper` restoration with Diffusers and Accelerate. Important: load the quantized transformer **without** passing `torch_dtype`; otherwise Diffusers casts FP8 tensors back to BF16 during state-dict loading.
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
import json
|
| 55 |
+
import torch
|
| 56 |
+
from diffusers import Cosmos3OmniPipeline, Cosmos3OmniTransformer
|
| 57 |
+
from diffusers.schedulers.scheduling_unipc_multistep import UniPCMultistepScheduler
|
| 58 |
+
from modelopt.torch.quantization.qtensor.base_qtensor import QTensorWrapper
|
| 59 |
+
import modelopt.torch.opt as mto
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def patch_modelopt_qtensor_loader():
|
| 63 |
+
import accelerate.utils.modeling as accelerate_modeling
|
| 64 |
+
import diffusers.models.model_loading_utils as diffusers_loading
|
| 65 |
+
|
| 66 |
+
original = accelerate_modeling.set_module_tensor_to_device
|
| 67 |
+
if getattr(original, "_cosmos3_modelopt_patch", False):
|
| 68 |
+
return
|
| 69 |
+
|
| 70 |
+
def patched(module, tensor_name, device, value=None, dtype=None, fp16_statistics=None,
|
| 71 |
+
tied_params_map=None, non_blocking=False, clear_cache=True):
|
| 72 |
+
leaf_module = module
|
| 73 |
+
leaf_name = tensor_name
|
| 74 |
+
if "." in tensor_name:
|
| 75 |
+
parts = tensor_name.split(".")
|
| 76 |
+
for part in parts[:-1]:
|
| 77 |
+
leaf_module = getattr(leaf_module, part)
|
| 78 |
+
leaf_name = parts[-1]
|
| 79 |
+
old_value = getattr(leaf_module, leaf_name) if hasattr(leaf_module, leaf_name) else None
|
| 80 |
+
if isinstance(old_value, QTensorWrapper) and value is not None:
|
| 81 |
+
leaf_module._parameters[leaf_name] = QTensorWrapper(
|
| 82 |
+
value.to(device, non_blocking=non_blocking),
|
| 83 |
+
metadata=old_value.metadata,
|
| 84 |
+
)
|
| 85 |
+
return
|
| 86 |
+
return original(module, tensor_name, device, value, dtype, fp16_statistics,
|
| 87 |
+
tied_params_map, non_blocking, clear_cache)
|
| 88 |
+
|
| 89 |
+
patched._cosmos3_modelopt_patch = True
|
| 90 |
+
accelerate_modeling.set_module_tensor_to_device = patched
|
| 91 |
+
diffusers_loading.set_module_tensor_to_device = patched
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def cast_modelopt_runtime_tensors(model, dtype=torch.bfloat16):
|
| 95 |
+
for module in model.modules():
|
| 96 |
+
for name, param in list(module._parameters.items()):
|
| 97 |
+
if isinstance(param, QTensorWrapper):
|
| 98 |
+
param.metadata["dtype"] = dtype
|
| 99 |
+
elif param is not None and param.is_floating_point():
|
| 100 |
+
module._parameters[name] = torch.nn.Parameter(
|
| 101 |
+
param.detach().to(dtype),
|
| 102 |
+
requires_grad=param.requires_grad,
|
| 103 |
+
)
|
| 104 |
+
for name, buf in list(module._buffers.items()):
|
| 105 |
+
if buf is not None and buf.is_floating_point():
|
| 106 |
+
module._buffers[name] = buf.to(dtype)
|
| 107 |
+
return model
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
patch_modelopt_qtensor_loader()
|
| 111 |
+
mto.enable_huggingface_checkpointing()
|
| 112 |
+
|
| 113 |
+
transformer = Cosmos3OmniTransformer.from_pretrained(
|
| 114 |
+
"WaveCut/Cosmos3-Super-Text2Image-ModelOpt-FP8-Transformer",
|
| 115 |
+
subfolder="transformer",
|
| 116 |
+
use_safetensors=False,
|
| 117 |
+
)
|
| 118 |
+
transformer = cast_modelopt_runtime_tensors(transformer, torch.bfloat16)
|
| 119 |
+
|
| 120 |
+
pipe = Cosmos3OmniPipeline.from_pretrained(
|
| 121 |
+
"nvidia/Cosmos3-Super-Text2Image",
|
| 122 |
+
transformer=transformer,
|
| 123 |
+
torch_dtype=torch.bfloat16,
|
| 124 |
+
device_map="cuda",
|
| 125 |
+
enable_safety_checker=True,
|
| 126 |
+
)
|
| 127 |
+
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config, flow_shift=3.0)
|
| 128 |
+
pipe.to("cuda")
|
| 129 |
+
|
| 130 |
+
json_caption = {
|
| 131 |
+
"subjects": [],
|
| 132 |
+
"background_setting": "A concise scene description.",
|
| 133 |
+
"comprehensive_t2i_caption": "A detailed natural-language caption.",
|
| 134 |
+
"resolution": {"H": 1024, "W": 1024},
|
| 135 |
+
"aspect_ratio": "1,1",
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
with torch.autocast("cuda", dtype=torch.bfloat16):
|
| 139 |
+
result = pipe(
|
| 140 |
+
prompt=json.dumps(json_caption),
|
| 141 |
+
negative_prompt="",
|
| 142 |
+
num_frames=1,
|
| 143 |
+
height=1024,
|
| 144 |
+
width=1024,
|
| 145 |
+
num_inference_steps=50,
|
| 146 |
+
guidance_scale=4.0,
|
| 147 |
+
generator=torch.Generator(device="cuda").manual_seed(1143),
|
| 148 |
+
)
|
| 149 |
+
result.video[0].save("cosmos3_modelopt_fp8.png")
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
## Benchmarks
|
| 153 |
+
|
| 154 |
+
Measured on one RunPod NVIDIA B200 instance with local container storage, cached model files, PyTorch `2.9.1+cu130`, 1024x1024 image generation, 50 inference steps, guidance scale 4.0, `flow_shift=3.0`, system prompt enabled. The ModelOpt FP8 runtime uses BF16 autocast around the pipeline forward.
|
| 155 |
+
|
| 156 |
+
### Transformer Component Load
|
| 157 |
+
|
| 158 |
+
| Variant | Load to CUDA | VRAM after load | Torch allocated | Torch reserved | Transformer weights |
|
| 159 |
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 160 |
+
| BF16 base transformer | 41.83s | 122,758 MiB | 122,121 MiB | 122,132 MiB | 119.21 GiB |
|
| 161 |
+
| NVIDIA ModelOpt FP8 transformer | 21.95s | 63,550 MiB | 62,907 MiB | 62,924 MiB | 61.06 GiB |
|
| 162 |
+
|
| 163 |
+
### Full Pipeline Generation
|
| 164 |
+
|
| 165 |
+
The stress set is ten handwritten JSON-caption prompts designed to stress Cyrillic text, reflections, multi-object composition, anatomy, small details, and scene-following.
|
| 166 |
+
|
| 167 |
+
| Variant | Full pipeline load | VRAM after load | Torch allocated after load | Avg generation time | Min / max generation time | Peak sampled VRAM | Images |
|
| 168 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 169 |
+
| BF16 base pipeline | 31.31s | 125,134 MiB | 124,386 MiB | 16.05s | 15.51s / 17.97s | 141,104 MiB | 10 |
|
| 170 |
+
| NVIDIA ModelOpt FP8 pipeline | 35.49s | 65,810 MiB | 65,171 MiB | 45.57s | 45.07s / 47.28s | 81,854 MiB | 10 |
|
| 171 |
+
|
| 172 |
+
### Original NVIDIA Example Caption
|
| 173 |
+
|
| 174 |
+
The original model repository provides [`assets/example_caption.json`](https://huggingface.co/nvidia/Cosmos3-Super-Text2Image/blob/main/assets/example_caption.json). The images below are generated locally with the same JSON-caption, seed 1143, 1024x1024, 50 steps, guidance scale 4.0.
|
| 175 |
+
|
| 176 |
+
| Variant | Pipeline load | Generation time | Peak sampled VRAM |
|
| 177 |
+
| --- | ---: | ---: | ---: |
|
| 178 |
+
| BF16 base pipeline | 35.41s | 18.01s | 141,098 MiB |
|
| 179 |
+
| NVIDIA ModelOpt FP8 pipeline | 35.28s | 47.20s | 71,470 MiB |
|
| 180 |
+
|
| 181 |
+
BF16 reference output:
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
|
| 185 |
+
NVIDIA ModelOpt FP8 output:
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+
## Stress Prompt Outputs
|
| 190 |
+
|
| 191 |
+
| Stress prompt | NVIDIA ModelOpt FP8 output |
|
| 192 |
+
| --- | --- |
|
| 193 |
+
| 01 metro archive reading room |  |
|
| 194 |
+
| 02 arctic greenhouse night shift |  |
|
| 195 |
+
| 03 control room restoration |  |
|
| 196 |
+
| 04 rain market cross section |  |
|
| 197 |
+
| 05 manuscript restoration table |  |
|
| 198 |
+
| 06 robotic assembly line signage |  |
|
| 199 |
+
| 07 kitchen storm chess table |  |
|
| 200 |
+
| 08 orbital cockpit cyrillic ui |  |
|
| 201 |
+
| 09 flood command center |  |
|
| 202 |
+
| 10 cyrillic newspaper press |  |
|
| 203 |
+
|
| 204 |
+
## Notes
|
| 205 |
+
|
| 206 |
+
- Treat this as an experimental ModelOpt FP8 transformer artifact. The upstream NVIDIA card documents BF16 as the tested precision.
|
| 207 |
+
- Do not pass `torch_dtype=torch.bfloat16` when loading this quantized transformer; cast runtime metadata after loading as shown above.
|
| 208 |
+
- The safety checker is not included in this repository; load it from the base model if your use case requires it.
|
| 209 |
+
- Text rendering, especially exact Cyrillic text, remains a hard case for this model family and should be evaluated visually for the target prompt distribution.
|
examples/01_metro_archive_reading_room_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/02_arctic_greenhouse_night_shift_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/03_control_room_restoration_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/04_rain_market_cross_section_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/05_manuscript_restoration_table_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/06_robotic_assembly_line_signage_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/07_kitchen_storm_chess_table_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/08_orbital_cockpit_cyrillic_ui_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/09_flood_command_center_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/10_cyrillic_newspaper_press_modelopt_fp8.png
ADDED
|
Git LFS Details
|
examples/nvidia_example_caption_bf16.png
ADDED
|
Git LFS Details
|
examples/nvidia_example_caption_modelopt_fp8.png
ADDED
|
Git LFS Details
|
transformer/config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "Cosmos3OmniTransformer",
|
| 3 |
+
"_diffusers_version": "0.39.0.dev0",
|
| 4 |
+
"_name_or_path": "nvidia/Cosmos3-Super-Text2Image",
|
| 5 |
+
"action_dim": 32,
|
| 6 |
+
"action_gen": false,
|
| 7 |
+
"attention_bias": false,
|
| 8 |
+
"attention_dropout": 0.0,
|
| 9 |
+
"base_fps": 24,
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
+
"enable_fps_modulation": true,
|
| 12 |
+
"freeze_und": false,
|
| 13 |
+
"head_dim": 128,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 5120,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 25600,
|
| 18 |
+
"joint_attn_implementation": "two_way",
|
| 19 |
+
"latent_channel": 48,
|
| 20 |
+
"latent_patch_size": 2,
|
| 21 |
+
"max_action_dim": 32,
|
| 22 |
+
"max_position_embeddings": 262144,
|
| 23 |
+
"model_type": "qwen3_vl_text",
|
| 24 |
+
"num_attention_heads": 64,
|
| 25 |
+
"num_embodiment_domains": 32,
|
| 26 |
+
"num_hidden_layers": 64,
|
| 27 |
+
"num_key_value_heads": 8,
|
| 28 |
+
"patch_latent_dim": 192,
|
| 29 |
+
"position_embedding_type": "unified_3d_mrope",
|
| 30 |
+
"qk_norm": false,
|
| 31 |
+
"qk_norm_for_diffusion": true,
|
| 32 |
+
"qk_norm_for_text": true,
|
| 33 |
+
"rms_norm_eps": 1e-06,
|
| 34 |
+
"rope_axes_dim": [
|
| 35 |
+
24,
|
| 36 |
+
20,
|
| 37 |
+
20
|
| 38 |
+
],
|
| 39 |
+
"rope_scaling": {
|
| 40 |
+
"mrope_interleaved": true,
|
| 41 |
+
"mrope_section": [
|
| 42 |
+
24,
|
| 43 |
+
20,
|
| 44 |
+
20
|
| 45 |
+
],
|
| 46 |
+
"rope_type": "default"
|
| 47 |
+
},
|
| 48 |
+
"rope_theta": 5000000,
|
| 49 |
+
"sound_dim": 64,
|
| 50 |
+
"sound_gen": true,
|
| 51 |
+
"sound_latent_fps": 25,
|
| 52 |
+
"temporal_compression_factor_sound": 1,
|
| 53 |
+
"timestep_scale": 0.001,
|
| 54 |
+
"unified_3d_mrope_reset_spatial_ids": true,
|
| 55 |
+
"unified_3d_mrope_temporal_modality_margin": 15000,
|
| 56 |
+
"use_cache": true,
|
| 57 |
+
"use_moe": true,
|
| 58 |
+
"video_temporal_causal": false,
|
| 59 |
+
"vocab_size": 151936
|
| 60 |
+
}
|
transformer/diffusion_pytorch_model-00001-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6e3b47a834bef64dc72502f59a5099941fb61aeade649696a0428a2f24fe982
|
| 3 |
+
size 4932444015
|
transformer/diffusion_pytorch_model-00002-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf167e911627d35d7450e2786602d3971428ad53b1dbf052a314f3f06afe817a
|
| 3 |
+
size 4876178507
|
transformer/diffusion_pytorch_model-00003-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d7acc514c7e9bfb5c10247883d1ec84a3b7b2dc52be834ee34768a278512d04
|
| 3 |
+
size 4876178699
|
transformer/diffusion_pytorch_model-00004-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97a0bef6cbb63a5c4eac1ee5e659c07b8aa9d7af216bd6c24f194997dd31f634
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00005-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:613e18d6f91c114a4c3e4d3b847fa2e54d8f1ba04ff72127408ec4a57b217f85
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00006-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a63f21d31cc1fbe26f2fd54c7b154f27ffd2e8580136fb405fe903451cf2b582
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00007-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c73330ef10b69e1959b6e30610dedf543ffdc8cda5179ed92fc5bc2231f3de6
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00008-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ab859b1361b3d263e8e43b6b528fc023bac7ad5069edf795ea393b8b0d7e769
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00009-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e2e4b5b592adf30fbe5d0b87f409b6fd68bf67848519797e562b57637ec4ffa
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00010-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a703609490a65ba8e34175cc2045fb9ca5fac5904c7cc77f3b059f482c56ddce
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00011-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0cba2114cbcfd28e836baec3d9afaa4ff856f15bb6683dfe726105442ee96f7
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00012-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b72f854e65f6983114e5ce7ee0802c5efeb388df754273b916bbb61700f429da
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00013-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d12211b95096a739b274bc321ebb315ac05429493bf6000cc308a6fc92179eef
|
| 3 |
+
size 4876178763
|
transformer/diffusion_pytorch_model-00014-of-00014.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c12ea11e672fdfc91724f6ad5297f56dbb95410c416e3df9a90f9a4dda57fe71
|
| 3 |
+
size 2111707809
|
transformer/diffusion_pytorch_model.bin.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transformer/modelopt_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92c2d7ff49a4c8bcafddf083239bfd48a833d43e21855fa1f113e7c8521373a1
|
| 3 |
+
size 1242391
|