CCreater commited on
Commit
47a2bbc
·
verified ·
1 Parent(s): 1a7c88e

Add cosmos3edge_libero_spatial_full_finetune_bs16 checkpoint

Browse files
.gitattributes CHANGED
@@ -49,3 +49,4 @@ gr00t_qwen3vl_0.6b_libero_spatial_full_finetune_bs64/tokenizer/tokenizer.json fi
49
  pi05_paligemma_robocasa_full_data_full_finetune_bs256/pi05_paligemma_robocasa_full_data_full_finetune_2026_07_21_01_22_59.jsonl filter=lfs diff=lfs merge=lfs -text
50
  pi05_paligemma_robocasa_full_data_full_finetune_bs256/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
51
  fastwam_base/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
49
  pi05_paligemma_robocasa_full_data_full_finetune_bs256/pi05_paligemma_robocasa_full_data_full_finetune_2026_07_21_01_22_59.jsonl filter=lfs diff=lfs merge=lfs -text
50
  pi05_paligemma_robocasa_full_data_full_finetune_bs256/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
51
  fastwam_base/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
52
+ cosmos3edge_libero_spatial_full_finetune_bs16/tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
cosmos3edge_libero_spatial_full_finetune_bs16/checkpoints/step-002000-epoch-76-loss=0.7025.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8765854419dd33e61b70ea40795390581835dbd0cfb4fd54eaca03eb5569e351
3
+ size 16297490208
cosmos3edge_libero_spatial_full_finetune_bs16/config.json ADDED
@@ -0,0 +1,669 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eval": {
3
+ "dataset": {
4
+ "extra_tensor_keys": [
5
+ "conditioning_fps",
6
+ "prepend_state_to_action"
7
+ ],
8
+ "img_buffer_len": 1,
9
+ "transforms": [
10
+ {
11
+ "embodiment_id": 5,
12
+ "img_keys": [
13
+ "agentview_image",
14
+ "robot0_eye_in_hand_image"
15
+ ],
16
+ "type": "ProcessLiberoEvalInputs"
17
+ },
18
+ {
19
+ "conditioning_fps": 20.0,
20
+ "prepend_state_to_action": false,
21
+ "type": "SetCosmos3ActionMetadata"
22
+ },
23
+ {
24
+ "image_resize_strategy": "resize-naive",
25
+ "input_sizes": [
26
+ [
27
+ 3,
28
+ 256,
29
+ 256
30
+ ],
31
+ [
32
+ 3,
33
+ 256,
34
+ 256
35
+ ]
36
+ ],
37
+ "means": [
38
+ [
39
+ 127.5,
40
+ 127.5,
41
+ 127.5
42
+ ],
43
+ [
44
+ 127.5,
45
+ 127.5,
46
+ 127.5
47
+ ]
48
+ ],
49
+ "stds": [
50
+ [
51
+ 127.5,
52
+ 127.5,
53
+ 127.5
54
+ ],
55
+ [
56
+ 127.5,
57
+ 127.5,
58
+ 127.5
59
+ ]
60
+ ],
61
+ "type": "TransformImage"
62
+ },
63
+ {
64
+ "action_metadata": {
65
+ "append_viewpoint": false,
66
+ "conditioning_fps": 20.0,
67
+ "frame_window_size": 17,
68
+ "video_height": 256,
69
+ "video_width": 512
70
+ },
71
+ "cfg_dropout_rate": 0.0,
72
+ "max_len": 512,
73
+ "output_attention_mask_key": "lang_masks",
74
+ "output_key": "lang_tokens",
75
+ "tokenizer": {
76
+ "model_max_length": 4096,
77
+ "model_path": "./checkpoints/Cosmos3-Edge",
78
+ "padding_side": "right",
79
+ "trust_remote_code": true,
80
+ "type": "PretrainedTokenizer"
81
+ },
82
+ "type": "ProcessCosmos3Prompt"
83
+ },
84
+ {
85
+ "gripper_key": "robot0_gripper_qpos",
86
+ "norm_type": "mean_std",
87
+ "out_key": "states",
88
+ "pos_key": "robot0_eef_pos",
89
+ "quat_key": "robot0_eef_quat",
90
+ "state_dim": 64,
91
+ "type": "LiberoProprioFromInputs"
92
+ },
93
+ {
94
+ "frame_window_size": 1,
95
+ "num_views": 2,
96
+ "tile_direction": "horizontal",
97
+ "type": "PrepareVideo"
98
+ }
99
+ ],
100
+ "type": "LiberoParquetEvalDataset"
101
+ },
102
+ "denormalize_action": {
103
+ "action_dim": 10,
104
+ "norm_type": "quantile_rot",
105
+ "type": "DenormalizeLiberoFramewiseRot6DAction"
106
+ },
107
+ "enable_mixed_precision_training": true,
108
+ "eval_chunk_size": 16,
109
+ "inference_seed": 7,
110
+ "mixed_precision_dtype": "bf16",
111
+ "model_family": "cosmos3",
112
+ "norm_stats_key": "libero_spatial_no_noops",
113
+ "num_inference_steps": 30,
114
+ "num_steps_wait": 10,
115
+ "num_trials_per_task": 50,
116
+ "resize_size": 256,
117
+ "seed": 7,
118
+ "task_ids": null,
119
+ "task_suite_name": "libero_spatial",
120
+ "type": "LiberoEvalRunner"
121
+ },
122
+ "inference_model": {
123
+ "action_horizon": 16,
124
+ "action_in_proj": {
125
+ "input_size": 64,
126
+ "num_domains": 32,
127
+ "output_size": 2048,
128
+ "type": "DomainAwareLinear"
129
+ },
130
+ "action_out_proj": {
131
+ "input_size": 2048,
132
+ "num_domains": 32,
133
+ "output_size": 64,
134
+ "type": "DomainAwareLinear"
135
+ },
136
+ "base_fps": 24.0,
137
+ "enable_fps_modulation": true,
138
+ "enable_vision_loss": true,
139
+ "freeze_non_moe_vlm_backbone": true,
140
+ "freeze_vlm_backbone": false,
141
+ "latent_patch_size": 2,
142
+ "max_action_dim": 64,
143
+ "name_mapping": {
144
+ ".self_attn.k_norm_moe_gen.": ".self_attn.norm_added_k.",
145
+ ".self_attn.k_proj.": ".self_attn.to_k.",
146
+ ".self_attn.k_proj_moe_gen.": ".self_attn.add_k_proj.",
147
+ ".self_attn.o_proj.": ".self_attn.to_out.",
148
+ ".self_attn.o_proj_moe_gen.": ".self_attn.to_add_out.",
149
+ ".self_attn.q_norm_moe_gen.": ".self_attn.norm_added_q.",
150
+ ".self_attn.q_proj.": ".self_attn.to_q.",
151
+ ".self_attn.q_proj_moe_gen.": ".self_attn.add_q_proj.",
152
+ ".self_attn.v_proj.": ".self_attn.to_v.",
153
+ ".self_attn.v_proj_moe_gen.": ".self_attn.add_v_proj.",
154
+ "action_in_proj.": "action_proj_in.",
155
+ "action_modality_embed": "action_modality_embed",
156
+ "action_out_proj.": "action_proj_out.",
157
+ "time_embedder.mlp.0.": "time_embedder.linear_1.",
158
+ "time_embedder.mlp.2.": "time_embedder.linear_2.",
159
+ "vision_in_proj.projector.": "proj_in.",
160
+ "vision_out_proj.projector.": "proj_out.",
161
+ "vlm_backbone.lm_head.weight": "lm_head.weight",
162
+ "vlm_backbone.model.language_model.embed_tokens.weight": "embed_tokens.weight",
163
+ "vlm_backbone.model.language_model.layers.": "layers.",
164
+ "vlm_backbone.model.language_model.norm.weight": "norm.weight",
165
+ "vlm_backbone.model.language_model.norm_moe_gen.weight": "norm_moe_gen.weight"
166
+ },
167
+ "num_embodiment_domains": 32,
168
+ "ori_action_dim": 10,
169
+ "packed_attention_backend": "flash2",
170
+ "position_embedding_type": "unified_3d_mrope",
171
+ "pretrained_name_or_path": "./checkpoints/Cosmos3-Edge/transformer",
172
+ "rectified_flow_inference_config": {
173
+ "num_steps": 30,
174
+ "num_train_timesteps": 1000,
175
+ "scheduler_type": "unipc",
176
+ "shift": 10.0,
177
+ "use_dynamic_shifting": false,
178
+ "use_karras_sigmas": false
179
+ },
180
+ "rectified_flow_training_config": {
181
+ "action_loss_weight": 10.0,
182
+ "independent_action_schedule": false,
183
+ "normalize_loss_by_active": false,
184
+ "shift": {
185
+ "256": 3,
186
+ "480": 5,
187
+ "720": 10
188
+ },
189
+ "shift_action": null,
190
+ "train_time_action_distribution": "logitnormal",
191
+ "train_time_image_distribution": "logitnormal",
192
+ "train_time_video_distribution": "waver",
193
+ "train_time_weight": "uniform",
194
+ "use_discrete_rf": false,
195
+ "use_dynamic_shift": false,
196
+ "use_high_sigma_strategy": false,
197
+ "use_high_sigma_strategy_action": false,
198
+ "vision_loss_weight": 10.0
199
+ },
200
+ "reinitialize_action_policy": true,
201
+ "special_tokens": {
202
+ "end_of_generation": 21,
203
+ "eos_token_id": 11,
204
+ "start_of_generation": 20
205
+ },
206
+ "strict_mapping": true,
207
+ "timestep_scale": 0.001,
208
+ "type": "Cosmos3FlowMatching",
209
+ "unified_3d_mrope_reset_spatial_ids": true,
210
+ "unified_3d_mrope_temporal_modality_margin": 15000,
211
+ "vision_in_proj": {
212
+ "in_dim": 192,
213
+ "out_dim": 2048,
214
+ "type": "LinearProjector"
215
+ },
216
+ "vision_latent_dim": 48,
217
+ "vision_out_proj": {
218
+ "in_dim": 2048,
219
+ "out_dim": 192,
220
+ "type": "LinearProjector"
221
+ },
222
+ "vision_vae": {
223
+ "encode_exact_durations": [
224
+ 17
225
+ ],
226
+ "pretrained_name_or_path": "./checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth",
227
+ "type": "Cosmos3Wan22VAE"
228
+ },
229
+ "vlm_backbone": {
230
+ "include_visual": false,
231
+ "skip_init_weights": true,
232
+ "type": "Cosmos3MoTBackbone",
233
+ "vlm_config": {
234
+ "attention_bias": false,
235
+ "bos_token_id": 1,
236
+ "enable_mrope": true,
237
+ "eos_token_id": 11,
238
+ "head_dim": 128,
239
+ "hidden_size": 2048,
240
+ "intermediate_size": 9216,
241
+ "layer_norm_epsilon": 1e-05,
242
+ "max_position_embeddings": 131072,
243
+ "mlp_bias": false,
244
+ "mlp_hidden_act": "relu2",
245
+ "model_type": "nemotron_3_dense_vl_text",
246
+ "mrope_section": [
247
+ 24,
248
+ 20,
249
+ 20
250
+ ],
251
+ "num_attention_heads": 16,
252
+ "num_hidden_layers": 28,
253
+ "num_key_value_heads": 8,
254
+ "pad_token_id": 11,
255
+ "rope_theta": 100000000.0,
256
+ "tie_word_embeddings": false,
257
+ "use_und_k_norm_for_gen": true,
258
+ "vocab_size": 131072
259
+ }
260
+ }
261
+ },
262
+ "model": {
263
+ "action_horizon": 16,
264
+ "action_in_proj": {
265
+ "input_size": 64,
266
+ "num_domains": 32,
267
+ "output_size": 2048,
268
+ "type": "DomainAwareLinear"
269
+ },
270
+ "action_out_proj": {
271
+ "input_size": 2048,
272
+ "num_domains": 32,
273
+ "output_size": 64,
274
+ "type": "DomainAwareLinear"
275
+ },
276
+ "base_fps": 24.0,
277
+ "enable_fps_modulation": true,
278
+ "enable_vision_loss": true,
279
+ "freeze_non_moe_vlm_backbone": true,
280
+ "freeze_vlm_backbone": false,
281
+ "latent_patch_size": 2,
282
+ "max_action_dim": 64,
283
+ "name_mapping": {
284
+ ".self_attn.k_norm_moe_gen.": ".self_attn.norm_added_k.",
285
+ ".self_attn.k_proj.": ".self_attn.to_k.",
286
+ ".self_attn.k_proj_moe_gen.": ".self_attn.add_k_proj.",
287
+ ".self_attn.o_proj.": ".self_attn.to_out.",
288
+ ".self_attn.o_proj_moe_gen.": ".self_attn.to_add_out.",
289
+ ".self_attn.q_norm_moe_gen.": ".self_attn.norm_added_q.",
290
+ ".self_attn.q_proj.": ".self_attn.to_q.",
291
+ ".self_attn.q_proj_moe_gen.": ".self_attn.add_q_proj.",
292
+ ".self_attn.v_proj.": ".self_attn.to_v.",
293
+ ".self_attn.v_proj_moe_gen.": ".self_attn.add_v_proj.",
294
+ "action_in_proj.": "action_proj_in.",
295
+ "action_modality_embed": "action_modality_embed",
296
+ "action_out_proj.": "action_proj_out.",
297
+ "time_embedder.mlp.0.": "time_embedder.linear_1.",
298
+ "time_embedder.mlp.2.": "time_embedder.linear_2.",
299
+ "vision_in_proj.projector.": "proj_in.",
300
+ "vision_out_proj.projector.": "proj_out.",
301
+ "vlm_backbone.lm_head.weight": "lm_head.weight",
302
+ "vlm_backbone.model.language_model.embed_tokens.weight": "embed_tokens.weight",
303
+ "vlm_backbone.model.language_model.layers.": "layers.",
304
+ "vlm_backbone.model.language_model.norm.weight": "norm.weight",
305
+ "vlm_backbone.model.language_model.norm_moe_gen.weight": "norm_moe_gen.weight"
306
+ },
307
+ "num_embodiment_domains": 32,
308
+ "ori_action_dim": 10,
309
+ "packed_attention_backend": "flash2",
310
+ "position_embedding_type": "unified_3d_mrope",
311
+ "pretrained_name_or_path": "./checkpoints/Cosmos3-Edge/transformer",
312
+ "rectified_flow_inference_config": {
313
+ "num_steps": 30,
314
+ "num_train_timesteps": 1000,
315
+ "scheduler_type": "unipc",
316
+ "shift": 10.0,
317
+ "use_dynamic_shifting": false,
318
+ "use_karras_sigmas": false
319
+ },
320
+ "rectified_flow_training_config": {
321
+ "action_loss_weight": 10.0,
322
+ "independent_action_schedule": false,
323
+ "normalize_loss_by_active": false,
324
+ "shift": {
325
+ "256": 3,
326
+ "480": 5,
327
+ "720": 10
328
+ },
329
+ "shift_action": null,
330
+ "train_time_action_distribution": "logitnormal",
331
+ "train_time_image_distribution": "logitnormal",
332
+ "train_time_video_distribution": "waver",
333
+ "train_time_weight": "uniform",
334
+ "use_discrete_rf": false,
335
+ "use_dynamic_shift": false,
336
+ "use_high_sigma_strategy": false,
337
+ "use_high_sigma_strategy_action": false,
338
+ "vision_loss_weight": 10.0
339
+ },
340
+ "reinitialize_action_policy": true,
341
+ "special_tokens": {
342
+ "end_of_generation": 21,
343
+ "eos_token_id": 11,
344
+ "start_of_generation": 20
345
+ },
346
+ "strict_mapping": true,
347
+ "timestep_scale": 0.001,
348
+ "type": "Cosmos3FlowMatching",
349
+ "unified_3d_mrope_reset_spatial_ids": true,
350
+ "unified_3d_mrope_temporal_modality_margin": 15000,
351
+ "vision_in_proj": {
352
+ "in_dim": 192,
353
+ "out_dim": 2048,
354
+ "type": "LinearProjector"
355
+ },
356
+ "vision_latent_dim": 48,
357
+ "vision_out_proj": {
358
+ "in_dim": 2048,
359
+ "out_dim": 192,
360
+ "type": "LinearProjector"
361
+ },
362
+ "vision_vae": {
363
+ "encode_exact_durations": [
364
+ 17
365
+ ],
366
+ "pretrained_name_or_path": "./checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth",
367
+ "type": "Cosmos3Wan22VAE"
368
+ },
369
+ "vlm_backbone": {
370
+ "include_visual": false,
371
+ "skip_init_weights": true,
372
+ "type": "Cosmos3MoTBackbone",
373
+ "vlm_config": {
374
+ "attention_bias": false,
375
+ "bos_token_id": 1,
376
+ "enable_mrope": true,
377
+ "eos_token_id": 11,
378
+ "head_dim": 128,
379
+ "hidden_size": 2048,
380
+ "intermediate_size": 9216,
381
+ "layer_norm_epsilon": 1e-05,
382
+ "max_position_embeddings": 131072,
383
+ "mlp_bias": false,
384
+ "mlp_hidden_act": "relu2",
385
+ "model_type": "nemotron_3_dense_vl_text",
386
+ "mrope_section": [
387
+ 24,
388
+ 20,
389
+ 20
390
+ ],
391
+ "num_attention_heads": 16,
392
+ "num_hidden_layers": 28,
393
+ "num_key_value_heads": 8,
394
+ "pad_token_id": 11,
395
+ "rope_theta": 100000000.0,
396
+ "tie_word_embeddings": false,
397
+ "use_und_k_norm_for_gen": true,
398
+ "vocab_size": 131072
399
+ }
400
+ }
401
+ },
402
+ "runner": {
403
+ "change_key_name": false,
404
+ "collator": {
405
+ "list_keys": [
406
+ "sequence_plan"
407
+ ],
408
+ "meta_keys": [
409
+ "task_description",
410
+ "stats",
411
+ "info",
412
+ "timestamp"
413
+ ],
414
+ "pad_id": 11,
415
+ "sequence_keys": [
416
+ "text_token_ids"
417
+ ],
418
+ "tensor_keys": [
419
+ "images",
420
+ "actions",
421
+ "embodiment_ids",
422
+ "raw_action_dim",
423
+ "conditioning_fps",
424
+ "action_fps"
425
+ ],
426
+ "type": "Cosmos3Collator"
427
+ },
428
+ "enable_gradient_checkpointing": true,
429
+ "enable_mixed_precision_training": true,
430
+ "grad_accumulation_steps": 16,
431
+ "lr_scheduler": {
432
+ "cycle_length": 16000,
433
+ "type": "linear-warmup+linear-decay",
434
+ "warmup_steps": 500
435
+ },
436
+ "max_epochs": null,
437
+ "max_grad_norm": 1.0,
438
+ "max_keep_ckpts": 2,
439
+ "max_steps": 2000,
440
+ "metric": {
441
+ "active_trackers": [
442
+ "jsonl",
443
+ "wandb"
444
+ ],
445
+ "grad_accumulation_steps": 16,
446
+ "run_dir": "work_dirs",
447
+ "type": "VLAMetric",
448
+ "window_size": 1
449
+ },
450
+ "mixed_precision_dtype": "bf16",
451
+ "optimizer": {
452
+ "betas": [
453
+ 0.9,
454
+ 0.99
455
+ ],
456
+ "eps": 1e-08,
457
+ "exclude_1d_from_weight_decay": false,
458
+ "fused": true,
459
+ "lr": 5e-05,
460
+ "paramwise_learning_rate": {
461
+ "action_in_proj.": 0.00025,
462
+ "action_modality_embed": 0.00025,
463
+ "action_out_proj.": 0.00025
464
+ },
465
+ "type": "AdamW",
466
+ "weight_decay": 0.05
467
+ },
468
+ "sampler": null,
469
+ "save_iter_interval": 500,
470
+ "sharding_strategy": "full-shard",
471
+ "tokenizer": {
472
+ "model_max_length": 4096,
473
+ "model_path": "./checkpoints/Cosmos3-Edge",
474
+ "padding_side": "right",
475
+ "trust_remote_code": true,
476
+ "type": "PretrainedTokenizer"
477
+ },
478
+ "type": "FSDPTrainRunner"
479
+ },
480
+ "seed": 7,
481
+ "train_dataloader": {
482
+ "dataset": {
483
+ "datasets": {
484
+ "action_key": "action",
485
+ "action_window_size": 16,
486
+ "data_root_path": "/mnt/data/cpfs/mnt/data/yanis/FastWAM/data/libero_mujoco3.3.2/libero_spatial_no_noops_lerobot",
487
+ "frame_window_size": 17,
488
+ "require_full_window": true,
489
+ "statistic_name": "libero_spatial_no_noops",
490
+ "transforms": [
491
+ {
492
+ "embodiment_id": 5,
493
+ "name_mappings": {
494
+ "actions": [
495
+ "actions"
496
+ ],
497
+ "observation.state": [
498
+ "states"
499
+ ]
500
+ },
501
+ "parquet_keys": [
502
+ "observation.state",
503
+ "timestamp",
504
+ "actions",
505
+ "info",
506
+ "stats"
507
+ ],
508
+ "type": "ProcessParquetInputs",
509
+ "video_keys": [
510
+ "observation.images.image",
511
+ "observation.images.wrist_image"
512
+ ]
513
+ },
514
+ {
515
+ "type": "LiberoFramewiseActionToRot6D"
516
+ },
517
+ {
518
+ "action_metadata": {
519
+ "append_viewpoint": false,
520
+ "conditioning_fps": 20.0,
521
+ "frame_window_size": 17,
522
+ "video_height": 256,
523
+ "video_width": 512
524
+ },
525
+ "cfg_dropout_rate": 0.1,
526
+ "max_len": 512,
527
+ "tokenizer": {
528
+ "model_max_length": 4096,
529
+ "model_path": "./checkpoints/Cosmos3-Edge",
530
+ "padding_side": "right",
531
+ "trust_remote_code": true,
532
+ "type": "PretrainedTokenizer"
533
+ },
534
+ "type": "ProcessCosmos3Prompt"
535
+ },
536
+ {
537
+ "height": 256,
538
+ "type": "ResizeImages",
539
+ "width": 256
540
+ },
541
+ {
542
+ "type": "SimpleNormalizeImages"
543
+ },
544
+ {
545
+ "action_dim": 64,
546
+ "action_key": "action",
547
+ "action_norm_type": "quantile",
548
+ "state_dim": 64,
549
+ "state_key": "proprio",
550
+ "state_norm_type": "none",
551
+ "type": "NormalizeStatesAndActions"
552
+ },
553
+ {
554
+ "conditioning_fps": 20.0,
555
+ "frame_window_size": 17,
556
+ "mode": "wam",
557
+ "prepend_state_to_action": false,
558
+ "raw_action_dim": 10,
559
+ "type": "BuildCosmos3Sequence"
560
+ },
561
+ {
562
+ "frame_window_size": 17,
563
+ "num_views": 2,
564
+ "tile_direction": "horizontal",
565
+ "type": "PrepareVideo"
566
+ }
567
+ ],
568
+ "type": "ParquetDataset",
569
+ "use_delta": false,
570
+ "window_start_idx": 0
571
+ },
572
+ "name_mappings": {
573
+ "action": [
574
+ "action"
575
+ ],
576
+ "observation.state": [
577
+ "proprio"
578
+ ]
579
+ },
580
+ "statistic_keys": [
581
+ "observation.state",
582
+ "timestamp",
583
+ "action"
584
+ ],
585
+ "statistic_name": "libero_spatial_no_noops",
586
+ "statistics_overrides": {
587
+ "libero_spatial_no_noops": {
588
+ "action": {
589
+ "max": [
590
+ 0.9375,
591
+ 0.9375,
592
+ 0.9375,
593
+ 1.0,
594
+ 0.368853,
595
+ 0.341214,
596
+ 0.356395,
597
+ 1.0,
598
+ 0.348251,
599
+ 1.0
600
+ ],
601
+ "mean": [
602
+ 0.050704,
603
+ 0.097407,
604
+ -0.094833,
605
+ 0.994873,
606
+ -0.004579,
607
+ -0.004288,
608
+ 0.004389,
609
+ 0.996104,
610
+ 0.001109,
611
+ 0.476725
612
+ ],
613
+ "min": [
614
+ -0.9375,
615
+ -0.9375,
616
+ -0.9375,
617
+ 0.902028,
618
+ -0.356085,
619
+ -0.367416,
620
+ -0.370434,
621
+ 0.921907,
622
+ -0.255,
623
+ 0.0
624
+ ],
625
+ "q01": [
626
+ -0.723214,
627
+ -0.808929,
628
+ -0.9375,
629
+ 0.934955,
630
+ -0.223431,
631
+ -0.189878,
632
+ -0.334735,
633
+ 0.938516,
634
+ -0.107736,
635
+ 0.0
636
+ ],
637
+ "q99": [
638
+ 0.9375,
639
+ 0.870536,
640
+ 0.9375,
641
+ 1.0,
642
+ 0.331,
643
+ 0.163153,
644
+ 0.226216,
645
+ 1.0,
646
+ 0.127158,
647
+ 1.0
648
+ ],
649
+ "std": [
650
+ 0.333621,
651
+ 0.387175,
652
+ 0.45714,
653
+ 0.010807,
654
+ 0.077802,
655
+ 0.063386,
656
+ 0.078571,
657
+ 0.009994,
658
+ 0.038504,
659
+ 0.49946
660
+ ]
661
+ }
662
+ }
663
+ },
664
+ "type": "DistributedRepeatingDataset"
665
+ },
666
+ "per_device_batch_size": 16,
667
+ "per_device_num_workers": 4
668
+ }
669
+ }
cosmos3edge_libero_spatial_full_finetune_bs16/config.yaml ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ eval:
2
+ dataset:
3
+ extra_tensor_keys:
4
+ - conditioning_fps
5
+ - prepend_state_to_action
6
+ img_buffer_len: 1
7
+ transforms:
8
+ - embodiment_id: 5
9
+ img_keys:
10
+ - agentview_image
11
+ - robot0_eye_in_hand_image
12
+ type: ProcessLiberoEvalInputs
13
+ - conditioning_fps: 20.0
14
+ prepend_state_to_action: false
15
+ type: SetCosmos3ActionMetadata
16
+ - image_resize_strategy: resize-naive
17
+ input_sizes:
18
+ - - 3
19
+ - 256
20
+ - 256
21
+ - - 3
22
+ - 256
23
+ - 256
24
+ means:
25
+ - - 127.5
26
+ - 127.5
27
+ - 127.5
28
+ - - 127.5
29
+ - 127.5
30
+ - 127.5
31
+ stds:
32
+ - - 127.5
33
+ - 127.5
34
+ - 127.5
35
+ - - 127.5
36
+ - 127.5
37
+ - 127.5
38
+ type: TransformImage
39
+ - action_metadata:
40
+ append_viewpoint: false
41
+ conditioning_fps: 20.0
42
+ frame_window_size: 17
43
+ video_height: 256
44
+ video_width: 512
45
+ cfg_dropout_rate: 0.0
46
+ max_len: 512
47
+ output_attention_mask_key: lang_masks
48
+ output_key: lang_tokens
49
+ tokenizer:
50
+ model_max_length: 4096
51
+ model_path: ./checkpoints/Cosmos3-Edge
52
+ padding_side: right
53
+ trust_remote_code: true
54
+ type: PretrainedTokenizer
55
+ type: ProcessCosmos3Prompt
56
+ - gripper_key: robot0_gripper_qpos
57
+ norm_type: mean_std
58
+ out_key: states
59
+ pos_key: robot0_eef_pos
60
+ quat_key: robot0_eef_quat
61
+ state_dim: 64
62
+ type: LiberoProprioFromInputs
63
+ - frame_window_size: 1
64
+ num_views: 2
65
+ tile_direction: horizontal
66
+ type: PrepareVideo
67
+ type: LiberoParquetEvalDataset
68
+ denormalize_action:
69
+ action_dim: 10
70
+ norm_type: quantile_rot
71
+ type: DenormalizeLiberoFramewiseRot6DAction
72
+ enable_mixed_precision_training: true
73
+ eval_chunk_size: 16
74
+ inference_seed: 7
75
+ mixed_precision_dtype: bf16
76
+ model_family: cosmos3
77
+ norm_stats_key: libero_spatial_no_noops
78
+ num_inference_steps: 30
79
+ num_steps_wait: 10
80
+ num_trials_per_task: 50
81
+ resize_size: 256
82
+ seed: 7
83
+ task_ids: null
84
+ task_suite_name: libero_spatial
85
+ type: LiberoEvalRunner
86
+ inference_model:
87
+ action_horizon: 16
88
+ action_in_proj:
89
+ input_size: 64
90
+ num_domains: 32
91
+ output_size: 2048
92
+ type: DomainAwareLinear
93
+ action_out_proj:
94
+ input_size: 2048
95
+ num_domains: 32
96
+ output_size: 64
97
+ type: DomainAwareLinear
98
+ base_fps: 24.0
99
+ enable_fps_modulation: true
100
+ enable_vision_loss: true
101
+ freeze_non_moe_vlm_backbone: true
102
+ freeze_vlm_backbone: false
103
+ latent_patch_size: 2
104
+ max_action_dim: 64
105
+ name_mapping:
106
+ .self_attn.k_norm_moe_gen.: .self_attn.norm_added_k.
107
+ .self_attn.k_proj.: .self_attn.to_k.
108
+ .self_attn.k_proj_moe_gen.: .self_attn.add_k_proj.
109
+ .self_attn.o_proj.: .self_attn.to_out.
110
+ .self_attn.o_proj_moe_gen.: .self_attn.to_add_out.
111
+ .self_attn.q_norm_moe_gen.: .self_attn.norm_added_q.
112
+ .self_attn.q_proj.: .self_attn.to_q.
113
+ .self_attn.q_proj_moe_gen.: .self_attn.add_q_proj.
114
+ .self_attn.v_proj.: .self_attn.to_v.
115
+ .self_attn.v_proj_moe_gen.: .self_attn.add_v_proj.
116
+ action_in_proj.: action_proj_in.
117
+ action_modality_embed: action_modality_embed
118
+ action_out_proj.: action_proj_out.
119
+ time_embedder.mlp.0.: time_embedder.linear_1.
120
+ time_embedder.mlp.2.: time_embedder.linear_2.
121
+ vision_in_proj.projector.: proj_in.
122
+ vision_out_proj.projector.: proj_out.
123
+ vlm_backbone.lm_head.weight: lm_head.weight
124
+ vlm_backbone.model.language_model.embed_tokens.weight: embed_tokens.weight
125
+ vlm_backbone.model.language_model.layers.: layers.
126
+ vlm_backbone.model.language_model.norm.weight: norm.weight
127
+ vlm_backbone.model.language_model.norm_moe_gen.weight: norm_moe_gen.weight
128
+ num_embodiment_domains: 32
129
+ ori_action_dim: 10
130
+ packed_attention_backend: flash2
131
+ position_embedding_type: unified_3d_mrope
132
+ pretrained_name_or_path: ./checkpoints/Cosmos3-Edge/transformer
133
+ rectified_flow_inference_config:
134
+ num_steps: 30
135
+ num_train_timesteps: 1000
136
+ scheduler_type: unipc
137
+ shift: 10.0
138
+ use_dynamic_shifting: false
139
+ use_karras_sigmas: false
140
+ rectified_flow_training_config:
141
+ action_loss_weight: 10.0
142
+ independent_action_schedule: false
143
+ normalize_loss_by_active: false
144
+ shift:
145
+ '256': 3
146
+ '480': 5
147
+ '720': 10
148
+ shift_action: null
149
+ train_time_action_distribution: logitnormal
150
+ train_time_image_distribution: logitnormal
151
+ train_time_video_distribution: waver
152
+ train_time_weight: uniform
153
+ use_discrete_rf: false
154
+ use_dynamic_shift: false
155
+ use_high_sigma_strategy: false
156
+ use_high_sigma_strategy_action: false
157
+ vision_loss_weight: 10.0
158
+ reinitialize_action_policy: true
159
+ special_tokens:
160
+ end_of_generation: 21
161
+ eos_token_id: 11
162
+ start_of_generation: 20
163
+ strict_mapping: true
164
+ timestep_scale: 0.001
165
+ type: Cosmos3FlowMatching
166
+ unified_3d_mrope_reset_spatial_ids: true
167
+ unified_3d_mrope_temporal_modality_margin: 15000
168
+ vision_in_proj:
169
+ in_dim: 192
170
+ out_dim: 2048
171
+ type: LinearProjector
172
+ vision_latent_dim: 48
173
+ vision_out_proj:
174
+ in_dim: 2048
175
+ out_dim: 192
176
+ type: LinearProjector
177
+ vision_vae:
178
+ encode_exact_durations:
179
+ - 17
180
+ pretrained_name_or_path: ./checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth
181
+ type: Cosmos3Wan22VAE
182
+ vlm_backbone:
183
+ include_visual: false
184
+ skip_init_weights: true
185
+ type: Cosmos3MoTBackbone
186
+ vlm_config:
187
+ attention_bias: false
188
+ bos_token_id: 1
189
+ enable_mrope: true
190
+ eos_token_id: 11
191
+ head_dim: 128
192
+ hidden_size: 2048
193
+ intermediate_size: 9216
194
+ layer_norm_epsilon: 1.0e-05
195
+ max_position_embeddings: 131072
196
+ mlp_bias: false
197
+ mlp_hidden_act: relu2
198
+ model_type: nemotron_3_dense_vl_text
199
+ mrope_section:
200
+ - 24
201
+ - 20
202
+ - 20
203
+ num_attention_heads: 16
204
+ num_hidden_layers: 28
205
+ num_key_value_heads: 8
206
+ pad_token_id: 11
207
+ rope_theta: 100000000.0
208
+ tie_word_embeddings: false
209
+ use_und_k_norm_for_gen: true
210
+ vocab_size: 131072
211
+ model:
212
+ action_horizon: 16
213
+ action_in_proj:
214
+ input_size: 64
215
+ num_domains: 32
216
+ output_size: 2048
217
+ type: DomainAwareLinear
218
+ action_out_proj:
219
+ input_size: 2048
220
+ num_domains: 32
221
+ output_size: 64
222
+ type: DomainAwareLinear
223
+ base_fps: 24.0
224
+ enable_fps_modulation: true
225
+ enable_vision_loss: true
226
+ freeze_non_moe_vlm_backbone: true
227
+ freeze_vlm_backbone: false
228
+ latent_patch_size: 2
229
+ max_action_dim: 64
230
+ name_mapping:
231
+ .self_attn.k_norm_moe_gen.: .self_attn.norm_added_k.
232
+ .self_attn.k_proj.: .self_attn.to_k.
233
+ .self_attn.k_proj_moe_gen.: .self_attn.add_k_proj.
234
+ .self_attn.o_proj.: .self_attn.to_out.
235
+ .self_attn.o_proj_moe_gen.: .self_attn.to_add_out.
236
+ .self_attn.q_norm_moe_gen.: .self_attn.norm_added_q.
237
+ .self_attn.q_proj.: .self_attn.to_q.
238
+ .self_attn.q_proj_moe_gen.: .self_attn.add_q_proj.
239
+ .self_attn.v_proj.: .self_attn.to_v.
240
+ .self_attn.v_proj_moe_gen.: .self_attn.add_v_proj.
241
+ action_in_proj.: action_proj_in.
242
+ action_modality_embed: action_modality_embed
243
+ action_out_proj.: action_proj_out.
244
+ time_embedder.mlp.0.: time_embedder.linear_1.
245
+ time_embedder.mlp.2.: time_embedder.linear_2.
246
+ vision_in_proj.projector.: proj_in.
247
+ vision_out_proj.projector.: proj_out.
248
+ vlm_backbone.lm_head.weight: lm_head.weight
249
+ vlm_backbone.model.language_model.embed_tokens.weight: embed_tokens.weight
250
+ vlm_backbone.model.language_model.layers.: layers.
251
+ vlm_backbone.model.language_model.norm.weight: norm.weight
252
+ vlm_backbone.model.language_model.norm_moe_gen.weight: norm_moe_gen.weight
253
+ num_embodiment_domains: 32
254
+ ori_action_dim: 10
255
+ packed_attention_backend: flash2
256
+ position_embedding_type: unified_3d_mrope
257
+ pretrained_name_or_path: ./checkpoints/Cosmos3-Edge/transformer
258
+ rectified_flow_inference_config:
259
+ num_steps: 30
260
+ num_train_timesteps: 1000
261
+ scheduler_type: unipc
262
+ shift: 10.0
263
+ use_dynamic_shifting: false
264
+ use_karras_sigmas: false
265
+ rectified_flow_training_config:
266
+ action_loss_weight: 10.0
267
+ independent_action_schedule: false
268
+ normalize_loss_by_active: false
269
+ shift:
270
+ '256': 3
271
+ '480': 5
272
+ '720': 10
273
+ shift_action: null
274
+ train_time_action_distribution: logitnormal
275
+ train_time_image_distribution: logitnormal
276
+ train_time_video_distribution: waver
277
+ train_time_weight: uniform
278
+ use_discrete_rf: false
279
+ use_dynamic_shift: false
280
+ use_high_sigma_strategy: false
281
+ use_high_sigma_strategy_action: false
282
+ vision_loss_weight: 10.0
283
+ reinitialize_action_policy: true
284
+ special_tokens:
285
+ end_of_generation: 21
286
+ eos_token_id: 11
287
+ start_of_generation: 20
288
+ strict_mapping: true
289
+ timestep_scale: 0.001
290
+ type: Cosmos3FlowMatching
291
+ unified_3d_mrope_reset_spatial_ids: true
292
+ unified_3d_mrope_temporal_modality_margin: 15000
293
+ vision_in_proj:
294
+ in_dim: 192
295
+ out_dim: 2048
296
+ type: LinearProjector
297
+ vision_latent_dim: 48
298
+ vision_out_proj:
299
+ in_dim: 2048
300
+ out_dim: 192
301
+ type: LinearProjector
302
+ vision_vae:
303
+ encode_exact_durations:
304
+ - 17
305
+ pretrained_name_or_path: ./checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth
306
+ type: Cosmos3Wan22VAE
307
+ vlm_backbone:
308
+ include_visual: false
309
+ skip_init_weights: true
310
+ type: Cosmos3MoTBackbone
311
+ vlm_config:
312
+ attention_bias: false
313
+ bos_token_id: 1
314
+ enable_mrope: true
315
+ eos_token_id: 11
316
+ head_dim: 128
317
+ hidden_size: 2048
318
+ intermediate_size: 9216
319
+ layer_norm_epsilon: 1.0e-05
320
+ max_position_embeddings: 131072
321
+ mlp_bias: false
322
+ mlp_hidden_act: relu2
323
+ model_type: nemotron_3_dense_vl_text
324
+ mrope_section:
325
+ - 24
326
+ - 20
327
+ - 20
328
+ num_attention_heads: 16
329
+ num_hidden_layers: 28
330
+ num_key_value_heads: 8
331
+ pad_token_id: 11
332
+ rope_theta: 100000000.0
333
+ tie_word_embeddings: false
334
+ use_und_k_norm_for_gen: true
335
+ vocab_size: 131072
336
+ runner:
337
+ change_key_name: false
338
+ collator:
339
+ list_keys:
340
+ - sequence_plan
341
+ meta_keys:
342
+ - task_description
343
+ - stats
344
+ - info
345
+ - timestamp
346
+ pad_id: 11
347
+ sequence_keys:
348
+ - text_token_ids
349
+ tensor_keys:
350
+ - images
351
+ - actions
352
+ - embodiment_ids
353
+ - raw_action_dim
354
+ - conditioning_fps
355
+ - action_fps
356
+ type: Cosmos3Collator
357
+ enable_gradient_checkpointing: true
358
+ enable_mixed_precision_training: true
359
+ grad_accumulation_steps: 16
360
+ lr_scheduler:
361
+ cycle_length: 16000
362
+ type: linear-warmup+linear-decay
363
+ warmup_steps: 500
364
+ max_epochs: null
365
+ max_grad_norm: 1.0
366
+ max_keep_ckpts: 2
367
+ max_steps: 2000
368
+ metric:
369
+ active_trackers:
370
+ - jsonl
371
+ - wandb
372
+ grad_accumulation_steps: 16
373
+ run_dir: work_dirs
374
+ type: VLAMetric
375
+ window_size: 1
376
+ mixed_precision_dtype: bf16
377
+ optimizer:
378
+ betas:
379
+ - 0.9
380
+ - 0.99
381
+ eps: 1.0e-08
382
+ exclude_1d_from_weight_decay: false
383
+ fused: true
384
+ lr: 5.0e-05
385
+ paramwise_learning_rate:
386
+ action_in_proj.: 0.00025
387
+ action_modality_embed: 0.00025
388
+ action_out_proj.: 0.00025
389
+ type: AdamW
390
+ weight_decay: 0.05
391
+ sampler: null
392
+ save_iter_interval: 500
393
+ sharding_strategy: full-shard
394
+ tokenizer:
395
+ model_max_length: 4096
396
+ model_path: ./checkpoints/Cosmos3-Edge
397
+ padding_side: right
398
+ trust_remote_code: true
399
+ type: PretrainedTokenizer
400
+ type: FSDPTrainRunner
401
+ seed: 7
402
+ train_dataloader:
403
+ dataset:
404
+ datasets:
405
+ action_key: action
406
+ action_window_size: 16
407
+ data_root_path: /mnt/data/cpfs/mnt/data/yanis/FastWAM/data/libero_mujoco3.3.2/libero_spatial_no_noops_lerobot
408
+ frame_window_size: 17
409
+ require_full_window: true
410
+ statistic_name: libero_spatial_no_noops
411
+ transforms:
412
+ - embodiment_id: 5
413
+ name_mappings:
414
+ actions:
415
+ - actions
416
+ observation.state:
417
+ - states
418
+ parquet_keys:
419
+ - observation.state
420
+ - timestamp
421
+ - actions
422
+ - info
423
+ - stats
424
+ type: ProcessParquetInputs
425
+ video_keys:
426
+ - observation.images.image
427
+ - observation.images.wrist_image
428
+ - type: LiberoFramewiseActionToRot6D
429
+ - action_metadata:
430
+ append_viewpoint: false
431
+ conditioning_fps: 20.0
432
+ frame_window_size: 17
433
+ video_height: 256
434
+ video_width: 512
435
+ cfg_dropout_rate: 0.1
436
+ max_len: 512
437
+ tokenizer:
438
+ model_max_length: 4096
439
+ model_path: ./checkpoints/Cosmos3-Edge
440
+ padding_side: right
441
+ trust_remote_code: true
442
+ type: PretrainedTokenizer
443
+ type: ProcessCosmos3Prompt
444
+ - height: 256
445
+ type: ResizeImages
446
+ width: 256
447
+ - type: SimpleNormalizeImages
448
+ - action_dim: 64
449
+ action_key: action
450
+ action_norm_type: quantile
451
+ state_dim: 64
452
+ state_key: proprio
453
+ state_norm_type: none
454
+ type: NormalizeStatesAndActions
455
+ - conditioning_fps: 20.0
456
+ frame_window_size: 17
457
+ mode: wam
458
+ prepend_state_to_action: false
459
+ raw_action_dim: 10
460
+ type: BuildCosmos3Sequence
461
+ - frame_window_size: 17
462
+ num_views: 2
463
+ tile_direction: horizontal
464
+ type: PrepareVideo
465
+ type: ParquetDataset
466
+ use_delta: false
467
+ window_start_idx: 0
468
+ name_mappings:
469
+ action:
470
+ - action
471
+ observation.state:
472
+ - proprio
473
+ statistic_keys:
474
+ - observation.state
475
+ - timestamp
476
+ - action
477
+ statistic_name: libero_spatial_no_noops
478
+ statistics_overrides:
479
+ libero_spatial_no_noops:
480
+ action:
481
+ max:
482
+ - 0.9375
483
+ - 0.9375
484
+ - 0.9375
485
+ - 1.0
486
+ - 0.368853
487
+ - 0.341214
488
+ - 0.356395
489
+ - 1.0
490
+ - 0.348251
491
+ - 1.0
492
+ mean:
493
+ - 0.050704
494
+ - 0.097407
495
+ - -0.094833
496
+ - 0.994873
497
+ - -0.004579
498
+ - -0.004288
499
+ - 0.004389
500
+ - 0.996104
501
+ - 0.001109
502
+ - 0.476725
503
+ min:
504
+ - -0.9375
505
+ - -0.9375
506
+ - -0.9375
507
+ - 0.902028
508
+ - -0.356085
509
+ - -0.367416
510
+ - -0.370434
511
+ - 0.921907
512
+ - -0.255
513
+ - 0.0
514
+ q01:
515
+ - -0.723214
516
+ - -0.808929
517
+ - -0.9375
518
+ - 0.934955
519
+ - -0.223431
520
+ - -0.189878
521
+ - -0.334735
522
+ - 0.938516
523
+ - -0.107736
524
+ - 0.0
525
+ q99:
526
+ - 0.9375
527
+ - 0.870536
528
+ - 0.9375
529
+ - 1.0
530
+ - 0.331
531
+ - 0.163153
532
+ - 0.226216
533
+ - 1.0
534
+ - 0.127158
535
+ - 1.0
536
+ std:
537
+ - 0.333621
538
+ - 0.387175
539
+ - 0.45714
540
+ - 0.010807
541
+ - 0.077802
542
+ - 0.063386
543
+ - 0.078571
544
+ - 0.009994
545
+ - 0.038504
546
+ - 0.49946
547
+ type: DistributedRepeatingDataset
548
+ per_device_batch_size: 16
549
+ per_device_num_workers: 4
cosmos3edge_libero_spatial_full_finetune_bs16/cosmos3edge_libero_spatial_full_finetune_2026_08_04_01_21_37.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
cosmos3edge_libero_spatial_full_finetune_bs16/dataset_statistics.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "libero_spatial_no_noops": {
3
+ "proprio": {
4
+ "mean": [
5
+ -0.02451290873970331,
6
+ 0.10615150130733945,
7
+ 1.0578400251960747,
8
+ 3.061689349795143,
9
+ -0.1005965057813455,
10
+ 0.08257375486551881,
11
+ 0.019912415870854235,
12
+ -0.020113726667093317
13
+ ],
14
+ "std": [
15
+ 0.11053132910461624,
16
+ 0.13747598538616676,
17
+ 0.1043268470449716,
18
+ 0.1059396829997249,
19
+ 0.41110779566445044,
20
+ 0.21523187896802917,
21
+ 0.017277071353936354,
22
+ 0.01711604738631362
23
+ ],
24
+ "min": [
25
+ -0.31721994280815125,
26
+ -0.2926647663116455,
27
+ 0.9094576835632324,
28
+ 2.496100664138794,
29
+ -1.798353910446167,
30
+ -0.7207611203193665,
31
+ -7.665253360755742e-05,
32
+ -0.041329532861709595
33
+ ],
34
+ "max": [
35
+ 0.1759040206670761,
36
+ 0.3904264271259308,
37
+ 1.3290090560913086,
38
+ 3.4572718143463135,
39
+ 1.2369194030761719,
40
+ 1.042615294456482,
41
+ 0.040996309369802475,
42
+ 0.0005872611072845757
43
+ ],
44
+ "q01": null,
45
+ "q99": null
46
+ },
47
+ "timestamp": {
48
+ "mean": [
49
+ 3.129841815551673
50
+ ],
51
+ "std": [
52
+ 1.9217150401170382
53
+ ],
54
+ "min": [
55
+ 0.0
56
+ ],
57
+ "max": [
58
+ 9.6
59
+ ],
60
+ "q01": null,
61
+ "q99": null
62
+ },
63
+ "action": {
64
+ "mean": [
65
+ 0.050704,
66
+ 0.097407,
67
+ -0.094833,
68
+ 0.994873,
69
+ -0.004579,
70
+ -0.004288,
71
+ 0.004389,
72
+ 0.996104,
73
+ 0.001109,
74
+ 0.476725
75
+ ],
76
+ "std": [
77
+ 0.333621,
78
+ 0.387175,
79
+ 0.45714,
80
+ 0.010807,
81
+ 0.077802,
82
+ 0.063386,
83
+ 0.078571,
84
+ 0.009994,
85
+ 0.038504,
86
+ 0.49946
87
+ ],
88
+ "min": [
89
+ -0.9375,
90
+ -0.9375,
91
+ -0.9375,
92
+ 0.902028,
93
+ -0.356085,
94
+ -0.367416,
95
+ -0.370434,
96
+ 0.921907,
97
+ -0.255,
98
+ 0.0
99
+ ],
100
+ "max": [
101
+ 0.9375,
102
+ 0.9375,
103
+ 0.9375,
104
+ 1.0,
105
+ 0.368853,
106
+ 0.341214,
107
+ 0.356395,
108
+ 1.0,
109
+ 0.348251,
110
+ 1.0
111
+ ],
112
+ "q01": [
113
+ -0.723214,
114
+ -0.808929,
115
+ -0.9375,
116
+ 0.934955,
117
+ -0.223431,
118
+ -0.189878,
119
+ -0.334735,
120
+ 0.938516,
121
+ -0.107736,
122
+ 0.0
123
+ ],
124
+ "q99": [
125
+ 0.9375,
126
+ 0.870536,
127
+ 0.9375,
128
+ 1.0,
129
+ 0.331,
130
+ 0.163153,
131
+ 0.226216,
132
+ 1.0,
133
+ 0.127158,
134
+ 1.0
135
+ ]
136
+ }
137
+ }
138
+ }
cosmos3edge_libero_spatial_full_finetune_bs16/run-metrics.jsonl ADDED
@@ -0,0 +1 @@
 
 
1
+ {"hparams": "{'eval': {'dataset': {'extra_tensor_keys': ['conditioning_fps', 'prepend_state_to_action'], 'img_buffer_len': 1, 'transforms': [{'embodiment_id': 5, 'img_keys': ['agentview_image', 'robot0_eye_in_hand_image'], 'type': 'ProcessLiberoEvalInputs'}, {'conditioning_fps': 20.0, 'prepend_state_to_action': False, 'type': 'SetCosmos3ActionMetadata'}, {'image_resize_strategy': 'resize-naive', 'input_sizes': [[3, 256, 256], [3, 256, 256]], 'means': [[127.5, 127.5, 127.5], [127.5, 127.5, 127.5]], 'stds': [[127.5, 127.5, 127.5], [127.5, 127.5, 127.5]], 'type': 'TransformImage'}, {'action_metadata': {'append_viewpoint': False, 'conditioning_fps': 20.0, 'frame_window_size': 17, 'video_height': 256, 'video_width': 512}, 'cfg_dropout_rate': 0.0, 'max_len': 512, 'output_attention_mask_key': 'lang_masks', 'output_key': 'lang_tokens', 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'ProcessCosmos3Prompt'}, {'gripper_key': 'robot0_gripper_qpos', 'norm_type': 'mean_std', 'out_key': 'states', 'pos_key': 'robot0_eef_pos', 'quat_key': 'robot0_eef_quat', 'state_dim': 64, 'type': 'LiberoProprioFromInputs'}, {'frame_window_size': 1, 'num_views': 2, 'tile_direction': 'horizontal', 'type': 'PrepareVideo'}], 'type': 'LiberoParquetEvalDataset'}, 'denormalize_action': {'action_dim': 10, 'norm_type': 'quantile_rot', 'type': 'DenormalizeLiberoFramewiseRot6DAction'}, 'enable_mixed_precision_training': True, 'eval_chunk_size': 16, 'inference_seed': 7, 'mixed_precision_dtype': 'bf16', 'model_family': 'cosmos3', 'norm_stats_key': 'libero_spatial_no_noops', 'num_inference_steps': 30, 'num_steps_wait': 10, 'num_trials_per_task': 50, 'resize_size': 256, 'seed': 7, 'task_ids': None, 'task_suite_name': 'libero_spatial', 'type': 'LiberoEvalRunner'}, 'inference_model': {'action_horizon': 16, 'action_in_proj': {'input_size': 64, 'num_domains': 32, 'output_size': 2048, 'type': 'DomainAwareLinear'}, 'action_out_proj': {'input_size': 2048, 'num_domains': 32, 'output_size': 64, 'type': 'DomainAwareLinear'}, 'base_fps': 24.0, 'enable_fps_modulation': True, 'enable_vision_loss': True, 'freeze_non_moe_vlm_backbone': True, 'freeze_vlm_backbone': False, 'latent_patch_size': 2, 'max_action_dim': 64, 'name_mapping': {'.self_attn.k_norm_moe_gen.': '.self_attn.norm_added_k.', '.self_attn.k_proj.': '.self_attn.to_k.', '.self_attn.k_proj_moe_gen.': '.self_attn.add_k_proj.', '.self_attn.o_proj.': '.self_attn.to_out.', '.self_attn.o_proj_moe_gen.': '.self_attn.to_add_out.', '.self_attn.q_norm_moe_gen.': '.self_attn.norm_added_q.', '.self_attn.q_proj.': '.self_attn.to_q.', '.self_attn.q_proj_moe_gen.': '.self_attn.add_q_proj.', '.self_attn.v_proj.': '.self_attn.to_v.', '.self_attn.v_proj_moe_gen.': '.self_attn.add_v_proj.', 'action_in_proj.': 'action_proj_in.', 'action_modality_embed': 'action_modality_embed', 'action_out_proj.': 'action_proj_out.', 'time_embedder.mlp.0.': 'time_embedder.linear_1.', 'time_embedder.mlp.2.': 'time_embedder.linear_2.', 'vision_in_proj.projector.': 'proj_in.', 'vision_out_proj.projector.': 'proj_out.', 'vlm_backbone.lm_head.weight': 'lm_head.weight', 'vlm_backbone.model.language_model.embed_tokens.weight': 'embed_tokens.weight', 'vlm_backbone.model.language_model.layers.': 'layers.', 'vlm_backbone.model.language_model.norm.weight': 'norm.weight', 'vlm_backbone.model.language_model.norm_moe_gen.weight': 'norm_moe_gen.weight'}, 'num_embodiment_domains': 32, 'ori_action_dim': 10, 'packed_attention_backend': 'flash2', 'position_embedding_type': 'unified_3d_mrope', 'pretrained_name_or_path': './checkpoints/Cosmos3-Edge/transformer', 'reinitialize_action_policy': True, 'rectified_flow_inference_config': {'num_steps': 30, 'num_train_timesteps': 1000, 'scheduler_type': 'unipc', 'shift': 10.0, 'use_dynamic_shifting': False, 'use_karras_sigmas': False}, 'rectified_flow_training_config': {'action_loss_weight': 10.0, 'independent_action_schedule': False, 'normalize_loss_by_active': False, 'shift': {'256': 3, '480': 5, '720': 10}, 'shift_action': None, 'train_time_action_distribution': 'logitnormal', 'train_time_image_distribution': 'logitnormal', 'train_time_video_distribution': 'waver', 'train_time_weight': 'uniform', 'use_discrete_rf': False, 'use_dynamic_shift': False, 'use_high_sigma_strategy': False, 'use_high_sigma_strategy_action': False, 'vision_loss_weight': 10.0}, 'special_tokens': {'end_of_generation': 21, 'eos_token_id': 11, 'start_of_generation': 20}, 'strict_mapping': True, 'timestep_scale': 0.001, 'type': 'Cosmos3FlowMatching', 'unified_3d_mrope_reset_spatial_ids': True, 'unified_3d_mrope_temporal_modality_margin': 15000, 'vision_in_proj': {'in_dim': 192, 'out_dim': 2048, 'type': 'LinearProjector'}, 'vision_latent_dim': 48, 'vision_out_proj': {'in_dim': 2048, 'out_dim': 192, 'type': 'LinearProjector'}, 'vision_vae': {'encode_exact_durations': [17], 'pretrained_name_or_path': './checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth', 'type': 'Cosmos3Wan22VAE'}, 'vlm_backbone': {'include_visual': False, 'skip_init_weights': True, 'type': 'Cosmos3MoTBackbone', 'vlm_config': {'attention_bias': False, 'bos_token_id': 1, 'enable_mrope': True, 'eos_token_id': 11, 'head_dim': 128, 'hidden_size': 2048, 'intermediate_size': 9216, 'layer_norm_epsilon': 1e-05, 'max_position_embeddings': 131072, 'mlp_bias': False, 'mlp_hidden_act': 'relu2', 'model_type': 'nemotron_3_dense_vl_text', 'mrope_section': [24, 20, 20], 'num_attention_heads': 16, 'num_hidden_layers': 28, 'num_key_value_heads': 8, 'pad_token_id': 11, 'rope_theta': 100000000.0, 'tie_word_embeddings': False, 'use_und_k_norm_for_gen': True, 'vocab_size': 131072}}}, 'model': {'action_horizon': 16, 'action_in_proj': {'input_size': 64, 'num_domains': 32, 'output_size': 2048, 'type': 'DomainAwareLinear'}, 'action_out_proj': {'input_size': 2048, 'num_domains': 32, 'output_size': 64, 'type': 'DomainAwareLinear'}, 'base_fps': 24.0, 'enable_fps_modulation': True, 'enable_vision_loss': True, 'freeze_non_moe_vlm_backbone': True, 'freeze_vlm_backbone': False, 'latent_patch_size': 2, 'max_action_dim': 64, 'name_mapping': {'.self_attn.k_norm_moe_gen.': '.self_attn.norm_added_k.', '.self_attn.k_proj.': '.self_attn.to_k.', '.self_attn.k_proj_moe_gen.': '.self_attn.add_k_proj.', '.self_attn.o_proj.': '.self_attn.to_out.', '.self_attn.o_proj_moe_gen.': '.self_attn.to_add_out.', '.self_attn.q_norm_moe_gen.': '.self_attn.norm_added_q.', '.self_attn.q_proj.': '.self_attn.to_q.', '.self_attn.q_proj_moe_gen.': '.self_attn.add_q_proj.', '.self_attn.v_proj.': '.self_attn.to_v.', '.self_attn.v_proj_moe_gen.': '.self_attn.add_v_proj.', 'action_in_proj.': 'action_proj_in.', 'action_modality_embed': 'action_modality_embed', 'action_out_proj.': 'action_proj_out.', 'time_embedder.mlp.0.': 'time_embedder.linear_1.', 'time_embedder.mlp.2.': 'time_embedder.linear_2.', 'vision_in_proj.projector.': 'proj_in.', 'vision_out_proj.projector.': 'proj_out.', 'vlm_backbone.lm_head.weight': 'lm_head.weight', 'vlm_backbone.model.language_model.embed_tokens.weight': 'embed_tokens.weight', 'vlm_backbone.model.language_model.layers.': 'layers.', 'vlm_backbone.model.language_model.norm.weight': 'norm.weight', 'vlm_backbone.model.language_model.norm_moe_gen.weight': 'norm_moe_gen.weight'}, 'num_embodiment_domains': 32, 'ori_action_dim': 10, 'packed_attention_backend': 'flash2', 'position_embedding_type': 'unified_3d_mrope', 'pretrained_name_or_path': './checkpoints/Cosmos3-Edge/transformer', 'reinitialize_action_policy': True, 'rectified_flow_inference_config': {'num_steps': 30, 'num_train_timesteps': 1000, 'scheduler_type': 'unipc', 'shift': 10.0, 'use_dynamic_shifting': False, 'use_karras_sigmas': False}, 'rectified_flow_training_config': {'action_loss_weight': 10.0, 'independent_action_schedule': False, 'normalize_loss_by_active': False, 'shift': {'256': 3, '480': 5, '720': 10}, 'shift_action': None, 'train_time_action_distribution': 'logitnormal', 'train_time_image_distribution': 'logitnormal', 'train_time_video_distribution': 'waver', 'train_time_weight': 'uniform', 'use_discrete_rf': False, 'use_dynamic_shift': False, 'use_high_sigma_strategy': False, 'use_high_sigma_strategy_action': False, 'vision_loss_weight': 10.0}, 'special_tokens': {'end_of_generation': 21, 'eos_token_id': 11, 'start_of_generation': 20}, 'strict_mapping': True, 'timestep_scale': 0.001, 'type': 'Cosmos3FlowMatching', 'unified_3d_mrope_reset_spatial_ids': True, 'unified_3d_mrope_temporal_modality_margin': 15000, 'vision_in_proj': {'in_dim': 192, 'out_dim': 2048, 'type': 'LinearProjector'}, 'vision_latent_dim': 48, 'vision_out_proj': {'in_dim': 2048, 'out_dim': 192, 'type': 'LinearProjector'}, 'vision_vae': {'encode_exact_durations': [17], 'pretrained_name_or_path': './checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth', 'type': 'Cosmos3Wan22VAE'}, 'vlm_backbone': {'include_visual': False, 'skip_init_weights': True, 'type': 'Cosmos3MoTBackbone', 'vlm_config': {'attention_bias': False, 'bos_token_id': 1, 'enable_mrope': True, 'eos_token_id': 11, 'head_dim': 128, 'hidden_size': 2048, 'intermediate_size': 9216, 'layer_norm_epsilon': 1e-05, 'max_position_embeddings': 131072, 'mlp_bias': False, 'mlp_hidden_act': 'relu2', 'model_type': 'nemotron_3_dense_vl_text', 'mrope_section': [24, 20, 20], 'num_attention_heads': 16, 'num_hidden_layers': 28, 'num_key_value_heads': 8, 'pad_token_id': 11, 'rope_theta': 100000000.0, 'tie_word_embeddings': False, 'use_und_k_norm_for_gen': True, 'vocab_size': 131072}}}, 'runner': {'change_key_name': False, 'collator': {'list_keys': ['sequence_plan'], 'meta_keys': ['task_description', 'stats', 'info', 'timestamp'], 'pad_id': 11, 'sequence_keys': ['text_token_ids'], 'tensor_keys': ['images', 'actions', 'embodiment_ids', 'raw_action_dim', 'conditioning_fps', 'action_fps'], 'type': 'Cosmos3Collator'}, 'enable_gradient_checkpointing': True, 'enable_mixed_precision_training': True, 'grad_accumulation_steps': 16, 'lr_scheduler': {'cycle_length': 16000, 'type': 'linear-warmup+linear-decay', 'warmup_steps': 500}, 'max_epochs': None, 'max_grad_norm': 1.0, 'max_keep_ckpts': 2, 'max_steps': 2000, 'metric': {'active_trackers': ('jsonl', 'wandb'), 'grad_accumulation_steps': 16, 'run_dir': '/mnt/data/cpfs/users/leo/wk_dir/cosmos3/libero_spatial_edge_pr51_latest_bs16', 'type': 'VLAMetric', 'window_size': 1}, 'mixed_precision_dtype': 'bf16', 'optimizer': {'betas': (0.9, 0.99), 'eps': 1e-08, 'exclude_1d_from_weight_decay': False, 'fused': True, 'lr': 5e-05, 'paramwise_learning_rate': {'action_in_proj.': 0.00025, 'action_modality_embed': 0.00025, 'action_out_proj.': 0.00025}, 'type': 'AdamW', 'weight_decay': 0.05}, 'sampler': None, 'save_iter_interval': 500, 'sharding_strategy': 'full-shard', 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'FSDPTrainRunner', 'cfg': Config (path: configs/cosmos3/cosmos3edge_libero_spatial_full_finetune.py): {'eval': {'dataset': {'extra_tensor_keys': ['conditioning_fps', 'prepend_state_to_action'], 'img_buffer_len': 1, 'transforms': [{'embodiment_id': 5, 'img_keys': ['agentview_image', 'robot0_eye_in_hand_image'], 'type': 'ProcessLiberoEvalInputs'}, {'conditioning_fps': 20.0, 'prepend_state_to_action': False, 'type': 'SetCosmos3ActionMetadata'}, {'image_resize_strategy': 'resize-naive', 'input_sizes': [[3, 256, 256], [3, 256, 256]], 'means': [[127.5, 127.5, 127.5], [127.5, 127.5, 127.5]], 'stds': [[127.5, 127.5, 127.5], [127.5, 127.5, 127.5]], 'type': 'TransformImage'}, {'action_metadata': {'append_viewpoint': False, 'conditioning_fps': 20.0, 'frame_window_size': 17, 'video_height': 256, 'video_width': 512}, 'cfg_dropout_rate': 0.0, 'max_len': 512, 'output_attention_mask_key': 'lang_masks', 'output_key': 'lang_tokens', 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'ProcessCosmos3Prompt'}, {'gripper_key': 'robot0_gripper_qpos', 'norm_type': 'mean_std', 'out_key': 'states', 'pos_key': 'robot0_eef_pos', 'quat_key': 'robot0_eef_quat', 'state_dim': 64, 'type': 'LiberoProprioFromInputs'}, {'frame_window_size': 1, 'num_views': 2, 'tile_direction': 'horizontal', 'type': 'PrepareVideo'}], 'type': 'LiberoParquetEvalDataset'}, 'denormalize_action': {'action_dim': 10, 'norm_type': 'quantile_rot', 'type': 'DenormalizeLiberoFramewiseRot6DAction'}, 'enable_mixed_precision_training': True, 'eval_chunk_size': 16, 'inference_seed': 7, 'mixed_precision_dtype': 'bf16', 'model_family': 'cosmos3', 'norm_stats_key': 'libero_spatial_no_noops', 'num_inference_steps': 30, 'num_steps_wait': 10, 'num_trials_per_task': 50, 'resize_size': 256, 'seed': 7, 'task_ids': None, 'task_suite_name': 'libero_spatial', 'type': 'LiberoEvalRunner'}, 'inference_model': {'action_horizon': 16, 'action_in_proj': {'input_size': 64, 'num_domains': 32, 'output_size': 2048, 'type': 'DomainAwareLinear'}, 'action_out_proj': {'input_size': 2048, 'num_domains': 32, 'output_size': 64, 'type': 'DomainAwareLinear'}, 'base_fps': 24.0, 'enable_fps_modulation': True, 'enable_vision_loss': True, 'freeze_non_moe_vlm_backbone': True, 'freeze_vlm_backbone': False, 'latent_patch_size': 2, 'max_action_dim': 64, 'name_mapping': {'.self_attn.k_norm_moe_gen.': '.self_attn.norm_added_k.', '.self_attn.k_proj.': '.self_attn.to_k.', '.self_attn.k_proj_moe_gen.': '.self_attn.add_k_proj.', '.self_attn.o_proj.': '.self_attn.to_out.', '.self_attn.o_proj_moe_gen.': '.self_attn.to_add_out.', '.self_attn.q_norm_moe_gen.': '.self_attn.norm_added_q.', '.self_attn.q_proj.': '.self_attn.to_q.', '.self_attn.q_proj_moe_gen.': '.self_attn.add_q_proj.', '.self_attn.v_proj.': '.self_attn.to_v.', '.self_attn.v_proj_moe_gen.': '.self_attn.add_v_proj.', 'action_in_proj.': 'action_proj_in.', 'action_modality_embed': 'action_modality_embed', 'action_out_proj.': 'action_proj_out.', 'time_embedder.mlp.0.': 'time_embedder.linear_1.', 'time_embedder.mlp.2.': 'time_embedder.linear_2.', 'vision_in_proj.projector.': 'proj_in.', 'vision_out_proj.projector.': 'proj_out.', 'vlm_backbone.lm_head.weight': 'lm_head.weight', 'vlm_backbone.model.language_model.embed_tokens.weight': 'embed_tokens.weight', 'vlm_backbone.model.language_model.layers.': 'layers.', 'vlm_backbone.model.language_model.norm.weight': 'norm.weight', 'vlm_backbone.model.language_model.norm_moe_gen.weight': 'norm_moe_gen.weight'}, 'num_embodiment_domains': 32, 'ori_action_dim': 10, 'packed_attention_backend': 'flash2', 'position_embedding_type': 'unified_3d_mrope', 'pretrained_name_or_path': './checkpoints/Cosmos3-Edge/transformer', 'reinitialize_action_policy': True, 'rectified_flow_inference_config': {'num_steps': 30, 'num_train_timesteps': 1000, 'scheduler_type': 'unipc', 'shift': 10.0, 'use_dynamic_shifting': False, 'use_karras_sigmas': False}, 'rectified_flow_training_config': {'action_loss_weight': 10.0, 'independent_action_schedule': False, 'normalize_loss_by_active': False, 'shift': {'256': 3, '480': 5, '720': 10}, 'shift_action': None, 'train_time_action_distribution': 'logitnormal', 'train_time_image_distribution': 'logitnormal', 'train_time_video_distribution': 'waver', 'train_time_weight': 'uniform', 'use_discrete_rf': False, 'use_dynamic_shift': False, 'use_high_sigma_strategy': False, 'use_high_sigma_strategy_action': False, 'vision_loss_weight': 10.0}, 'special_tokens': {'end_of_generation': 21, 'eos_token_id': 11, 'start_of_generation': 20}, 'strict_mapping': True, 'timestep_scale': 0.001, 'type': 'Cosmos3FlowMatching', 'unified_3d_mrope_reset_spatial_ids': True, 'unified_3d_mrope_temporal_modality_margin': 15000, 'vision_in_proj': {'in_dim': 192, 'out_dim': 2048, 'type': 'LinearProjector'}, 'vision_latent_dim': 48, 'vision_out_proj': {'in_dim': 2048, 'out_dim': 192, 'type': 'LinearProjector'}, 'vision_vae': {'encode_exact_durations': [17], 'pretrained_name_or_path': './checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth', 'type': 'Cosmos3Wan22VAE'}, 'vlm_backbone': {'include_visual': False, 'skip_init_weights': True, 'type': 'Cosmos3MoTBackbone', 'vlm_config': {'attention_bias': False, 'bos_token_id': 1, 'enable_mrope': True, 'eos_token_id': 11, 'head_dim': 128, 'hidden_size': 2048, 'intermediate_size': 9216, 'layer_norm_epsilon': 1e-05, 'max_position_embeddings': 131072, 'mlp_bias': False, 'mlp_hidden_act': 'relu2', 'model_type': 'nemotron_3_dense_vl_text', 'mrope_section': [24, 20, 20], 'num_attention_heads': 16, 'num_hidden_layers': 28, 'num_key_value_heads': 8, 'pad_token_id': 11, 'rope_theta': 100000000.0, 'tie_word_embeddings': False, 'use_und_k_norm_for_gen': True, 'vocab_size': 131072}}}, 'model': {'action_horizon': 16, 'action_in_proj': {'input_size': 64, 'num_domains': 32, 'output_size': 2048, 'type': 'DomainAwareLinear'}, 'action_out_proj': {'input_size': 2048, 'num_domains': 32, 'output_size': 64, 'type': 'DomainAwareLinear'}, 'base_fps': 24.0, 'enable_fps_modulation': True, 'enable_vision_loss': True, 'freeze_non_moe_vlm_backbone': True, 'freeze_vlm_backbone': False, 'latent_patch_size': 2, 'max_action_dim': 64, 'name_mapping': {'.self_attn.k_norm_moe_gen.': '.self_attn.norm_added_k.', '.self_attn.k_proj.': '.self_attn.to_k.', '.self_attn.k_proj_moe_gen.': '.self_attn.add_k_proj.', '.self_attn.o_proj.': '.self_attn.to_out.', '.self_attn.o_proj_moe_gen.': '.self_attn.to_add_out.', '.self_attn.q_norm_moe_gen.': '.self_attn.norm_added_q.', '.self_attn.q_proj.': '.self_attn.to_q.', '.self_attn.q_proj_moe_gen.': '.self_attn.add_q_proj.', '.self_attn.v_proj.': '.self_attn.to_v.', '.self_attn.v_proj_moe_gen.': '.self_attn.add_v_proj.', 'action_in_proj.': 'action_proj_in.', 'action_modality_embed': 'action_modality_embed', 'action_out_proj.': 'action_proj_out.', 'time_embedder.mlp.0.': 'time_embedder.linear_1.', 'time_embedder.mlp.2.': 'time_embedder.linear_2.', 'vision_in_proj.projector.': 'proj_in.', 'vision_out_proj.projector.': 'proj_out.', 'vlm_backbone.lm_head.weight': 'lm_head.weight', 'vlm_backbone.model.language_model.embed_tokens.weight': 'embed_tokens.weight', 'vlm_backbone.model.language_model.layers.': 'layers.', 'vlm_backbone.model.language_model.norm.weight': 'norm.weight', 'vlm_backbone.model.language_model.norm_moe_gen.weight': 'norm_moe_gen.weight'}, 'num_embodiment_domains': 32, 'ori_action_dim': 10, 'packed_attention_backend': 'flash2', 'position_embedding_type': 'unified_3d_mrope', 'pretrained_name_or_path': './checkpoints/Cosmos3-Edge/transformer', 'reinitialize_action_policy': True, 'rectified_flow_inference_config': {'num_steps': 30, 'num_train_timesteps': 1000, 'scheduler_type': 'unipc', 'shift': 10.0, 'use_dynamic_shifting': False, 'use_karras_sigmas': False}, 'rectified_flow_training_config': {'action_loss_weight': 10.0, 'independent_action_schedule': False, 'normalize_loss_by_active': False, 'shift': {'256': 3, '480': 5, '720': 10}, 'shift_action': None, 'train_time_action_distribution': 'logitnormal', 'train_time_image_distribution': 'logitnormal', 'train_time_video_distribution': 'waver', 'train_time_weight': 'uniform', 'use_discrete_rf': False, 'use_dynamic_shift': False, 'use_high_sigma_strategy': False, 'use_high_sigma_strategy_action': False, 'vision_loss_weight': 10.0}, 'special_tokens': {'end_of_generation': 21, 'eos_token_id': 11, 'start_of_generation': 20}, 'strict_mapping': True, 'timestep_scale': 0.001, 'type': 'Cosmos3FlowMatching', 'unified_3d_mrope_reset_spatial_ids': True, 'unified_3d_mrope_temporal_modality_margin': 15000, 'vision_in_proj': {'in_dim': 192, 'out_dim': 2048, 'type': 'LinearProjector'}, 'vision_latent_dim': 48, 'vision_out_proj': {'in_dim': 2048, 'out_dim': 192, 'type': 'LinearProjector'}, 'vision_vae': {'encode_exact_durations': [17], 'pretrained_name_or_path': './checkpoints/Wan2.2-TI2V-5B/Wan2.2_VAE.pth', 'type': 'Cosmos3Wan22VAE'}, 'vlm_backbone': {'include_visual': False, 'skip_init_weights': True, 'type': 'Cosmos3MoTBackbone', 'vlm_config': {'attention_bias': False, 'bos_token_id': 1, 'enable_mrope': True, 'eos_token_id': 11, 'head_dim': 128, 'hidden_size': 2048, 'intermediate_size': 9216, 'layer_norm_epsilon': 1e-05, 'max_position_embeddings': 131072, 'mlp_bias': False, 'mlp_hidden_act': 'relu2', 'model_type': 'nemotron_3_dense_vl_text', 'mrope_section': [24, 20, 20], 'num_attention_heads': 16, 'num_hidden_layers': 28, 'num_key_value_heads': 8, 'pad_token_id': 11, 'rope_theta': 100000000.0, 'tie_word_embeddings': False, 'use_und_k_norm_for_gen': True, 'vocab_size': 131072}}}, 'runner': {'change_key_name': False, 'collator': {'list_keys': ['sequence_plan'], 'meta_keys': ['task_description', 'stats', 'info', 'timestamp'], 'pad_id': 11, 'sequence_keys': ['text_token_ids'], 'tensor_keys': ['images', 'actions', 'embodiment_ids', 'raw_action_dim', 'conditioning_fps', 'action_fps'], 'type': 'Cosmos3Collator'}, 'enable_gradient_checkpointing': True, 'enable_mixed_precision_training': True, 'grad_accumulation_steps': 16, 'lr_scheduler': {'cycle_length': 16000, 'type': 'linear-warmup+linear-decay', 'warmup_steps': 500}, 'max_epochs': None, 'max_grad_norm': 1.0, 'max_keep_ckpts': 2, 'max_steps': 2000, 'metric': {'active_trackers': ('jsonl', 'wandb'), 'grad_accumulation_steps': 16, 'run_dir': '/mnt/data/cpfs/users/leo/wk_dir/cosmos3/libero_spatial_edge_pr51_latest_bs16', 'type': 'VLAMetric', 'window_size': 1}, 'mixed_precision_dtype': 'bf16', 'optimizer': {'betas': (0.9, 0.99), 'eps': 1e-08, 'exclude_1d_from_weight_decay': False, 'fused': True, 'lr': 5e-05, 'paramwise_learning_rate': {'action_in_proj.': 0.00025, 'action_modality_embed': 0.00025, 'action_out_proj.': 0.00025}, 'type': 'AdamW', 'weight_decay': 0.05}, 'sampler': None, 'save_iter_interval': 500, 'sharding_strategy': 'full-shard', 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'FSDPTrainRunner', 'cfg': Config (path: configs/cosmos3/cosmos3edge_libero_spatial_full_finetune.py): {...}, 'args': Namespace(config='configs/cosmos3/cosmos3edge_libero_spatial_full_finetune.py', work_dir='/mnt/data/cpfs/users/leo/wk_dir/cosmos3/libero_spatial_edge_pr51_latest_bs16', cfg_options={'train_dataloader.per_device_batch_size': 16, 'runner.grad_accumulation_steps': 16, 'runner.metric.grad_accumulation_steps': 16}, eval_after_train=True, resume_from=None)}, 'seed': 7, 'train_dataloader': {'dataset': {'datasets': {'action_key': 'action', 'action_window_size': 16, 'data_root_path': '/mnt/data/cpfs/mnt/data/yanis/FastWAM/data/libero_mujoco3.3.2/libero_spatial_no_noops_lerobot', 'frame_window_size': 17, 'require_full_window': True, 'statistic_name': 'libero_spatial_no_noops', 'transforms': [{'embodiment_id': 5, 'name_mappings': {'actions': ['actions'], 'observation.state': ['states']}, 'parquet_keys': ['observation.state', 'timestamp', 'actions', 'info', 'stats'], 'type': 'ProcessParquetInputs', 'video_keys': ['observation.images.image', 'observation.images.wrist_image']}, {'type': 'LiberoFramewiseActionToRot6D'}, {'action_metadata': {'append_viewpoint': False, 'conditioning_fps': 20.0, 'frame_window_size': 17, 'video_height': 256, 'video_width': 512}, 'cfg_dropout_rate': 0.1, 'max_len': 512, 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'ProcessCosmos3Prompt'}, {'height': 256, 'type': 'ResizeImages', 'width': 256}, {'type': 'SimpleNormalizeImages'}, {'action_dim': 64, 'action_key': 'action', 'action_norm_type': 'quantile', 'state_norm_type': 'none', 'state_dim': 64, 'state_key': 'proprio', 'type': 'NormalizeStatesAndActions'}, {'conditioning_fps': 20.0, 'frame_window_size': 17, 'mode': 'wam', 'prepend_state_to_action': False, 'raw_action_dim': 10, 'type': 'BuildCosmos3Sequence'}, {'frame_window_size': 17, 'num_views': 2, 'tile_direction': 'horizontal', 'type': 'PrepareVideo'}], 'type': 'ParquetDataset', 'use_delta': False, 'window_start_idx': 0}, 'name_mappings': {'action': ['action'], 'observation.state': ['proprio']}, 'statistic_keys': ['observation.state', 'timestamp', 'action'], 'statistic_name': 'libero_spatial_no_noops', 'statistics_overrides': {'libero_spatial_no_noops': {'action': {'mean': [0.050704, 0.097407, -0.094833, 0.994873, -0.004579, -0.004288, 0.004389, 0.996104, 0.001109, 0.476725], 'std': [0.333621, 0.387175, 0.45714, 0.010807, 0.077802, 0.063386, 0.078571, 0.009994, 0.038504, 0.49946], 'min': [-0.9375, -0.9375, -0.9375, 0.902028, -0.356085, -0.367416, -0.370434, 0.921907, -0.255, 0.0], 'max': [0.9375, 0.9375, 0.9375, 1.0, 0.368853, 0.341214, 0.356395, 1.0, 0.348251, 1.0], 'q01': [-0.723214, -0.808929, -0.9375, 0.934955, -0.223431, -0.189878, -0.334735, 0.938516, -0.107736, 0.0], 'q99': [0.9375, 0.870536, 0.9375, 1.0, 0.331, 0.163153, 0.226216, 1.0, 0.127158, 1.0]}}}, 'type': 'DistributedRepeatingDataset'}, 'per_device_batch_size': 16, 'per_device_num_workers': 4}}, 'args': Namespace(config='configs/cosmos3/cosmos3edge_libero_spatial_full_finetune.py', work_dir='/mnt/data/cpfs/users/leo/wk_dir/cosmos3/libero_spatial_edge_pr51_latest_bs16', cfg_options={'train_dataloader.per_device_batch_size': 16, 'runner.grad_accumulation_steps': 16, 'runner.metric.grad_accumulation_steps': 16}, eval_after_train=True, resume_from=None)}, 'seed': 7, 'train_dataloader': {'dataset': {'datasets': {'action_key': 'action', 'action_window_size': 16, 'data_root_path': '/mnt/data/cpfs/mnt/data/yanis/FastWAM/data/libero_mujoco3.3.2/libero_spatial_no_noops_lerobot', 'frame_window_size': 17, 'require_full_window': True, 'statistic_name': 'libero_spatial_no_noops', 'transforms': [{'embodiment_id': 5, 'name_mappings': {'actions': ['actions'], 'observation.state': ['states']}, 'parquet_keys': ['observation.state', 'timestamp', 'actions', 'info', 'stats'], 'type': 'ProcessParquetInputs', 'video_keys': ['observation.images.image', 'observation.images.wrist_image']}, {'type': 'LiberoFramewiseActionToRot6D'}, {'action_metadata': {'append_viewpoint': False, 'conditioning_fps': 20.0, 'frame_window_size': 17, 'video_height': 256, 'video_width': 512}, 'cfg_dropout_rate': 0.1, 'max_len': 512, 'tokenizer': {'model_max_length': 4096, 'model_path': './checkpoints/Cosmos3-Edge', 'padding_side': 'right', 'trust_remote_code': True, 'type': 'PretrainedTokenizer'}, 'type': 'ProcessCosmos3Prompt'}, {'height': 256, 'type': 'ResizeImages', 'width': 256}, {'type': 'SimpleNormalizeImages'}, {'action_dim': 64, 'action_key': 'action', 'action_norm_type': 'quantile', 'state_norm_type': 'none', 'state_dim': 64, 'state_key': 'proprio', 'type': 'NormalizeStatesAndActions'}, {'conditioning_fps': 20.0, 'frame_window_size': 17, 'mode': 'wam', 'prepend_state_to_action': False, 'raw_action_dim': 10, 'type': 'BuildCosmos3Sequence'}, {'frame_window_size': 17, 'num_views': 2, 'tile_direction': 'horizontal', 'type': 'PrepareVideo'}], 'type': 'ParquetDataset', 'use_delta': False, 'window_start_idx': 0}, 'name_mappings': {'action': ['action'], 'observation.state': ['proprio']}, 'statistic_keys': ['observation.state', 'timestamp', 'action'], 'statistic_name': 'libero_spatial_no_noops', 'statistics_overrides': {'libero_spatial_no_noops': {'action': {'mean': [0.050704, 0.097407, -0.094833, 0.994873, -0.004579, -0.004288, 0.004389, 0.996104, 0.001109, 0.476725], 'std': [0.333621, 0.387175, 0.45714, 0.010807, 0.077802, 0.063386, 0.078571, 0.009994, 0.038504, 0.49946], 'min': [-0.9375, -0.9375, -0.9375, 0.902028, -0.356085, -0.367416, -0.370434, 0.921907, -0.255, 0.0], 'max': [0.9375, 0.9375, 0.9375, 1.0, 0.368853, 0.341214, 0.356395, 1.0, 0.348251, 1.0], 'q01': [-0.723214, -0.808929, -0.9375, 0.934955, -0.223431, -0.189878, -0.334735, 0.938516, -0.107736, 0.0], 'q99': [0.9375, 0.870536, 0.9375, 1.0, 0.331, 0.163153, 0.226216, 1.0, 0.127158, 1.0]}}}, 'type': 'DistributedRepeatingDataset'}, 'per_device_batch_size': 16, 'per_device_num_workers': 4}}", "run_id": "cosmos3edge_libero_spatial_full_finetune_2026_08_04_01_21_37"}
cosmos3edge_libero_spatial_full_finetune_bs16/tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ {% macro render_extra_keys(json_dict, handled_keys) %}
3
+ {%- if json_dict is mapping %}
4
+ {%- for json_key in json_dict if json_key not in handled_keys %}
5
+ {%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
6
+ {{- '
7
+ <' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
8
+ {%- else %}
9
+ {{-'
10
+ <' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
11
+ {%- endif %}
12
+ {%- endfor %}
13
+ {%- endif %}
14
+ {% endmacro %}
15
+ {%- set enable_thinking = enable_thinking if enable_thinking is defined else True %}
16
+ {%- set truncate_history_thinking = truncate_history_thinking if truncate_history_thinking is defined else True %}
17
+
18
+ {%- set ns = namespace(last_user_idx = -1) %}
19
+ {%- set loop_messages = messages %}
20
+ {%- for m in loop_messages %}
21
+ {%- if m["role"] == "user" %}
22
+ {%- set ns.last_user_idx = loop.index0 %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+
26
+ {%- if messages[0]["role"] == "system" %}
27
+ {%- if messages[0]["content"] is string %}
28
+ {%- set system_message = messages[0]["content"] %}
29
+ {%- else %}
30
+ {%- set ns = namespace(system_text="") %}
31
+ {%- for part in messages[0]["content"] %}
32
+ {%- if 'text' in part %}
33
+ {%- set ns.system_text = ns.system_text + part.text %}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- set system_message = ns.system_text %}
37
+ {%- endif %}
38
+
39
+ {%- set loop_messages = messages[1:] %}
40
+ {%- else %}
41
+ {%- set system_message = "" %}
42
+ {%- set loop_messages = messages %}
43
+ {%- endif %}
44
+ {%- if not tools is defined %}
45
+ {%- set tools = [] %}
46
+ {%- endif %}
47
+ {# Recompute last_user_idx relative to loop_messages after handling system #}
48
+ {%- set ns = namespace(last_user_idx = -1) %}
49
+ {%- for m in loop_messages %}
50
+ {%- if m["role"] == "user" %}
51
+ {%- set ns.last_user_idx = loop.index0 %}
52
+ {%- endif %}
53
+ {%- endfor %}
54
+ {%- if system_message is defined %}
55
+ {{- "<|im_start|>system
56
+ " + system_message }}
57
+ {%- else %}
58
+ {%- if tools is iterable and tools | length > 0 %}
59
+ {{- "<|im_start|>system
60
+ " }}
61
+ {%- endif %}
62
+ {%- endif %}
63
+ {%- if tools is iterable and tools | length > 0 %}
64
+ {%- if system_message is defined and system_message | length > 0 %}
65
+ {{- "
66
+
67
+ " }}
68
+ {%- endif %}
69
+ {{- "# Tools
70
+
71
+ You have access to the following functions:
72
+
73
+ " }}
74
+ {{- "<tools>" }}
75
+ {%- for tool in tools %}
76
+ {%- if tool.function is defined %}
77
+ {%- set tool = tool.function %}
78
+ {%- endif %}
79
+ {{- "
80
+ <function>
81
+ <name>" ~ tool.name ~ "</name>" }}
82
+ {%- if tool.description is defined %}
83
+ {{- '
84
+ <description>' ~ (tool.description | trim) ~ '</description>' }}
85
+ {%- endif %}
86
+ {{- '
87
+ <parameters>' }}
88
+ {%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
89
+ {%- for param_name, param_fields in tool.parameters.properties|items %}
90
+ {{- '
91
+ <parameter>' }}
92
+ {{- '
93
+ <name>' ~ param_name ~ '</name>' }}
94
+ {%- if param_fields.type is defined %}
95
+ {{- '
96
+ <type>' ~ (param_fields.type | string) ~ '</type>' }}
97
+ {%- endif %}
98
+ {%- if param_fields.description is defined %}
99
+ {{- '
100
+ <description>' ~ (param_fields.description | trim) ~ '</description>' }}
101
+ {%- endif %}
102
+ {%- if param_fields.enum is defined %}
103
+ {{- '
104
+ <enum>' ~ (param_fields.enum | tojson | safe) ~ '</enum>' }}
105
+ {%- endif %}
106
+ {%- set handled_keys = ['name', 'type', 'description', 'enum'] %}
107
+ {{- render_extra_keys(param_fields, handled_keys) }}
108
+ {{- '
109
+ </parameter>' }}
110
+ {%- endfor %}
111
+ {%- endif %}
112
+ {% set handled_keys = ['type', 'properties', 'required'] %}
113
+ {{- render_extra_keys(tool.parameters, handled_keys) }}
114
+ {%- if tool.parameters is defined and tool.parameters.required is defined %}
115
+ {{- '
116
+ <required>' ~ (tool.parameters.required | tojson | safe) ~ '</required>' }}
117
+ {%- endif %}
118
+ {{- '
119
+ </parameters>' }}
120
+ {%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
121
+ {{- render_extra_keys(tool, handled_keys) }}
122
+ {{- '
123
+ </function>' }}
124
+ {%- endfor %}
125
+ {{- "
126
+ </tools>" }}
127
+
128
+ {{- '
129
+
130
+ If you choose to call a function ONLY reply in the following format with NO suffix:
131
+
132
+ <tool_call>
133
+ <function=example_function_name>
134
+ <parameter=example_parameter_1>
135
+ value_1
136
+ </parameter>
137
+ <parameter=example_parameter_2>
138
+ This is the value for the second parameter
139
+ that can span
140
+ multiple lines
141
+ </parameter>
142
+ </function>
143
+ </tool_call>
144
+
145
+ <IMPORTANT>
146
+ Reminder:
147
+ - Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags
148
+ - Required parameters MUST be specified
149
+ - You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after
150
+ - If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls
151
+ </IMPORTANT>' }}
152
+ {%- endif %}
153
+
154
+
155
+ {%- if system_message is defined %}
156
+ {{- '<|im_end|>
157
+ ' }}
158
+ {%- else %}
159
+ {%- if tools is iterable and tools | length > 0 %}
160
+ {{- '<|im_end|>
161
+ ' }}
162
+ {%- endif %}
163
+ {%- endif %}
164
+
165
+ {%- set image_count = namespace(value=0) %}
166
+ {%- set video_count = namespace(value=0) %}
167
+ {%- for message in loop_messages %}
168
+ {%- if message.role == "assistant" %}
169
+ {# Add reasoning content in to content field for unified processing below. #}
170
+ {%- set text_content = namespace(text_content="") -%}
171
+ {%- if message.content is string %}
172
+ {%- set text_content.text_content = message.content %}
173
+ {%- else %}
174
+ {%- for content in message.content %}
175
+ {%- if 'text' in content %}
176
+ {%- set text_content.text_content = content.text %}
177
+ {%- break %}
178
+ {%- endif %}
179
+ {%- endfor %}
180
+ {%- endif %}
181
+ {%- if message.reasoning_content is defined and message.reasoning_content is string and message.reasoning_content | trim | length > 0 %}
182
+ {%- set content = "<think>
183
+ " ~ message.reasoning_content ~ "
184
+ </think>
185
+ " ~ (text_content.text_content | default('', true)) %}
186
+ {%- else %}
187
+ {%- set content = text_content.text_content | default('', true) %}
188
+ {# Allow downstream logic to to take care of broken thought, only handle coherent reasoning here. #}
189
+ {%- if '<think>' not in content and '</think>' not in content %}
190
+ {%- set content = "<think></think>" ~ content %}
191
+ {%- else %}
192
+ {%- set content = content %}
193
+ {%- endif -%}
194
+ {%- endif %}
195
+ {%- if message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
196
+ {# Assistant message has tool calls. #}
197
+ {{- '<|im_start|>assistant
198
+ ' }}
199
+ {%- set include_content = not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
200
+ {%- if content is string and content | trim | length > 0 %}
201
+ {%- if include_content %}
202
+ {{- (content | trim) ~ '
203
+ ' -}}
204
+ {%- else %}
205
+ {%- set c = (content | string) %}
206
+ {%- if '</think>' in c %}
207
+ {# Keep only content after the last closing think. Also generation prompt causes this. #}
208
+ {%- set c = c.split('</think>')[-1] %}
209
+ {%- elif '<think>' in c %}
210
+ {# If <think> was opened but never closed, drop the trailing think segment #}
211
+ {%- set c = c.split('<think>')[0] %}
212
+ {%- endif %}
213
+ {%- set c = "<think></think>" ~ c | trim %}
214
+ {%- if c | length > 0 %}
215
+ {{- c ~ '
216
+ ' -}}
217
+ {%- endif %}
218
+ {%- endif %}
219
+ {%- else %}
220
+ {{- "<think></think>" -}}
221
+ {%- endif %}
222
+ {%- for tool_call in message.tool_calls %}
223
+ {%- if tool_call.function is defined %}
224
+ {%- set tool_call = tool_call.function %}
225
+ {%- endif %}
226
+ {{- '<tool_call>
227
+ <function=' ~ tool_call.name ~ '>
228
+ ' -}}
229
+ {%- if tool_call.arguments is defined %}
230
+ {%- for args_name, args_value in tool_call.arguments|items %}
231
+ {{- '<parameter=' ~ args_name ~ '>
232
+ ' -}}
233
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
234
+ {{- args_value ~ '
235
+ </parameter>
236
+ ' -}}
237
+ {%- endfor %}
238
+ {%- endif %}
239
+ {{- '</function>
240
+ </tool_call>
241
+ ' -}}
242
+ {%- endfor %}
243
+ {{- '<|im_end|>
244
+ ' }}
245
+ {%- else %}
246
+ {# Assistant message doesn't have tool calls. #}
247
+ {%- if not (truncate_history_thinking and loop.index0 < ns.last_user_idx) %}
248
+ {{- '<|im_start|>assistant
249
+ ' ~ (content | default('', true) | string | trim) ~ '<|im_end|>
250
+ ' }}
251
+ {%- else %}
252
+ {%- set c = (content | default('', true) | string) %}
253
+ {%- if '<think>' in c and '</think>' in c %}
254
+ {%- set c = "<think></think>" ~ c.split('</think>')[-1] %}
255
+ {%- endif %}
256
+ {%- set c = c | trim %}
257
+ {%- if c | length > 0 %}
258
+ {{- '<|im_start|>assistant
259
+ ' ~ c ~ '<|im_end|>
260
+ ' }}
261
+ {%- else %}
262
+ {{- '<|im_start|>assistant
263
+ <|im_end|>
264
+ ' }}
265
+ {%- endif %}
266
+ {%- endif %}
267
+ {%- endif %}
268
+ {%- elif message.role == "user" or message.role == "system" %}
269
+ {{- '<|im_start|>' + message.role + '
270
+ ' }}
271
+ {%- if message.content is string %}
272
+ {{- message.content }}
273
+ {%- else %}
274
+ {%- for content in message.content %}
275
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
276
+ {%- set image_count.value = image_count.value + 1 %}
277
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
278
+ <|vision_start|><|image_pad|><|vision_end|>
279
+ {%- elif content.type == 'video' or 'video' in content %}
280
+ {%- set video_count.value = video_count.value + 1 %}
281
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
282
+ <|vision_start|><|video_pad|><|vision_end|>
283
+ {%- elif 'text' in content %}
284
+ {{- content.text }}
285
+ {%- endif %}
286
+ {%- endfor %}
287
+ {%- endif %}
288
+ {{- '<|im_end|>
289
+ ' }}
290
+ {%- elif message.role == "tool" %}
291
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
292
+ {{- '<|im_start|>user
293
+ ' }}
294
+ {%- endif %}
295
+ {{- '<tool_response>
296
+ ' }}
297
+ {{- message.content }}
298
+ {{- '
299
+ </tool_response>
300
+ ' }}
301
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
302
+ {{- '<|im_end|>
303
+ ' }}
304
+ {%- elif loop.last %}
305
+ {{- '<|im_end|>
306
+ ' }}
307
+ {%- endif %}
308
+ {%- else %}
309
+ {{- '<|im_start|>' + message.role + '
310
+ ' + message.content + '<|im_end|>
311
+ ' }}
312
+ {%- endif %}
313
+ {%- endfor %}
314
+
315
+ {%- if add_generation_prompt %}
316
+ {%- if enable_thinking %}
317
+ {{- '<|im_start|>assistant
318
+ <think>
319
+ ' }}
320
+ {%- else %}
321
+ {{- '<|im_start|>assistant
322
+ <think></think>' }}
323
+ {%- endif %}
324
+ {%- endif %}
cosmos3edge_libero_spatial_full_finetune_bs16/tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|im_end|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
cosmos3edge_libero_spatial_full_finetune_bs16/tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dc692a99dca6d92a44e9529ffb53541eb79bb260eec7281bc51268c05d7311c
3
+ size 17077500
cosmos3edge_libero_spatial_full_finetune_bs16/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "is_local": true,
8
+ "local_files_only": false,
9
+ "model_input_names": [
10
+ "input_ids",
11
+ "attention_mask"
12
+ ],
13
+ "model_max_length": 262144,
14
+ "pad_token": "<|im_end|>",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": "<unk>"
17
+ }
cosmos3edge_libero_spatial_full_finetune_bs16/vlm_backbone_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attention_bias": false,
3
+ "attention_dropout": 0.0,
4
+ "bos_token_id": 1,
5
+ "enable_mrope": true,
6
+ "enable_rope": true,
7
+ "eos_token_id": 11,
8
+ "head_dim": 128,
9
+ "hidden_dropout": 0.0,
10
+ "hidden_size": 2048,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 9216,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "max_position_embeddings": 131072,
15
+ "mlp_bias": false,
16
+ "mlp_hidden_act": "relu2",
17
+ "model_type": "nemotron_3_dense_vl_text",
18
+ "mrope_section": [
19
+ 24,
20
+ 20,
21
+ 20
22
+ ],
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 28,
25
+ "num_key_value_heads": 8,
26
+ "num_logits_to_keep": 1,
27
+ "packed_attention_backend": "flash2",
28
+ "pad_token_id": 11,
29
+ "residual_in_fp32": false,
30
+ "rope_parameters": {
31
+ "rope_theta": 100000000.0,
32
+ "rope_type": "default"
33
+ },
34
+ "rope_theta": 100000000.0,
35
+ "sliding_window": null,
36
+ "tie_word_embeddings": false,
37
+ "transformers_version": "5.3.0",
38
+ "use_cache": true,
39
+ "use_und_k_norm_for_gen": true,
40
+ "vocab_size": 131072
41
+ }