Add tiny Cosmos3 modular pipeline fixture

#1
README.md ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: diffusers
3
+ tags:
4
+ - modular-diffusers
5
+ - diffusers
6
+ - cosmos3-omni
7
+ - text-to-image
8
+ ---
9
+ This is a modular diffusion pipeline built with 🧨 Diffusers' modular pipeline framework.
10
+
11
+ **Pipeline Type**: Cosmos3OmniBlocks
12
+
13
+ **Description**: Modular pipeline blocks for Cosmos3 generation modes.
14
+
15
+ This pipeline uses a 5-block architecture that can be customized and extended.
16
+
17
+ ## Example Usage
18
+
19
+ [TODO]
20
+
21
+ ## Pipeline Architecture
22
+
23
+ This modular pipeline is composed of the following blocks:
24
+
25
+ 1. **text_encoder** (`Cosmos3AutoTextEncoderStep`)
26
+ - Auto text encoder block for Cosmos3.
27
+ 2. **vae_encoder** (`Cosmos3AutoVaeEncoderStep`)
28
+ - Auto VAE conditioning block for Cosmos3.
29
+ 3. **denoise** (`Cosmos3AutoCoreDenoiseStep`)
30
+ - Selects the Cosmos3 core denoising workflow.
31
+ 4. **decode** (`Cosmos3AutoDecodeStep`)
32
+ - Selects the Cosmos3 decode workflow.
33
+ 5. **after_decode** (`Cosmos3ActionOutputStep`)
34
+ - Post-processes action latents into action outputs.
35
+
36
+ ## Model Components
37
+
38
+ 1. video_processor (`VideoProcessor`)
39
+ 2. text_tokenizer (`AutoTokenizer`)
40
+ 3. vae (`AutoencoderKLWan`)
41
+ 4. transformer (`Cosmos3OmniTransformer`)
42
+ 5. scheduler (`UniPCMultistepScheduler`)
43
+ 6. sound_tokenizer (`Cosmos3AVAEAudioTokenizer`)
44
+
45
+ ## Configuration Parameters
46
+
47
+ default_use_system_prompt (default: True)
48
+ enable_safety_checker (default: True)
49
+ use_native_flow_schedule (default: False)
50
+
51
+ ## Workflow Input Specification
52
+
53
+ <details>
54
+ <summary><strong>text2image</strong></summary>
55
+
56
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
57
+ - `num_frames` (`int`, *optional*): Number of frames to generate.
58
+
59
+ </details>
60
+
61
+ <details>
62
+ <summary><strong>text2video</strong></summary>
63
+
64
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
65
+
66
+ </details>
67
+
68
+ <details>
69
+ <summary><strong>image2video</strong></summary>
70
+
71
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
72
+ - `image` (`None`, *optional*): Reference image for image-to-video conditioning.
73
+
74
+ </details>
75
+
76
+ <details>
77
+ <summary><strong>video2video</strong></summary>
78
+
79
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
80
+ - `video` (`None`, *optional*): Reference video for video-to-video conditioning.
81
+
82
+ </details>
83
+
84
+ <details>
85
+ <summary><strong>text2video_with_sound</strong></summary>
86
+
87
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
88
+
89
+ </details>
90
+
91
+ <details>
92
+ <summary><strong>image2video_with_sound</strong></summary>
93
+
94
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
95
+ - `image` (`None`, *optional*): Reference image for image-to-video conditioning.
96
+
97
+ </details>
98
+
99
+ <details>
100
+ <summary><strong>video2video_with_sound</strong></summary>
101
+
102
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
103
+ - `video` (`None`, *optional*): Reference video for video-to-video conditioning.
104
+
105
+ </details>
106
+
107
+ <details>
108
+ <summary><strong>action_policy</strong></summary>
109
+
110
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
111
+ - `action` (`CosmosActionCondition`): Action-conditioning metadata and its reference visual input.
112
+
113
+ </details>
114
+
115
+ <details>
116
+ <summary><strong>action_forward_dynamics</strong></summary>
117
+
118
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
119
+ - `action` (`CosmosActionCondition`): Action-conditioning metadata and its reference visual input.
120
+
121
+ </details>
122
+
123
+ <details>
124
+ <summary><strong>action_inverse_dynamics</strong></summary>
125
+
126
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
127
+ - `action` (`CosmosActionCondition`): Action-conditioning metadata and its reference visual input.
128
+
129
+ </details>
130
+
131
+
132
+ ## Input/Output Specification
133
+
134
+ **Inputs:**
135
+
136
+ - `control_videos` (`dict`, *optional*): Mapping of hint name (edge/blur/depth/seg/wsm) to the control video for that modality.
137
+ - `height` (`int`, *optional*): Height of the generated video in pixels.
138
+ - `width` (`int`, *optional*): Width of the generated video in pixels.
139
+ - `num_frames` (`int`, *optional*): Optional cap on the number of output frames (defaults to the control video length).
140
+ - `num_video_frames_per_chunk` (`int`, *optional*): Number of pixel frames generated per autoregressive chunk.
141
+ - `num_conditional_frames` (`int`, *optional*, defaults to `1`): Number of frames each chunk reuses from the previous chunk's tail.
142
+ - `prompt` (`str`): The text prompt that guides Cosmos3 generation.
143
+ - `negative_prompt` (`str`, *optional*): The negative text prompt used for classifier-free guidance.
144
+ - `use_system_prompt` (`bool`, *optional*, defaults to `True`): Whether to prepend the Cosmos3 transfer system prompt.
145
+ - `action` (`CosmosActionCondition`, *optional*): Action-conditioning metadata and its reference visual input.
146
+ - `fps` (`float`, *optional*, defaults to `24.0`): Frame rate of the generated video.
147
+ - `add_resolution_template` (`bool`, *optional*, defaults to `True`): Whether to add resolution metadata to the prompt.
148
+ - `add_duration_template` (`bool`, *optional*, defaults to `True`): Whether to add duration metadata to the prompt.
149
+ - `video` (`None`, *optional*): Reference video for video-to-video conditioning.
150
+ - `condition_frame_indexes_vision` (`tuple | list`, *optional*, defaults to `(0, 1)`): Latent-frame indexes to preserve from the conditioning video.
151
+ - `condition_video_keep` (`str`, *optional*, defaults to `first`): Which end of a longer conditioning video to use: `first` or `last`.
152
+ - `image` (`None`, *optional*): Reference image for image-to-video conditioning.
153
+ - `chunk_id` (`int`, *optional*, defaults to `0`): Index of the current chunk.
154
+ - `previous_output` (`None`, *optional*): Decoded pixels of the previous chunk, used to seed later chunks.
155
+ - `num_first_chunk_conditional_frames` (`int`, *optional*, defaults to `0`): Number of frames the first chunk reuses from the input video.
156
+ - `generator` (`Generator`, *optional*): Torch generator for deterministic generation.
157
+ - `num_inference_steps` (`int`): The number of denoising steps.
158
+ - `**denoiser_input_fields` (`None`, *optional*): conditional model inputs for the denoiser: e.g. prompt_embeds, negative_prompt_embeds, etc.
159
+ - `guidance_scale` (`float`, *optional*, defaults to `6.0`): Scale for text classifier-free guidance.
160
+ - `control_guidance` (`float`, *optional*, defaults to `1.0`): Scale for the control (structural) guidance axis.
161
+ - `guidance_interval` (`tuple`, *optional*): Timestep interval [lo, hi] over which text guidance is active (None = always).
162
+ - `control_guidance_interval` (`tuple`, *optional*): Timestep interval [lo, hi] over which control guidance is active (None = always).
163
+ - `output_chunks` (`list`, *optional*): Decoded pixel chunks accumulated so far.
164
+ - `x0_tokens_vision` (`Tensor`, *optional*): Vision latents encoded from the conditioning image or video.
165
+ - `vision_condition_frames` (`list`, *optional*): Latent-frame indexes fixed by visual conditioning.
166
+ - `latents` (`Tensor`): Pre-generated noisy vision latents.
167
+ - `sound_latents` (`Tensor`, *optional*): Pre-generated noisy sound latents.
168
+ - `action_condition_frame_indexes` (`list`, *optional*): Action-frame indexes fixed by action conditioning.
169
+ - `action_latents` (`Tensor`, *optional*): Pre-generated noisy action latents.
170
+ - `enable_sound` (`bool`, *optional*, defaults to `False`): Whether to generate a synchronized sound track.
171
+ - `output_type` (`str`, *optional*, defaults to `pil`): Output format: 'pil', 'np', 'pt'.
172
+
173
+ **Outputs:**
174
+
175
+ - `videos` (`list`): The generated videos.
176
+ - `sound` (`Tensor`): Generated waveform.
177
+ - `sampling_rate` (`int`): Sample rate of the generated waveform in Hz.
178
+ - `action` (`list`): Generated action vectors.
modular_model_index.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_blocks_class_name": "Cosmos3OmniBlocks",
3
+ "_class_name": "Cosmos3OmniModularPipeline",
4
+ "_diffusers_version": "0.40.0.dev0",
5
+ "default_use_system_prompt": true,
6
+ "enable_safety_checker": true,
7
+ "scheduler": [
8
+ "diffusers",
9
+ "UniPCMultistepScheduler",
10
+ {
11
+ "pretrained_model_name_or_path": "hf-internal-testing/tiny-cosmos3-modular-pipe",
12
+ "revision": null,
13
+ "subfolder": "scheduler",
14
+ "type_hint": [
15
+ "diffusers",
16
+ "UniPCMultistepScheduler"
17
+ ],
18
+ "variant": null
19
+ }
20
+ ],
21
+ "sound_tokenizer": [
22
+ "diffusers",
23
+ "Cosmos3AVAEAudioTokenizer",
24
+ {
25
+ "pretrained_model_name_or_path": "hf-internal-testing/tiny-cosmos3-modular-pipe",
26
+ "revision": null,
27
+ "subfolder": "sound_tokenizer",
28
+ "type_hint": [
29
+ "diffusers",
30
+ "Cosmos3AVAEAudioTokenizer"
31
+ ],
32
+ "variant": null
33
+ }
34
+ ],
35
+ "text_tokenizer": [
36
+ "transformers",
37
+ "Qwen2Tokenizer",
38
+ {
39
+ "pretrained_model_name_or_path": "hf-internal-testing/tiny-cosmos3-modular-pipe",
40
+ "revision": null,
41
+ "subfolder": "text_tokenizer",
42
+ "type_hint": [
43
+ "transformers",
44
+ "Qwen2Tokenizer"
45
+ ],
46
+ "variant": null
47
+ }
48
+ ],
49
+ "transformer": [
50
+ "diffusers",
51
+ "Cosmos3OmniTransformer",
52
+ {
53
+ "pretrained_model_name_or_path": "hf-internal-testing/tiny-cosmos3-modular-pipe",
54
+ "revision": null,
55
+ "subfolder": "transformer",
56
+ "type_hint": [
57
+ "diffusers",
58
+ "Cosmos3OmniTransformer"
59
+ ],
60
+ "variant": null
61
+ }
62
+ ],
63
+ "use_native_flow_schedule": false,
64
+ "vae": [
65
+ "diffusers",
66
+ "AutoencoderKLWan",
67
+ {
68
+ "pretrained_model_name_or_path": "hf-internal-testing/tiny-cosmos3-modular-pipe",
69
+ "revision": null,
70
+ "subfolder": "vae",
71
+ "type_hint": [
72
+ "diffusers",
73
+ "AutoencoderKLWan"
74
+ ],
75
+ "variant": null
76
+ }
77
+ ]
78
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UniPCMultistepScheduler",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "beta_end": 0.02,
5
+ "beta_schedule": "linear",
6
+ "beta_start": 0.0001,
7
+ "disable_corrector": [],
8
+ "dynamic_thresholding_ratio": 0.995,
9
+ "final_sigmas_type": "zero",
10
+ "flow_shift": 1.0,
11
+ "lower_order_final": true,
12
+ "num_train_timesteps": 1000,
13
+ "predict_x0": true,
14
+ "prediction_type": "epsilon",
15
+ "rescale_betas_zero_snr": false,
16
+ "sample_max_value": 1.0,
17
+ "shift_terminal": null,
18
+ "sigma_max": null,
19
+ "sigma_min": null,
20
+ "solver_order": 2,
21
+ "solver_p": null,
22
+ "solver_type": "bh2",
23
+ "steps_offset": 0,
24
+ "thresholding": false,
25
+ "time_shift_type": "exponential",
26
+ "timestep_spacing": "linspace",
27
+ "trained_betas": null,
28
+ "use_beta_sigmas": false,
29
+ "use_dynamic_shifting": false,
30
+ "use_exponential_sigmas": false,
31
+ "use_flow_sigmas": false,
32
+ "use_karras_sigmas": false
33
+ }
sound_tokenizer/config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Cosmos3AVAEAudioTokenizer",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "_name_or_path": "/tmp/cosmos3-tiny-modular-prototype-20260715",
5
+ "activation": "snakebeta",
6
+ "anti_aliasing": false,
7
+ "bottleneck": null,
8
+ "bottleneck_type": "vae",
9
+ "causal": false,
10
+ "dec_anti_aliasing": false,
11
+ "dec_c_mults": [
12
+ 1,
13
+ 2
14
+ ],
15
+ "dec_dim": 4,
16
+ "dec_final_tanh": false,
17
+ "dec_out_channels": 2,
18
+ "dec_strides": [
19
+ 2,
20
+ 2
21
+ ],
22
+ "dec_type": "oobleck",
23
+ "dec_use_nearest_upsample": false,
24
+ "dec_use_snake": true,
25
+ "dec_use_tanh_at_final": false,
26
+ "enc_c_mults": [
27
+ 1
28
+ ],
29
+ "enc_dim": 4,
30
+ "enc_hop_length": 2,
31
+ "enc_identity_init": false,
32
+ "enc_intermediate_dim": 768,
33
+ "enc_latent_dim": 8,
34
+ "enc_n_fft": 8,
35
+ "enc_num_blocks": 1,
36
+ "enc_num_layers": 12,
37
+ "enc_strides": [
38
+ 2
39
+ ],
40
+ "enc_type": "spec_convnext",
41
+ "enc_use_snake": true,
42
+ "encoder_enabled": true,
43
+ "hop_size": 4,
44
+ "input_channels": 1,
45
+ "latent_mean": null,
46
+ "latent_std": null,
47
+ "model_type": "autoencoder_v2",
48
+ "normalize_volume": false,
49
+ "padding_mode": "zeros",
50
+ "sampling_rate": 16,
51
+ "snake_logscale": true,
52
+ "stereo": true,
53
+ "use_cuda_kernel": false,
54
+ "use_wav_as_input": true,
55
+ "vocoder_input_dim": 4
56
+ }
sound_tokenizer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09e100dd66c9a2a16bd479178016e133ac0d3f8fcc5ced7a9bed1d0a0c390ede
3
+ size 16536
text_tokenizer/added_tokens.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|box_end|>": 151649,
3
+ "<|box_start|>": 151648,
4
+ "<|endoftext|>": 151643,
5
+ "<|im_end|>": 151645,
6
+ "<|im_start|>": 151644,
7
+ "<|image_pad|>": 151655,
8
+ "<|object_ref_end|>": 151647,
9
+ "<|object_ref_start|>": 151646,
10
+ "<|quad_end|>": 151651,
11
+ "<|quad_start|>": 151650,
12
+ "<|video_pad|>": 151656,
13
+ "<|vision_end|>": 151653,
14
+ "<|vision_pad|>": 151654,
15
+ "<|vision_start|>": 151652
16
+ }
text_tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
2
+ You are a helpful assistant.<|im_end|>
3
+ {% endif %}<|im_start|>{{ message['role'] }}
4
+ {% if message['content'] is string %}{{ message['content'] }}<|im_end|>
5
+ {% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
6
+ {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
7
+ {% endif %}
text_tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
text_tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
text_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ }
116
+ },
117
+ "additional_special_tokens": [
118
+ "<|im_start|>",
119
+ "<|im_end|>",
120
+ "<|object_ref_start|>",
121
+ "<|object_ref_end|>",
122
+ "<|box_start|>",
123
+ "<|box_end|>",
124
+ "<|quad_start|>",
125
+ "<|quad_end|>",
126
+ "<|vision_start|>",
127
+ "<|vision_end|>",
128
+ "<|vision_pad|>",
129
+ "<|image_pad|>",
130
+ "<|video_pad|>"
131
+ ],
132
+ "bos_token": null,
133
+ "clean_up_tokenization_spaces": false,
134
+ "eos_token": "<|im_end|>",
135
+ "errors": "replace",
136
+ "extra_special_tokens": {},
137
+ "model_max_length": 32768,
138
+ "pad_token": "<|endoftext|>",
139
+ "padding_side": "left",
140
+ "processor_class": "Qwen2VLProcessor",
141
+ "split_special_tokens": false,
142
+ "tokenizer_class": "Qwen2Tokenizer",
143
+ "unk_token": null,
144
+ "variant": null
145
+ }
text_tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
transformer/config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "Cosmos3OmniTransformer",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "_name_or_path": "/tmp/cosmos3-tiny-modular-prototype-20260715",
5
+ "action_dim": 10,
6
+ "action_gen": true,
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "backbone_type": "cosmos3_qwen3vl",
10
+ "base_fps": 24,
11
+ "enable_fps_modulation": true,
12
+ "head_dim": 8,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 32,
15
+ "intermediate_size": 64,
16
+ "latent_channel": 4,
17
+ "latent_patch_size": 2,
18
+ "num_attention_heads": 4,
19
+ "num_embodiment_domains": 32,
20
+ "num_hidden_layers": 2,
21
+ "num_key_value_heads": 2,
22
+ "patch_latent_dim": 16,
23
+ "qk_norm_for_text": true,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_axes_dim": [
26
+ 2,
27
+ 1,
28
+ 1
29
+ ],
30
+ "rope_scaling": {
31
+ "mrope_section": [
32
+ 2,
33
+ 1,
34
+ 1
35
+ ]
36
+ },
37
+ "rope_theta": 5000000.0,
38
+ "sound_dim": 4,
39
+ "sound_gen": true,
40
+ "sound_latent_fps": 5.0,
41
+ "temporal_compression_factor": 4,
42
+ "timestep_scale": 0.001,
43
+ "unified_3d_mrope_reset_spatial_ids": true,
44
+ "unified_3d_mrope_temporal_modality_margin": 15000,
45
+ "vocab_size": 151657
46
+ }
transformer/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db737dd3c20b7b31d0e71972de97177cb4839b16c199b213c8f380ba144b5fe5
3
+ size 39109792
vae/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLWan",
3
+ "_diffusers_version": "0.40.0.dev0",
4
+ "_name_or_path": "/tmp/cosmos3-tiny-modular-prototype-20260715",
5
+ "attn_scales": [],
6
+ "base_dim": 8,
7
+ "decoder_base_dim": 8,
8
+ "dim_mult": [
9
+ 1,
10
+ 1
11
+ ],
12
+ "dropout": 0.0,
13
+ "in_channels": 3,
14
+ "is_residual": false,
15
+ "latents_mean": [
16
+ 0.0,
17
+ 0.0,
18
+ 0.0,
19
+ 0.0
20
+ ],
21
+ "latents_std": [
22
+ 1.0,
23
+ 1.0,
24
+ 1.0,
25
+ 1.0
26
+ ],
27
+ "num_res_blocks": 1,
28
+ "out_channels": 3,
29
+ "patch_size": null,
30
+ "scale_factor_spatial": 8,
31
+ "scale_factor_temporal": 4,
32
+ "temperal_downsample": [
33
+ false
34
+ ],
35
+ "z_dim": 4
36
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9baafae0091064db9eeeb21d2bdd7645cb4c97bc590d5eabba4780bf50237560
3
+ size 167348