Furunhao commited on
Commit
f6bf02a
·
verified ·
1 Parent(s): 6bf60cb

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ .metadata filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ __0_0.distcp filter=lfs diff=lfs merge=lfs -text
.metadata ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d92db4d020440aa043f898c4acc40c46e34d7565015f4103c531595faa7b930
3
+ size 257851
__0_0.distcp ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5116d9a4aec7407bce8f102ddd0aa152c045179e498f3e20f4bbad53f2b90d41
3
+ size 9321437622
common.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3203c48c508d56071331991ba182a42afd9d7c88152a2c2b4bdc62213519008f
3
+ size 1383
metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"sharded_backend": "torch_dist", "sharded_backend_version": 1, "common_backend": "torch", "common_backend_version": 1}
run_config.yaml ADDED
@@ -0,0 +1,666 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _target_: megatron.bridge.training.config.ConfigContainer
2
+ checkpoint:
3
+ _target_: megatron.bridge.training.config.CheckpointConfig
4
+ async_ckpt_cpu_priority: 10
5
+ async_ckpt_io_priority: 3
6
+ async_ckpt_use_cpu_shm: false
7
+ async_save: false
8
+ async_strategy: mcore
9
+ async_write_results_mp_mode: fork
10
+ auto_detect_ckpt_format: false
11
+ ckpt_assume_constant_structure: false
12
+ ckpt_convert_format: null
13
+ ckpt_convert_save: null
14
+ ckpt_convert_update_legacy_dist_opt_format: false
15
+ ckpt_format: torch_dist
16
+ ckpt_fully_parallel_load_exchange_algo: broadcast
17
+ ckpt_fully_parallel_load_process_group: dp
18
+ ckpt_fully_parallel_save_process_group: dp
19
+ ckpt_load_validate_sharding_integrity: true
20
+ ckpt_step: null
21
+ custom_manager_class: null
22
+ dist_ckpt_optim_fully_reshardable: true
23
+ dist_ckpt_save_pre_mcore_014: false
24
+ dist_ckpt_strictness: assume_ok_unexpected
25
+ dist_ckpt_workers: 1
26
+ distrib_optim_fully_reshardable_mem_efficient: false
27
+ exit_on_missing_checkpoint: false
28
+ finetune: false
29
+ fully_parallel_load: false
30
+ fully_parallel_save: true
31
+ load: null
32
+ load_main_params_from_ckpt: false
33
+ load_optim: true
34
+ load_rng: true
35
+ most_recent_k: -1
36
+ non_persistent_ckpt_type: null
37
+ non_persistent_global_ckpt_dir: null
38
+ non_persistent_local_ckpt_algo: fully_parallel
39
+ non_persistent_local_ckpt_dir: null
40
+ non_persistent_save_interval: null
41
+ pretrained_checkpoint: null
42
+ replication: false
43
+ replication_factor: 2
44
+ replication_jump: null
45
+ save: /home/junjie.ye/workspace/humanoid_research/cua/models/checkpoints/slides01_aw_init_from_3x422_func_v1
46
+ save_activations_interval: null
47
+ save_dgrads_interval: null
48
+ save_interval: null
49
+ save_optim: false
50
+ save_params_interval: null
51
+ save_retain_interval: null
52
+ save_rng: false
53
+ save_tokenizer_assets: true
54
+ save_tokens_per_expert_interval: null
55
+ save_wgrads_interval: null
56
+ storage_writers_per_rank: 1
57
+ strict_fsdp_dtensor_load: false
58
+ use_checkpoint_args: false
59
+ use_mp_args_from_checkpoint_args: false
60
+ use_persistent_ckpt_worker: true
61
+ use_tokenizer_model_from_checkpoint_args: true
62
+ verify_integrity: false
63
+ comm_overlap: null
64
+ dataset: null
65
+ ddp: null
66
+ dist: null
67
+ ft: null
68
+ inprocess_restart: null
69
+ logger:
70
+ _target_: megatron.bridge.training.config.LoggerConfig
71
+ barrier_with_L1_time: true
72
+ comet_api_key: null
73
+ comet_experiment_name: null
74
+ comet_project: null
75
+ comet_tags: null
76
+ comet_workspace: null
77
+ filter_warnings: true
78
+ log_device_memory_used: false
79
+ log_energy: false
80
+ log_interval: 100
81
+ log_l2_norm_grad_to_tensorboard: false
82
+ log_loss_scale_to_tensorboard: true
83
+ log_max_attention_logit: false
84
+ log_memory_interval: null
85
+ log_memory_to_tensorboard: false
86
+ log_num_zeros_in_grad: false
87
+ log_params_norm: false
88
+ log_progress: false
89
+ log_runtime_to_tensorboard: false
90
+ log_throughput: false
91
+ log_throughput_to_tensorboard: false
92
+ log_timers_to_tensorboard: false
93
+ log_validation_ppl_to_tensorboard: false
94
+ log_world_size_to_tensorboard: false
95
+ logging_level: 20
96
+ memory_keys: null
97
+ mlflow_description: null
98
+ mlflow_experiment: null
99
+ mlflow_log_artifacts: true
100
+ mlflow_run_name: null
101
+ mlflow_tags: null
102
+ mlflow_tracking_uri: null
103
+ modules_to_filter: null
104
+ runtime_time_unit: hours
105
+ save_config_filepath: null
106
+ set_level_for_all_loggers: false
107
+ skip_train_metrics_log: false
108
+ tensorboard_dir: null
109
+ tensorboard_log_interval: 1
110
+ tensorboard_queue_size: 1000
111
+ throughput_window_size: 100
112
+ timing_log_level: 0
113
+ timing_log_option: minmax
114
+ wandb_entity: null
115
+ wandb_exp_name: null
116
+ wandb_project: null
117
+ wandb_save_dir: null
118
+ mixed_precision: null
119
+ model:
120
+ _target_: megatron.bridge.models.qwen_vl.qwen35_vl_provider.Qwen35VLModelProvider
121
+ account_for_embedding_in_pipeline_split: false
122
+ account_for_loss_in_pipeline_split: false
123
+ activation_func:
124
+ _call_: false
125
+ _target_: torch.nn.functional.silu
126
+ activation_func_clamp_value: null
127
+ activation_func_fp8_input_store: false
128
+ add_bias_linear: false
129
+ add_qkv_bias: false
130
+ apply_query_key_layer_scaling: false
131
+ apply_residual_connection_post_layernorm: false
132
+ apply_rope_fusion: false
133
+ apply_rotary_pos_emb_in_fp32: false
134
+ attention_backend:
135
+ _args_:
136
+ - 5
137
+ _call_: true
138
+ _name_: auto
139
+ _target_: megatron.core.transformer.enums.AttnBackend
140
+ attention_dropout: 0.0
141
+ attention_output_gate: true
142
+ attention_softmax_in_fp32: true
143
+ autocast_dtype:
144
+ _call_: false
145
+ _target_: torch.bfloat16
146
+ barrier_with_L1_time: true
147
+ batch_invariant_mode: false
148
+ batch_p2p_comm: true
149
+ batch_p2p_sync: true
150
+ bf16: true
151
+ bias_activation_fusion: true
152
+ bias_dropout_fusion: false
153
+ bos_token_id: null
154
+ calculate_per_token_loss: false
155
+ clone_scatter_output_in_embedding: true
156
+ config_logger_dir: ''
157
+ context_parallel_size: 1
158
+ cp_comm_type: null
159
+ cpu_offloading: false
160
+ cpu_offloading_activations: true
161
+ cpu_offloading_double_buffering: false
162
+ cpu_offloading_num_layers: 0
163
+ cpu_offloading_retain_pinned_cpu_buffers: false
164
+ cpu_offloading_weights: false
165
+ cross_entropy_fusion_impl: native
166
+ cross_entropy_loss_fusion: true
167
+ cuda_graph_impl: none
168
+ cuda_graph_modules: []
169
+ cuda_graph_retain_backward_graph: false
170
+ cuda_graph_scope: null
171
+ cuda_graph_use_single_mempool: true
172
+ cuda_graph_warmup_steps: 3
173
+ deallocate_pipeline_outputs: true
174
+ defer_embedding_wgrad_compute: false
175
+ delay_wgrad_compute: false
176
+ dense_grouped_gemm: false
177
+ deterministic_mode: false
178
+ disable_bf16_reduced_precision_matmul: false
179
+ disable_parameter_transpose_cache: false
180
+ distribute_saved_activations: false
181
+ dsa_indexer_head_dim: null
182
+ dsa_indexer_loss_coeff: null
183
+ dsa_indexer_n_heads: null
184
+ dsa_indexer_topk: null
185
+ dsa_indexer_use_sparse_loss: false
186
+ embedding_init_method:
187
+ _args_: []
188
+ _partial_: true
189
+ _target_: torch.nn.init.normal_
190
+ mean: 0.0
191
+ std: 0.02
192
+ embedding_init_method_std: 0.02
193
+ enable_autocast: false
194
+ enable_cuda_graph: false
195
+ eos_token_id: 248044
196
+ ep_overlap_early_attn_memory_release: false
197
+ experimental_attention_variant: gated_delta_net
198
+ expert_model_parallel_size: 1
199
+ expert_tensor_parallel_size: 1
200
+ external_cuda_graph: false
201
+ ffn_hidden_size: 9216
202
+ finalize_model_grads_func: null
203
+ fine_grained_activation_offloading: false
204
+ fine_grained_offloading_max_inflight_offloads: null
205
+ first_last_layers_bf16: false
206
+ flash_decode: false
207
+ fp16: false
208
+ fp16_lm_cross_entropy: false
209
+ fp32_residual_connection: false
210
+ fp4: null
211
+ fp4_param: false
212
+ fp4_quantizer_factory: null
213
+ fp4_recipe: nvfp4
214
+ fp8: null
215
+ fp8_amax_compute_algo: most_recent
216
+ fp8_amax_history_len: 1
217
+ fp8_dot_product_attention: false
218
+ fp8_interval: 1
219
+ fp8_margin: 0
220
+ fp8_multi_head_attention: false
221
+ fp8_output_proj: false
222
+ fp8_param: false
223
+ fp8_quantizer_factory: null
224
+ fp8_recipe: delayed
225
+ fp8_wgrad: true
226
+ freeze_language_model: false
227
+ freeze_vision_model: false
228
+ freeze_vision_projection: false
229
+ fused_residual_rmsnorm: false
230
+ fused_single_qkv_rope: false
231
+ gated_linear_unit: true
232
+ glu_linear_offset: 0.0
233
+ grad_scale_func: null
234
+ grad_sync_func: null
235
+ gradient_accumulation_fusion: false
236
+ hetereogenous_dist_checkpoint: true
237
+ heterogeneous_block_specs: false
238
+ hf_model_id: /home/junjie.ye/workspace/humanoid_research/cua/models/hf_exports/qwen35-vl-4b-cua-3x-full-func-nothink-1ep-20260907/iter_0000422
239
+ hidden_dropout: 0.0
240
+ hidden_size: 2560
241
+ hierarchical_context_parallel_sizes: null
242
+ high_priority_a2a_comm_stream: false
243
+ hybrid_context_parallel: false
244
+ image_token_id: 248056
245
+ inference_cuda_graph_scope:
246
+ _args_:
247
+ - 1
248
+ _call_: true
249
+ _name_: none
250
+ _target_: megatron.core.transformer.enums.InferenceCudaGraphScope
251
+ inference_disable_triton_nvls_kernels: false
252
+ inference_fuse_tp_communication: false
253
+ inference_grouped_gemm_backend: vllm
254
+ inference_moe_disable_fused_quant_kernels: false
255
+ inference_moe_token_dispatcher_type: nvls
256
+ inference_rng_tracker: false
257
+ inference_sampling_seed: 42
258
+ init_method:
259
+ _args_: []
260
+ _partial_: true
261
+ _target_: torch.nn.init.normal_
262
+ mean: 0.0
263
+ std: 0.02
264
+ init_method_std: 0.02
265
+ init_model_with_meta_device: false
266
+ is_hybrid_model: false
267
+ kitchen_attention_backend: sdpa
268
+ kv_channels: 256
269
+ language_max_sequence_length: 2048
270
+ layernorm_epsilon: 1.0e-06
271
+ layernorm_zero_centered_gamma: true
272
+ linear_attention_freq: 4
273
+ linear_conv_kernel_dim: 4
274
+ linear_key_head_dim: 128
275
+ linear_num_key_heads: 16
276
+ linear_num_value_heads: 32
277
+ linear_value_head_dim: 128
278
+ log_max_attention_logit: false
279
+ make_vocab_size_divisible_by: 128
280
+ mamba_head_dim: 64
281
+ mamba_num_groups: 8
282
+ mamba_num_heads: null
283
+ mamba_state_dim: 128
284
+ masked_softmax_fusion: true
285
+ max_seqlen_per_dp_cp_rank: null
286
+ memory_efficient_layer_norm: false
287
+ microbatch_group_size_per_vp_stage: 1
288
+ min_offloaded_tensor_size: 1048576
289
+ mlp_chunks_for_prefill: 1
290
+ mlp_chunks_for_training: 1
291
+ moe_apply_probs_on_input: false
292
+ moe_aux_loss_coeff: 0.0
293
+ moe_deepep_num_sms: 20
294
+ moe_enable_deepep: false
295
+ moe_enable_routing_replay: false
296
+ moe_expert_capacity_factor: null
297
+ moe_expert_rank_capacity_factor: null
298
+ moe_ffn_hidden_size: null
299
+ moe_flex_dispatcher_backend: deepep
300
+ moe_grouped_gemm: false
301
+ moe_hybridep_num_blocks_permute: null
302
+ moe_hybridep_num_blocks_unpermute: null
303
+ moe_hybridep_num_sms: null
304
+ moe_hybridep_num_sms_preprocessing: 108
305
+ moe_input_jitter_eps: null
306
+ moe_latent_size: null
307
+ moe_layer_freq: 1
308
+ moe_layer_recompute: false
309
+ moe_mlp_glu_interleave_size: null
310
+ moe_pad_expert_input_to_capacity: false
311
+ moe_pad_experts_for_cuda_graph_inference: false
312
+ moe_paged_stash: false
313
+ moe_paged_stash_buffer_size_factor_cpu: 0.0
314
+ moe_paged_stash_buffer_size_factor_cuda: 1.1
315
+ moe_paged_stash_page_size: 64
316
+ moe_per_layer_logging: false
317
+ moe_permute_fusion: false
318
+ moe_permute_fusion_into_hybridep: false
319
+ moe_router_bias_update_rate: 0.001
320
+ moe_router_dtype: null
321
+ moe_router_enable_expert_bias: false
322
+ moe_router_force_biased: null
323
+ moe_router_force_load_balancing: false
324
+ moe_router_fusion: false
325
+ moe_router_group_topk: null
326
+ moe_router_load_balancing_type: aux_loss
327
+ moe_router_num_groups: null
328
+ moe_router_padding_for_fp8: false
329
+ moe_router_padding_for_quantization: false
330
+ moe_router_pre_softmax: false
331
+ moe_router_score_function: softmax
332
+ moe_router_topk: 2
333
+ moe_router_topk_limited_devices: null
334
+ moe_router_topk_scaling_factor: null
335
+ moe_shared_expert_gate: false
336
+ moe_shared_expert_intermediate_size: null
337
+ moe_shared_expert_overlap: false
338
+ moe_single_grouped_bias: false
339
+ moe_single_grouped_weight: false
340
+ moe_token_dispatcher_type: allgather
341
+ moe_token_drop_policy: probs
342
+ moe_token_dropping: false
343
+ moe_z_loss_coeff: null
344
+ mrope_section:
345
+ - 11
346
+ - 11
347
+ - 10
348
+ mtp_enabled: false
349
+ mtp_hybrid_override_pattern: null
350
+ mtp_loss_scaling_factor: 0.1
351
+ mtp_num_layers: 1
352
+ mtp_standalone: false
353
+ mtp_use_repeated_layer: false
354
+ multi_latent_attention: false
355
+ mup_attn_scale_power: 1.0
356
+ mup_base_head_dim: null
357
+ mup_base_hidden_size: null
358
+ mup_embedding_mult: 1.0
359
+ mup_output_mult: 1.0
360
+ mup_width_mult: 1.0
361
+ nccl_all_reduce_for_prefill: false
362
+ no_rope_freq: null
363
+ no_sync_func: null
364
+ normalization: RMSNorm
365
+ num_attention_heads: 16
366
+ num_layers: 32
367
+ num_layers_at_end_in_bf16: 1
368
+ num_layers_at_start_in_bf16: 1
369
+ num_layers_in_first_pipeline_stage: null
370
+ num_layers_in_last_pipeline_stage: null
371
+ num_microbatches_with_partial_activation_checkpoints: null
372
+ num_moe_experts: null
373
+ num_query_groups: 4
374
+ offload_modules: []
375
+ output_layer_init_method:
376
+ _args_: []
377
+ _partial_: true
378
+ _target_: torch.nn.init.normal_
379
+ mean: 0.0
380
+ std: 0.0025
381
+ overlap_dispatch_backward_with_experts_wgrad: false
382
+ overlap_moe_expert_parallel_comm: false
383
+ overlap_p2p_comm: false
384
+ overlap_p2p_comm_warmup_flush: false
385
+ parallel_output: true
386
+ param_sync_func: null
387
+ params_dtype:
388
+ _call_: false
389
+ _target_: torch.bfloat16
390
+ patch_size: 16
391
+ perform_initialization: false
392
+ persist_layer_norm: false
393
+ pipeline_dtype:
394
+ _call_: false
395
+ _target_: torch.bfloat16
396
+ pipeline_model_parallel_comm_backend: null
397
+ pipeline_model_parallel_layout: null
398
+ pipeline_model_parallel_size: 1
399
+ position_embedding_type: mrope
400
+ qk_clip: false
401
+ qk_clip_alpha: 0.5
402
+ qk_clip_threshold: 100
403
+ qk_l2_norm: false
404
+ qk_layernorm: true
405
+ quant_recipe: null
406
+ recompute_granularity: null
407
+ recompute_method: null
408
+ recompute_modules:
409
+ - core_attn
410
+ recompute_num_layers: null
411
+ restore_modelopt_state: false
412
+ rope_scaling: false
413
+ rope_scaling_factor: 1.0
414
+ rotary_base: 10000000
415
+ rotary_interleaved: false
416
+ rotary_percent: 0.25
417
+ rotary_scaling_factor: null
418
+ scatter_embedding_sequence_parallel: false
419
+ seq_len_interpolation_factor: null
420
+ seq_length: 262144
421
+ sequence_parallel: false
422
+ share_embeddings_and_output_weights: true
423
+ should_pad_vocab: false
424
+ softmax_scale: null
425
+ softmax_type: vanilla
426
+ spatial_merge_size: 2
427
+ symmetric_ar_type: null
428
+ temporal_patch_size: 2
429
+ tensor_model_parallel_size: 1
430
+ test_mode: false
431
+ timers: null
432
+ tp_comm_atomic_ag: false
433
+ tp_comm_atomic_rs: false
434
+ tp_comm_bootstrap_backend: nccl
435
+ tp_comm_bulk_dgrad: true
436
+ tp_comm_bulk_wgrad: true
437
+ tp_comm_overlap: false
438
+ tp_comm_overlap_ag: true
439
+ tp_comm_overlap_cfg: null
440
+ tp_comm_overlap_disable_fc1: false
441
+ tp_comm_overlap_disable_qkv: false
442
+ tp_comm_overlap_rs: true
443
+ tp_comm_overlap_rs_dgrad: false
444
+ tp_comm_split_ag: true
445
+ tp_comm_split_rs: true
446
+ tp_only_amax_red: false
447
+ transformer_impl: transformer_engine
448
+ transformer_layer_spec:
449
+ _call_: false
450
+ _target_: megatron.core.models.gpt.experimental_attention_variant_module_specs.get_transformer_block_with_experimental_attention_variant_spec
451
+ use_arbitrary_attention_mask: null
452
+ use_cpu_initialization: false
453
+ use_fused_weighted_squared_relu: false
454
+ use_grouped_gemm_for_dense_mlp: false
455
+ use_hf_vision_model: false
456
+ use_inference_optimized_layers: false
457
+ use_kitchen: false
458
+ use_kitchen_attention: false
459
+ use_mamba_mem_eff_path: true
460
+ use_mup: false
461
+ use_ring_exchange_p2p: false
462
+ use_te_activation_func: false
463
+ use_te_rng_tracker: false
464
+ use_transformer_engine_full_layer_spec: false
465
+ use_transformer_engine_op_fuser: false
466
+ variable_seq_lengths: false
467
+ video_token_id: 248057
468
+ virtual_pipeline_model_parallel_size: null
469
+ vision_config:
470
+ _target_: transformers.models.qwen3_5.configuration_qwen3_5.Qwen3_5VisionConfig
471
+ architectures: null
472
+ chunk_size_feed_forward: 0
473
+ depth: 24
474
+ dtype:
475
+ _call_: false
476
+ _target_: torch.bfloat16
477
+ hidden_act: gelu_pytorch_tanh
478
+ hidden_size: 1024
479
+ id2label:
480
+ 0: LABEL_0
481
+ 1: LABEL_1
482
+ in_channels: 3
483
+ initializer_range: 0.02
484
+ intermediate_size: 4096
485
+ is_encoder_decoder: false
486
+ label2id:
487
+ LABEL_0: 0
488
+ LABEL_1: 1
489
+ num_heads: 16
490
+ num_position_embeddings: 2304
491
+ out_hidden_size: 2560
492
+ output_hidden_states: false
493
+ patch_size: 16
494
+ problem_type: null
495
+ return_dict: true
496
+ spatial_merge_size: 2
497
+ temporal_patch_size: 2
498
+ transformers_version: null
499
+ vision_dp_when_cp: false
500
+ vision_end_token_id: 248054
501
+ vision_start_token_id: 248053
502
+ vocab_size: 248320
503
+ wgrad_deferral_limit: 0
504
+ window_attn_skip_freq: null
505
+ window_size: null
506
+ yarn_beta_fast: null
507
+ yarn_beta_slow: null
508
+ yarn_correction_range_round_to_int: null
509
+ yarn_mscale: null
510
+ yarn_mscale_all_dim: null
511
+ yarn_original_max_position_embeddings: null
512
+ yarn_rotary_scaling_factor: null
513
+ nvrx_straggler: null
514
+ optimizer:
515
+ _target_: megatron.core.optimizer.optimizer_config.OptimizerConfig
516
+ adam_beta1: 0.9
517
+ adam_beta2: 0.999
518
+ adam_eps: 1.0e-08
519
+ adaptive_muon_beta2: 0.95
520
+ adaptive_muon_eps: 1.0e-08
521
+ adaptive_muon_moment2_method: adamuon
522
+ apply_wd_to_qk_layernorm: false
523
+ barrier_with_L1_time: false
524
+ bf16: false
525
+ clip_grad: 1.0
526
+ config_logger_dir: ''
527
+ decoupled_lr: null
528
+ decoupled_min_lr: null
529
+ decoupled_weight_decay: true
530
+ exp_avg_dtype:
531
+ _call_: false
532
+ _target_: torch.float32
533
+ exp_avg_sq_dtype:
534
+ _call_: false
535
+ _target_: torch.float32
536
+ fp16: false
537
+ fp8_recipe: null
538
+ grad_norm_skip_threshold: .inf
539
+ hysteresis: 2
540
+ initial_loss_scale: 4294967296
541
+ lion_beta1: 0.95
542
+ lion_beta2: 0.98
543
+ log_num_zeros_in_grad: false
544
+ loss_scale: null
545
+ loss_scale_window: 1000
546
+ lr: null
547
+ main_grads_dtype:
548
+ _call_: false
549
+ _target_: torch.float32
550
+ main_params_dtype:
551
+ _call_: false
552
+ _target_: torch.float32
553
+ min_loss_scale: 1.0
554
+ min_lr: null
555
+ muon_coefficient_type: quintic
556
+ muon_extra_scale_factor: 1.0
557
+ muon_fp32_matmul_prec: medium
558
+ muon_momentum: 0.95
559
+ muon_nesterov: false
560
+ muon_num_ns_steps: 5
561
+ muon_scalar_optimizer: adam
562
+ muon_scale_mode: spectral
563
+ muon_split_qkv: true
564
+ muon_tp_mode: blockwise
565
+ optimizer: adam
566
+ optimizer_cpu_offload: false
567
+ optimizer_cuda_graph: false
568
+ optimizer_offload_fraction: 0.0
569
+ overlap_cpu_optimizer_d2h_h2d: false
570
+ overlap_param_gather: false
571
+ overlap_param_gather_with_optimizer_step: false
572
+ params_dtype:
573
+ _call_: false
574
+ _target_: torch.float32
575
+ pin_cpu_grads: true
576
+ pin_cpu_params: true
577
+ reuse_grad_buf_for_mxfp8_param_ag: false
578
+ sgd_momentum: 0.9
579
+ soap_precondition_frequency: 1
580
+ soap_shampoo_beta: 0.95
581
+ soap_use_kl_shampoo: true
582
+ store_param_remainders: true
583
+ timers: null
584
+ use_distributed_optimizer: false
585
+ use_layer_wise_distributed_optimizer: false
586
+ use_precision_aware_optimizer: false
587
+ use_torch_optimizer_for_cpu_offload: false
588
+ weight_decay: 0.01
589
+ optimizer_config_override_provider:
590
+ _target_: megatron.bridge.training.config.OptimizerConfigOverrideProvider
591
+ peft: null
592
+ profiling:
593
+ _target_: megatron.bridge.training.config.ProfilingConfig
594
+ memory_snapshot_path: /nemo_run/snapshot.pickle
595
+ nvtx_ranges: false
596
+ profile_ranks:
597
+ - 0
598
+ profile_step_end: 12
599
+ profile_step_start: 10
600
+ pytorch_profiler_collect_callstack: false
601
+ pytorch_profiler_collect_chakra: false
602
+ pytorch_profiler_collect_shapes: false
603
+ record_memory_history: false
604
+ record_shapes: false
605
+ use_nsys_profiler: false
606
+ use_pytorch_profiler: false
607
+ rerun_state_machine:
608
+ _target_: megatron.bridge.training.config.RerunStateMachineConfig
609
+ check_for_nan_in_loss: true
610
+ check_for_spiky_loss: false
611
+ error_injection_rate: 0
612
+ error_injection_type: transient_error
613
+ rerun_mode: disabled
614
+ spiky_loss_factor: 10.0
615
+ rng:
616
+ _target_: megatron.training.config.common_config.RNGConfig
617
+ data_parallel_random_init: false
618
+ inference_rng_tracker: false
619
+ seed: 1234
620
+ te_rng_tracker: false
621
+ scheduler: null
622
+ straggler: null
623
+ tensor_inspect: null
624
+ tokenizer:
625
+ _target_: megatron.bridge.training.tokenizers.config.TokenizerConfig
626
+ chat_template: null
627
+ force_system_message: false
628
+ hf_tokenizer_kwargs: {}
629
+ image_tag_type: null
630
+ make_vocab_size_divisible_by: 1
631
+ merge_file: null
632
+ metadata_path: null
633
+ null_tokenizer_eod_id: null
634
+ null_tokenizer_pad_id: -1
635
+ pad_vocab_size: false
636
+ padded_vocab_size: null
637
+ rank: 0
638
+ sp_tokenizer_kwargs: {}
639
+ special_tokens: null
640
+ tensor_model_parallel_size: 1
641
+ tiktoken_num_special_tokens: 1000
642
+ tiktoken_pattern: null
643
+ tokenizer_hf_no_include_special_tokens: false
644
+ tokenizer_hf_no_use_fast: false
645
+ tokenizer_model: /home/junjie.ye/workspace/humanoid_research/cua/models/hf_exports/qwen35-vl-4b-cua-3x-full-func-nothink-1ep-20260907/iter_0000422
646
+ tokenizer_prompt_format: null
647
+ tokenizer_sentencepiece_ignore_extra_whitespaces: true
648
+ tokenizer_sentencepiece_legacy: false
649
+ tokenizer_type: HuggingFaceTokenizer
650
+ trust_remote_code: false
651
+ vocab_extra_ids: 0
652
+ vocab_file: null
653
+ vocab_size: null
654
+ train: null
655
+ validation:
656
+ _target_: megatron.training.config.training_config.ValidationConfig
657
+ eval_global_batch_size: null
658
+ eval_interval: null
659
+ eval_iters: 100
660
+ eval_micro_batch_size: null
661
+ full_validation: false
662
+ multiple_validation_sets: false
663
+ skip_train: false
664
+ start_eval_at_iter: null
665
+ test_mode: false
666
+ validation_set_names: null
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- 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\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- 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 %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": true,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
26
+ "processor_class": "Qwen3VLProcessor",
27
+ "sep_token": "<|im_end|>",
28
+ "split_special_tokens": false,
29
+ "tokenizer_class": "Qwen2Tokenizer",
30
+ "unk_token": null,
31
+ "video_token": "<|video_pad|>",
32
+ "vision_bos_token": "<|vision_start|>",
33
+ "vision_eos_token": "<|vision_end|>"
34
+ }
train_state.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aee94cd44a5abd78b6a7dbf199b514f17967f64c0403da1e17e7891c70f95788
3
+ size 3461