Add files using upload-large-folder tool
Browse filesFiles changed (50)
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/args.jsonAdded+395
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/added_tokens.jsonAdded+24
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/args.jsonAdded+395
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/chat_template.jinjaAdded+7
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/config.jsonAdded+132
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/generation_config.jsonAdded+14
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/latestAdded+1
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/merges.txtAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/preprocessor_config.jsonAdded+29
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/special_tokens_map.jsonAdded+31
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/tokenizer_config.jsonAdded+209
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/trainer_state.jsonAdded+866
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/video_preprocessor_config.jsonAdded+43
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_grad_norm.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_learning_rate.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_loss.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_total_flos.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_runtime.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_samples_per_second.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_steps_per_second.pngAdded
- lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/logging.jsonlAdded+106
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/added_tokens.jsonAdded+24
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/args.jsonAdded+397
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/chat_template.jinjaAdded+7
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/config.jsonAdded+133
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/generation_config.jsonAdded+14
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/latestAdded+1
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/merges.txtAdded
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/preprocessor_config.jsonAdded+29
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/special_tokens_map.jsonAdded+31
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/tokenizer_config.jsonAdded+209
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/trainer_state.jsonAdded
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/video_preprocessor_config.jsonAdded+43
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/vocab.jsonAdded
- lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/zero_to_fp32.pyAdded+760
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/added_tokens.jsonAdded+24
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/args.jsonAdded+397
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/chat_template.jinjaAdded+7
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/config.jsonAdded+133
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/generation_config.jsonAdded+14
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/latestAdded+1
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/model.safetensors.index.jsonAdded+737
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/special_tokens_map.jsonAdded+31
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/tokenizer_config.jsonAdded+209
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/trainer_state.jsonAdded
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/video_preprocessor_config.jsonAdded+43
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/vocab.jsonAdded
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/zero_to_fp32.pyAdded+760
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/images/train_train_runtime.pngAdded
- lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/images/train_train_samples_per_second.pngAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395{ "output_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134", "overwrite_output_dir": false, "do_train": false, "do_eval": false, "do_predict": false, "eval_strategy": "no", "prediction_loss_only": false, "per_device_train_batch_size": 4, "per_device_eval_batch_size": 1, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 4, "eval_accumulation_steps": null, "eval_delay": 0, "torch_empty_cache_steps": null, "learning_rate": 5e-06, "weight_decay": 0.1, "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 3.0, "max_steps": -1, "lr_scheduler_type": "cosine", "lr_scheduler_kwargs": null, "warmup_ratio": 0.05, "warmup_steps": 0, "log_level": "passive", "log_level_replica": "warning", "log_on_each_node": true, "logging_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134/runs", "logging_strategy": "steps", "logging_first_step": true, "logging_steps": 5, "logging_nan_inf_filter": true, "save_strategy": "epoch", "save_steps": 500, "save_total_limit": null, "save_safetensors": true, "save_on_each_node": false, "save_only_model": false, "restore_callback_states_from_checkpoint": false, "no_cuda": false, "use_cpu": false, "use_mps_device": false, "seed": 42, "data_seed": 42, "jit_mode_eval": false, "bf16": true, "fp16": false, "fp16_opt_level": "O1", "half_precision_backend": "auto", "bf16_full_eval": false, "fp16_full_eval": false, "tf32": null, "local_rank": 0, "ddp_backend": null, "tpu_num_cores": null, "tpu_metrics_debug": false, "debug": null, "dataloader_drop_last": false, "eval_steps": null, "dataloader_num_workers": 8, "dataloader_prefetch_factor": null, "past_index": -1, "run_name": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134", "disable_tqdm": null, "remove_unused_columns": true, "label_names": null, "load_best_model_at_end": false, "metric_for_best_model": "loss", "greater_is_better": false, "ignore_data_skip": false, "fsdp": [], "fsdp_min_num_params": 0, "fsdp_config": null, "fsdp_transformer_layer_cls_to_wrap": null, "accelerator_config": { "dispatch_batches": false }, "parallelism_config": null, "deepspeed": { "fp16": { "enabled": "auto", "loss_scale": 0, "loss_scale_window": 1000, "initial_scale_power": 16, "hysteresis": 2, "min_loss_scale": 1 }, "bf16": { "enabled": "auto" }, "zero_optimization": { "stage": 2, "offload_optimizer": { "device": "none", "pin_memory": true }, "allgather_partitions": true, "allgather_bucket_size": 200000000.0, "overlap_comm": false, "reduce_scatter": true, "reduce_bucket_size": 200000000.0, "contiguous_gradients": true }, "gradient_accumulation_steps": "auto", "gradient_clipping": "auto", "steps_per_print": 2000, "train_batch_size": "auto", "train_micro_batch_size_per_gpu": "auto", "wall_clock_breakdown": false }, "label_smoothing_factor": 0.0, "optim": "adamw_torch_fused", "optim_args": null, "adafactor": false, "group_by_length": false, "length_column_name": "length", "report_to": [ "tensorboard" ], "project": "huggingface", "trackio_space_id": "trackio", "ddp_find_unused_parameters": null, "ddp_bucket_cap_mb": null, "ddp_broadcast_buffers": null, "dataloader_pin_memory": true, "dataloader_persistent_workers": false, "skip_memory_metrics": true, "use_legacy_prediction_loop": false, "push_to_hub": false, "resume_from_checkpoint": null, "hub_model_id": null, "hub_strategy": "every_save", "hub_token": null, "hub_private_repo": null, "hub_always_push": false, "hub_revision": null, "gradient_checkpointing": true, "gradient_checkpointing_kwargs": null, "include_inputs_for_metrics": false, "include_for_metrics": [], "eval_do_concat_batches": true, "fp16_backend": "auto", "push_to_hub_model_id": null, "push_to_hub_organization": null, "push_to_hub_token": null, "mp_parameters": "", "auto_find_batch_size": false, "full_determinism": false, "torchdynamo": null, "ray_scope": "last", "ddp_timeout": 18000000, "torch_compile": false, "torch_compile_backend": null, "torch_compile_mode": null, "include_tokens_per_second": false, "include_num_input_tokens_seen": false, "neftune_noise_alpha": null, "optim_target_modules": null, "batch_eval_metrics": false, "eval_on_start": false, "use_liger_kernel": false, "liger_kernel_config": null, "eval_use_gather_object": false, "average_tokens_across_devices": true, "sortish_sampler": false, "predict_with_generate": false, "generation_max_length": null, "generation_num_beams": null, "generation_config": null, "tuner_backend": "peft", "vit_gradient_checkpointing": null, "router_aux_loss_coef": 0.0, "enable_dft_loss": false, "enable_channel_loss": false, "check_model": true, "acc_strategy": "token", "train_dataloader_shuffle": true, "max_epochs": null, "aligner_lr": null, "vit_lr": null, "use_logits_to_keep": null, "ds3_gather_for_generation": true, "resume_only_model": false, "optimizer": null, "loss_type": null, "eval_metric": null, "callbacks": [], "early_stop_interval": null, "eval_use_evalscope": false, "eval_dataset": [], "eval_dataset_args": null, "eval_limit": null, "eval_generation_config": null, "extra_eval_args": null, "tuner_type": "full", "use_galore": false, "galore_target_modules": null, "galore_rank": 128, "galore_update_proj_gap": 50, "galore_scale": 1.0, "galore_proj_type": "std", "galore_optim_per_parameter": false, "galore_with_embedding": false, "galore_quantization": false, "galore_proj_quant": false, "galore_proj_bits": 4, "galore_proj_group_size": 256, "galore_cos_threshold": 0.4, "galore_gamma_proj": 2, "galore_queue_size": 5, "lisa_activated_layers": 0, "lisa_step_interval": 20, "use_flash_ckpt": false, "use_ray": false, "ray_exp_name": null, "device_groups": null, "model": "/data/liyc/Code/med_vl/lingshu_7b", "model_type": "qwen2_5_vl", "model_revision": null, "task_type": "causal_lm", "torch_dtype": "bfloat16", "attn_impl": "flash_attn", "experts_impl": null, "new_special_tokens": [], "num_labels": null, "problem_type": null, "rope_scaling": null, "device_map": null, "max_memory": {}, "max_model_len": null, "local_repo_path": null, "init_strategy": null, "template": "qwen2_5_vl", "system": null, "max_length": 4096, "truncation_strategy": "delete", "max_pixels": null, "agent_template": null, "norm_bbox": null, "use_chat_template": true, "padding_side": "right", "padding_free": false, "loss_scale": "med", "sequence_parallel_size": 1, "template_backend": "swift", "response_prefix": null, "enable_thinking": null, "add_non_thinking_prefix": true, "dataset": [ "/home/yuchong_li/KnowInject/make_oact_dataset/oact_swift_train.json" ], "val_dataset": [], "cached_dataset": [], "cached_val_dataset": [], "split_dataset_ratio": 0.0, "dataset_num_proc": 8, "load_from_cache_file": false, "dataset_shuffle": true, "val_dataset_shuffle": false, "streaming": false, "interleave_prob": null, "stopping_strategy": "first_exhausted", "shuffle_buffer_size": 1000, "download_mode": "reuse_dataset_if_exists", "columns": {}, "strict": false, "model_name": null, "model_author": null, "custom_dataset_info": [], "quant_method": null, "quant_bits": null, "hqq_axis": null, "bnb_4bit_compute_dtype": "bfloat16", "bnb_4bit_quant_type": "nf4", "bnb_4bit_use_double_quant": true, "bnb_4bit_quant_storage": null, "max_new_tokens": 64, "temperature": 0.0, "top_k": null, "top_p": null, "repetition_penalty": null, "num_beams": 1, "stream": false, "stop_words": [], "logprobs": false, "top_logprobs": null, "structured_outputs_regex": null, "train_type": "full", "adapters": [], "external_plugins": [], "custom_register_path": [], "model_kwargs": {}, "load_args": false, "load_data_args": false, "packing": false, "packing_length": null, "packing_num_proc": 1, "lazy_tokenize": true, "use_hf": false, "ignore_args_error": false, "use_swift_lora": false, "freeze_parameters": [], "freeze_parameters_regex": null, "freeze_parameters_ratio": 0.0, "trainable_parameters": [ "model.visual.merger" ], "trainable_parameters_regex": null, "freeze_llm": false, "freeze_vit": false, "freeze_aligner": false, "target_modules": [ "all-linear" ], "target_regex": null, "target_parameters": null, "modules_to_save": [], "lora_rank": 8, "lora_alpha": 32, "lora_dropout": 0.05, "lora_bias": "none", "lora_dtype": null, "lorap_lr_ratio": null, "use_rslora": false, "use_dora": false, "lora_ga_batch_size": 2, "lora_ga_iters": 2, "lora_ga_max_length": 1024, "lora_ga_direction": "ArB2r", "lora_ga_scale": "stable", "lora_ga_stable_gamma": 16, "init_weights": true, "fourier_n_frequency": 2000, "fourier_scaling": 300.0, "boft_block_size": 4, "boft_block_num": 0, "boft_n_butterfly_factor": 1, "boft_dropout": 0.0, "vera_rank": 256, "vera_projection_prng_key": 0, "vera_dropout": 0.0, "vera_d_initial": 0.1, "adapter_act": "gelu", "adapter_length": 128, "adalora_target_r": 8, "adalora_init_r": 12, "adalora_tinit": 0, "adalora_tfinal": 0, "adalora_deltaT": 1, "adalora_beta1": 0.85, "adalora_beta2": 0.85, "adalora_orth_reg_weight": 0.5, "llamapro_num_new_blocks": 4, "llamapro_num_groups": null, "reft_layer_key": null, "reft_layers": null, "reft_rank": 4, "reft_intervention_type": "LoreftIntervention", "reft_args": null, "swanlab_token": null, "swanlab_project": "ms-swift", "swanlab_workspace": null, "swanlab_exp_name": null, "swanlab_notification_method": null, "swanlab_webhook_url": null, "swanlab_secret": null, "swanlab_sender_email": null, "swanlab_receiver_email": null, "swanlab_smtp_server": null, "swanlab_smtp_port": null, "swanlab_email_language": "zh", "swanlab_mode": "cloud", "add_version": true, "create_checkpoint_symlink": false, "zero_hpz_partition_size": null, "deepspeed_autotp_size": null, "swift_version": "4.0.0.dev0", "ckpt_dir": null, "rank": 0, "global_world_size": 4, "local_world_size": 4, "model_suffix": "lingshu_7b", "model_info": "ModelInfo(model_type='qwen2_5_vl', model_dir='/data/liyc/Code/med_vl/lingshu_7b', torch_dtype=torch.bfloat16, max_model_len=128000, quant_method=None, quant_bits=None, rope_scaling={'mrope_section': [16, 24, 24], 'rope_type': 'default', 'type': 'default'}, is_moe_model=False, is_multimodal=True, config=None, task_type='causal_lm', num_labels=None)", "model_meta": "ModelMeta(model_type='qwen2_5_vl', model_groups=[ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', hf_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-RL', hf_model_id='XiaomiMiMo/MiMo-VL-7B-RL', model_path=None, ms_revision=None, hf_revision=None)], template='mimo_vl', ignore_patterns=None, requires=None, tags=[])], loader=<class 'swift.model.models.qwen.Qwen2_5VLLoader'>, template=None, model_arch=MultiModelKeys(arch_name='qwen2_vl', embedding=None, module_list=None, lm_head=None, q_proj=None, k_proj=None, v_proj=None, o_proj=None, attention=None, mlp=None, down_proj=None, qkv_proj=None, qk_proj=None, qa_proj=None, qb_proj=None, kv_proj=None, kva_proj=None, kvb_proj=None, language_model=['model.language_model', 'lm_head'], aligner=['model.visual.merger'], vision_tower=['model.visual'], generator=[]), architectures=['Qwen2_5_VLForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.49', 'qwen_vl_utils>=0.0.6', 'decord'], tags=['vision', 'video'])", "model_dir": "/data/liyc/Code/med_vl/lingshu_7b", "template_meta": "QwenTemplateMeta(template_type='qwen2_5_vl', prefix=[], prompt=['<|im_start|>user\\n{{QUERY}}<|im_end|>\\n<|im_start|>assistant\\n'], chat_sep=['<|im_end|>\\n'], suffix=['<|im_end|>\\n'], template_cls=<class 'swift.template.templates.qwen.Qwen2_5VLTemplate'>, system_prefix=['<|im_start|>system\\n{{SYSTEM}}<|im_end|>\\n'], default_system='You are a helpful assistant.', auto_add_bos=False, stop_words=['<|endoftext|>'], agent_template='hermes', is_thinking=False, thinking_prefix='', non_thinking_prefix='', history_thinking_prefix='')", "_val_dataset_exists": [], "hub": "<class 'swift.hub.hub.MSHub'>", "evaluation_strategy": "epoch", "training_args": "Seq2SeqTrainingArguments(output_dir='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134', overwrite_output_dir=False, do_train=False, do_eval=False, do_predict=False, eval_strategy=<IntervalStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=4, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=5e-06, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=3.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.05, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.EPOCH: 'epoch'>, save_steps=500, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=None, dataloader_num_workers=8, dataloader_prefetch_factor=2, past_index=-1, run_name='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), parallelism_config=None, deepspeed={'fp16': {'enabled': 'auto', 'loss_scale': 0, 'loss_scale_window': 1000, 'initial_scale_power': 16, 'hysteresis': 2, 'min_loss_scale': 1}, 'bf16': {'enabled': 'auto'}, 'zero_optimization': {'stage': 2, 'offload_optimizer': {'device': 'none', 'pin_memory': True}, 'allgather_partitions': True, 'allgather_bucket_size': 200000000.0, 'overlap_comm': False, 'reduce_scatter': True, 'reduce_bucket_size': 200000000.0, 'contiguous_gradients': True}, 'gradient_accumulation_steps': 'auto', 'gradient_clipping': 'auto', 'steps_per_print': 2000, 'train_batch_size': 'auto', 'train_micro_batch_size_per_gpu': 'auto', 'wall_clock_breakdown': False}, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH_FUSED: 'adamw_torch_fused'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], project='huggingface', trackio_space_id='trackio', ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, hub_revision=None, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, liger_kernel_config=None, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, tuner_backend='peft', vit_gradient_checkpointing=True, router_aux_loss_coef=0.0, enable_dft_loss=False, enable_channel_loss=False, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, use_logits_to_keep=None, ds3_gather_for_generation=True, resume_only_model=False, optimizer=None, loss_type=None, eval_metric=None, callbacks=[], early_stop_interval=None, eval_use_evalscope=False, eval_dataset=[], eval_dataset_args=None, eval_limit=None, eval_generation_config=None, extra_eval_args=None, tuner_type='full', use_galore=False, galore_target_modules=None, galore_rank=128, galore_update_proj_gap=50, galore_scale=1.0, galore_proj_type='std', galore_optim_per_parameter=False, galore_with_embedding=False, galore_quantization=False, galore_proj_quant=False, galore_proj_bits=4, galore_proj_group_size=256, galore_cos_threshold=0.4, galore_gamma_proj=2, galore_queue_size=5, lisa_activated_layers=0, lisa_step_interval=20, use_flash_ckpt=False)"}123456789101112131415161718192021222324{ "</tool_call>": 151658, "<tool_call>": 151657, "<|box_end|>": 151649, "<|box_start|>": 151648, "<|endoftext|>": 151643, "<|file_sep|>": 151664, "<|fim_middle|>": 151660, "<|fim_pad|>": 151662, "<|fim_prefix|>": 151659, "<|fim_suffix|>": 151661, "<|im_end|>": 151645, "<|im_start|>": 151644, "<|image_pad|>": 151655, "<|object_ref_end|>": 151647, "<|object_ref_start|>": 151646, "<|quad_end|>": 151651, "<|quad_start|>": 151650, "<|repo_name|>": 151663, "<|video_pad|>": 151656, "<|vision_end|>": 151653, "<|vision_pad|>": 151654, "<|vision_start|>": 151652}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395{ "output_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134", "overwrite_output_dir": false, "do_train": false, "do_eval": false, "do_predict": false, "eval_strategy": "no", "prediction_loss_only": false, "per_device_train_batch_size": 4, "per_device_eval_batch_size": 1, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 4, "eval_accumulation_steps": null, "eval_delay": 0, "torch_empty_cache_steps": null, "learning_rate": 5e-06, "weight_decay": 0.1, "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 3.0, "max_steps": -1, "lr_scheduler_type": "cosine", "lr_scheduler_kwargs": null, "warmup_ratio": 0.05, "warmup_steps": 0, "log_level": "passive", "log_level_replica": "warning", "log_on_each_node": true, "logging_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134/runs", "logging_strategy": "steps", "logging_first_step": true, "logging_steps": 5, "logging_nan_inf_filter": true, "save_strategy": "epoch", "save_steps": 500, "save_total_limit": null, "save_safetensors": true, "save_on_each_node": false, "save_only_model": false, "restore_callback_states_from_checkpoint": false, "no_cuda": false, "use_cpu": false, "use_mps_device": false, "seed": 42, "data_seed": 42, "jit_mode_eval": false, "bf16": true, "fp16": false, "fp16_opt_level": "O1", "half_precision_backend": "auto", "bf16_full_eval": false, "fp16_full_eval": false, "tf32": null, "local_rank": 0, "ddp_backend": null, "tpu_num_cores": null, "tpu_metrics_debug": false, "debug": null, "dataloader_drop_last": false, "eval_steps": null, "dataloader_num_workers": 8, "dataloader_prefetch_factor": null, "past_index": -1, "run_name": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134", "disable_tqdm": null, "remove_unused_columns": true, "label_names": null, "load_best_model_at_end": false, "metric_for_best_model": "loss", "greater_is_better": false, "ignore_data_skip": false, "fsdp": [], "fsdp_min_num_params": 0, "fsdp_config": null, "fsdp_transformer_layer_cls_to_wrap": null, "accelerator_config": { "dispatch_batches": false }, "parallelism_config": null, "deepspeed": { "fp16": { "enabled": "auto", "loss_scale": 0, "loss_scale_window": 1000, "initial_scale_power": 16, "hysteresis": 2, "min_loss_scale": 1 }, "bf16": { "enabled": "auto" }, "zero_optimization": { "stage": 2, "offload_optimizer": { "device": "none", "pin_memory": true }, "allgather_partitions": true, "allgather_bucket_size": 200000000.0, "overlap_comm": false, "reduce_scatter": true, "reduce_bucket_size": 200000000.0, "contiguous_gradients": true }, "gradient_accumulation_steps": "auto", "gradient_clipping": "auto", "steps_per_print": 2000, "train_batch_size": "auto", "train_micro_batch_size_per_gpu": "auto", "wall_clock_breakdown": false }, "label_smoothing_factor": 0.0, "optim": "adamw_torch_fused", "optim_args": null, "adafactor": false, "group_by_length": false, "length_column_name": "length", "report_to": [ "tensorboard" ], "project": "huggingface", "trackio_space_id": "trackio", "ddp_find_unused_parameters": null, "ddp_bucket_cap_mb": null, "ddp_broadcast_buffers": null, "dataloader_pin_memory": true, "dataloader_persistent_workers": false, "skip_memory_metrics": true, "use_legacy_prediction_loop": false, "push_to_hub": false, "resume_from_checkpoint": null, "hub_model_id": null, "hub_strategy": "every_save", "hub_token": null, "hub_private_repo": null, "hub_always_push": false, "hub_revision": null, "gradient_checkpointing": true, "gradient_checkpointing_kwargs": null, "include_inputs_for_metrics": false, "include_for_metrics": [], "eval_do_concat_batches": true, "fp16_backend": "auto", "push_to_hub_model_id": null, "push_to_hub_organization": null, "push_to_hub_token": null, "mp_parameters": "", "auto_find_batch_size": false, "full_determinism": false, "torchdynamo": null, "ray_scope": "last", "ddp_timeout": 18000000, "torch_compile": false, "torch_compile_backend": null, "torch_compile_mode": null, "include_tokens_per_second": false, "include_num_input_tokens_seen": false, "neftune_noise_alpha": null, "optim_target_modules": null, "batch_eval_metrics": false, "eval_on_start": false, "use_liger_kernel": false, "liger_kernel_config": null, "eval_use_gather_object": false, "average_tokens_across_devices": true, "sortish_sampler": false, "predict_with_generate": false, "generation_max_length": null, "generation_num_beams": null, "generation_config": null, "tuner_backend": "peft", "vit_gradient_checkpointing": null, "router_aux_loss_coef": 0.0, "enable_dft_loss": false, "enable_channel_loss": false, "check_model": true, "acc_strategy": "token", "train_dataloader_shuffle": true, "max_epochs": null, "aligner_lr": null, "vit_lr": null, "use_logits_to_keep": null, "ds3_gather_for_generation": true, "resume_only_model": false, "optimizer": null, "loss_type": null, "eval_metric": null, "callbacks": [], "early_stop_interval": null, "eval_use_evalscope": false, "eval_dataset": [], "eval_dataset_args": null, "eval_limit": null, "eval_generation_config": null, "extra_eval_args": null, "tuner_type": "full", "use_galore": false, "galore_target_modules": null, "galore_rank": 128, "galore_update_proj_gap": 50, "galore_scale": 1.0, "galore_proj_type": "std", "galore_optim_per_parameter": false, "galore_with_embedding": false, "galore_quantization": false, "galore_proj_quant": false, "galore_proj_bits": 4, "galore_proj_group_size": 256, "galore_cos_threshold": 0.4, "galore_gamma_proj": 2, "galore_queue_size": 5, "lisa_activated_layers": 0, "lisa_step_interval": 20, "use_flash_ckpt": false, "use_ray": false, "ray_exp_name": null, "device_groups": null, "model": "/data/liyc/Code/med_vl/lingshu_7b", "model_type": "qwen2_5_vl", "model_revision": null, "task_type": "causal_lm", "torch_dtype": "bfloat16", "attn_impl": "flash_attn", "experts_impl": null, "new_special_tokens": [], "num_labels": null, "problem_type": null, "rope_scaling": null, "device_map": null, "max_memory": {}, "max_model_len": null, "local_repo_path": null, "init_strategy": null, "template": "qwen2_5_vl", "system": null, "max_length": 4096, "truncation_strategy": "delete", "max_pixels": null, "agent_template": null, "norm_bbox": null, "use_chat_template": true, "padding_side": "right", "padding_free": false, "loss_scale": "med", "sequence_parallel_size": 1, "template_backend": "swift", "response_prefix": null, "enable_thinking": null, "add_non_thinking_prefix": true, "dataset": [ "/home/yuchong_li/KnowInject/make_oact_dataset/oact_swift_train.json" ], "val_dataset": [], "cached_dataset": [], "cached_val_dataset": [], "split_dataset_ratio": 0.0, "dataset_num_proc": 8, "load_from_cache_file": false, "dataset_shuffle": true, "val_dataset_shuffle": false, "streaming": false, "interleave_prob": null, "stopping_strategy": "first_exhausted", "shuffle_buffer_size": 1000, "download_mode": "reuse_dataset_if_exists", "columns": {}, "strict": false, "model_name": null, "model_author": null, "custom_dataset_info": [], "quant_method": null, "quant_bits": null, "hqq_axis": null, "bnb_4bit_compute_dtype": "bfloat16", "bnb_4bit_quant_type": "nf4", "bnb_4bit_use_double_quant": true, "bnb_4bit_quant_storage": null, "max_new_tokens": 64, "temperature": 0.0, "top_k": null, "top_p": null, "repetition_penalty": null, "num_beams": 1, "stream": false, "stop_words": [], "logprobs": false, "top_logprobs": null, "structured_outputs_regex": null, "train_type": "full", "adapters": [], "external_plugins": [], "custom_register_path": [], "model_kwargs": {}, "load_args": false, "load_data_args": false, "packing": false, "packing_length": null, "packing_num_proc": 1, "lazy_tokenize": true, "use_hf": false, "ignore_args_error": false, "use_swift_lora": false, "freeze_parameters": [], "freeze_parameters_regex": null, "freeze_parameters_ratio": 0.0, "trainable_parameters": [ "model.visual.merger" ], "trainable_parameters_regex": null, "freeze_llm": false, "freeze_vit": false, "freeze_aligner": false, "target_modules": [ "all-linear" ], "target_regex": null, "target_parameters": null, "modules_to_save": [], "lora_rank": 8, "lora_alpha": 32, "lora_dropout": 0.05, "lora_bias": "none", "lora_dtype": null, "lorap_lr_ratio": null, "use_rslora": false, "use_dora": false, "lora_ga_batch_size": 2, "lora_ga_iters": 2, "lora_ga_max_length": 1024, "lora_ga_direction": "ArB2r", "lora_ga_scale": "stable", "lora_ga_stable_gamma": 16, "init_weights": true, "fourier_n_frequency": 2000, "fourier_scaling": 300.0, "boft_block_size": 4, "boft_block_num": 0, "boft_n_butterfly_factor": 1, "boft_dropout": 0.0, "vera_rank": 256, "vera_projection_prng_key": 0, "vera_dropout": 0.0, "vera_d_initial": 0.1, "adapter_act": "gelu", "adapter_length": 128, "adalora_target_r": 8, "adalora_init_r": 12, "adalora_tinit": 0, "adalora_tfinal": 0, "adalora_deltaT": 1, "adalora_beta1": 0.85, "adalora_beta2": 0.85, "adalora_orth_reg_weight": 0.5, "llamapro_num_new_blocks": 4, "llamapro_num_groups": null, "reft_layer_key": null, "reft_layers": null, "reft_rank": 4, "reft_intervention_type": "LoreftIntervention", "reft_args": null, "swanlab_token": null, "swanlab_project": "ms-swift", "swanlab_workspace": null, "swanlab_exp_name": null, "swanlab_notification_method": null, "swanlab_webhook_url": null, "swanlab_secret": null, "swanlab_sender_email": null, "swanlab_receiver_email": null, "swanlab_smtp_server": null, "swanlab_smtp_port": null, "swanlab_email_language": "zh", "swanlab_mode": "cloud", "add_version": true, "create_checkpoint_symlink": false, "zero_hpz_partition_size": null, "deepspeed_autotp_size": null, "swift_version": "4.0.0.dev0", "ckpt_dir": null, "rank": 0, "global_world_size": 4, "local_world_size": 4, "model_suffix": "lingshu_7b", "model_info": "ModelInfo(model_type='qwen2_5_vl', model_dir='/data/liyc/Code/med_vl/lingshu_7b', torch_dtype=torch.bfloat16, max_model_len=128000, quant_method=None, quant_bits=None, rope_scaling={'mrope_section': [16, 24, 24], 'rope_type': 'default', 'type': 'default'}, is_moe_model=False, is_multimodal=True, config=None, task_type='causal_lm', num_labels=None)", "model_meta": "ModelMeta(model_type='qwen2_5_vl', model_groups=[ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', hf_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-RL', hf_model_id='XiaomiMiMo/MiMo-VL-7B-RL', model_path=None, ms_revision=None, hf_revision=None)], template='mimo_vl', ignore_patterns=None, requires=None, tags=[])], loader=<class 'swift.model.models.qwen.Qwen2_5VLLoader'>, template=None, model_arch=MultiModelKeys(arch_name='qwen2_vl', embedding=None, module_list=None, lm_head=None, q_proj=None, k_proj=None, v_proj=None, o_proj=None, attention=None, mlp=None, down_proj=None, qkv_proj=None, qk_proj=None, qa_proj=None, qb_proj=None, kv_proj=None, kva_proj=None, kvb_proj=None, language_model=['model.language_model', 'lm_head'], aligner=['model.visual.merger'], vision_tower=['model.visual'], generator=[]), architectures=['Qwen2_5_VLForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.49', 'qwen_vl_utils>=0.0.6', 'decord'], tags=['vision', 'video'])", "model_dir": "/data/liyc/Code/med_vl/lingshu_7b", "template_meta": "QwenTemplateMeta(template_type='qwen2_5_vl', prefix=[], prompt=['<|im_start|>user\\n{{QUERY}}<|im_end|>\\n<|im_start|>assistant\\n'], chat_sep=['<|im_end|>\\n'], suffix=['<|im_end|>\\n'], template_cls=<class 'swift.template.templates.qwen.Qwen2_5VLTemplate'>, system_prefix=['<|im_start|>system\\n{{SYSTEM}}<|im_end|>\\n'], default_system='You are a helpful assistant.', auto_add_bos=False, stop_words=['<|endoftext|>'], agent_template='hermes', is_thinking=False, thinking_prefix='', non_thinking_prefix='', history_thinking_prefix='')", "_val_dataset_exists": [], "hub": "<class 'swift.hub.hub.MSHub'>", "evaluation_strategy": "epoch", "training_args": "Seq2SeqTrainingArguments(output_dir='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134', overwrite_output_dir=False, do_train=False, do_eval=False, do_predict=False, eval_strategy=<IntervalStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=4, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=5e-06, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=3.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.05, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.EPOCH: 'epoch'>, save_steps=500, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=None, dataloader_num_workers=8, dataloader_prefetch_factor=2, past_index=-1, run_name='/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), parallelism_config=None, deepspeed={'fp16': {'enabled': 'auto', 'loss_scale': 0, 'loss_scale_window': 1000, 'initial_scale_power': 16, 'hysteresis': 2, 'min_loss_scale': 1}, 'bf16': {'enabled': 'auto'}, 'zero_optimization': {'stage': 2, 'offload_optimizer': {'device': 'none', 'pin_memory': True}, 'allgather_partitions': True, 'allgather_bucket_size': 200000000.0, 'overlap_comm': False, 'reduce_scatter': True, 'reduce_bucket_size': 200000000.0, 'contiguous_gradients': True}, 'gradient_accumulation_steps': 'auto', 'gradient_clipping': 'auto', 'steps_per_print': 2000, 'train_batch_size': 'auto', 'train_micro_batch_size_per_gpu': 'auto', 'wall_clock_breakdown': False}, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH_FUSED: 'adamw_torch_fused'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], project='huggingface', trackio_space_id='trackio', ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, hub_revision=None, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, liger_kernel_config=None, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, tuner_backend='peft', vit_gradient_checkpointing=True, router_aux_loss_coef=0.0, enable_dft_loss=False, enable_channel_loss=False, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, use_logits_to_keep=None, ds3_gather_for_generation=True, resume_only_model=False, optimizer=None, loss_type=None, eval_metric=None, callbacks=[], early_stop_interval=None, eval_use_evalscope=False, eval_dataset=[], eval_dataset_args=None, eval_limit=None, eval_generation_config=None, extra_eval_args=None, tuner_type='full', use_galore=False, galore_target_modules=None, galore_rank=128, galore_update_proj_gap=50, galore_scale=1.0, galore_proj_type='std', galore_optim_per_parameter=False, galore_with_embedding=False, galore_quantization=False, galore_proj_quant=False, galore_proj_bits=4, galore_proj_group_size=256, galore_cos_threshold=0.4, galore_gamma_proj=2, galore_queue_size=5, lisa_activated_layers=0, lisa_step_interval=20, use_flash_ckpt=False)"}1234567{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>systemYou are a helpful assistant.<|im_end|>{% endif %}<|im_start|>{{ message['role'] }}{% if message['content'] is string %}{{ message['content'] }}<|im_end|>{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant{% endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132{ "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "bos_token_id": 151643, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "image_token_id": 151655, "initializer_range": 0.02, "intermediate_size": 18944, "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": 32768, "text_config": { "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "initializer_range": 0.02, "intermediate_size": 18944, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl_text", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "pad_token_id": 151643, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": null, "use_cache": false, "use_sliding_window": false, "vision_token_id": 151654, "vocab_size": 152064 }, "tie_word_embeddings": false, "transformers_version": "4.57.6", "use_cache": false, "use_sliding_window": false, "video_token_id": 151656, "vision_config": { "depth": 32, "dtype": "bfloat16", "fullatt_block_indexes": [ 7, 15, 23, 31 ], "hidden_act": "silu", "hidden_size": 1280, "in_channels": 3, "in_chans": 3, "initializer_range": 0.02, "intermediate_size": 3420, "model_type": "qwen2_5_vl", "num_heads": 16, "out_hidden_size": 3584, "pad_token_id": 151643, "patch_size": 14, "spatial_merge_size": 2, "spatial_patch_size": 14, "temporal_patch_size": 2, "tokens_per_second": 2, "window_size": 112 }, "vision_end_token_id": 151653, "vision_start_token_id": 151652, "vision_token_id": 151654, "vocab_size": 152064}1234567891011121314{ "bos_token_id": 151643, "do_sample": true, "eos_token_id": [ 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.05, "temperature": 0.1, "top_k": 1, "top_p": 0.001, "transformers_version": "4.57.6"}1global_step5161234567891011121314151617181920212223242526272829{ "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "Qwen2VLImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "max_pixels": 12845056, "merge_size": 2, "min_pixels": 3136, "patch_size": 14, "processor_class": "Qwen2_5_VLProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 12845056, "shortest_edge": 3136 }, "temporal_patch_size": 2}12345678910111213141516171819202122232425262728293031{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151646": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151647": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151648": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151649": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151650": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151651": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151652": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151653": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151654": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151655": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151656": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151657": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151658": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151659": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151660": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151661": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151662": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151663": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151664": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 131072, "pad_token": "<|endoftext|>", "padding_side": "right", "processor_class": "Qwen2_5_VLProcessor", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 3.0, "eval_steps": 500, "global_step": 516, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.005822416302765648, "grad_norm": 12.850654602050781, "learning_rate": 1.9230769230769234e-07, "loss": 2.454665422439575, "step": 1, "token_acc": 0.5310546060858691 }, { "epoch": 0.02911208151382824, "grad_norm": 12.716009140014648, "learning_rate": 9.615384615384617e-07, "loss": 2.523975133895874, "step": 5, "token_acc": 0.518268504531722 }, { "epoch": 0.05822416302765648, "grad_norm": 11.335177421569824, "learning_rate": 1.9230769230769234e-06, "loss": 2.492396926879883, "step": 10, "token_acc": 0.5195826919787926 }, { "epoch": 0.08733624454148471, "grad_norm": 7.520497798919678, "learning_rate": 2.8846153846153845e-06, "loss": 2.380304718017578, "step": 15, "token_acc": 0.530146840700089 }, { "epoch": 0.11644832605531295, "grad_norm": 7.809173583984375, "learning_rate": 3.846153846153847e-06, "loss": 2.312163162231445, "step": 20, "token_acc": 0.5343360957978898 }, { "epoch": 0.14556040756914118, "grad_norm": 5.1450066566467285, "learning_rate": 4.807692307692308e-06, "loss": 2.225124168395996, "step": 25, "token_acc": 0.5435383664574049 }, { "epoch": 0.17467248908296942, "grad_norm": 6.896547317504883, "learning_rate": 4.9991779205767e-06, "loss": 2.1946741104125977, "step": 30, "token_acc": 0.5472346518704134 }, { "epoch": 0.20378457059679767, "grad_norm": 4.785802841186523, "learning_rate": 4.995839149503103e-06, "loss": 2.151557731628418, "step": 35, "token_acc": 0.5574804913564575 }, { "epoch": 0.2328966521106259, "grad_norm": 8.316496849060059, "learning_rate": 4.989935734988098e-06, "loss": 2.103257751464844, "step": 40, "token_acc": 0.5625976423803437 }, { "epoch": 0.26200873362445415, "grad_norm": 5.424784183502197, "learning_rate": 4.981473743189163e-06, "loss": 2.081839752197266, "step": 45, "token_acc": 0.5626333875926931 }, { "epoch": 0.29112081513828236, "grad_norm": 5.434144973754883, "learning_rate": 4.97046186937489e-06, "loss": 2.0812015533447266, "step": 50, "token_acc": 0.5654650298935154 }, { "epoch": 0.32023289665211063, "grad_norm": 4.716914653778076, "learning_rate": 4.95691142899001e-06, "loss": 1.9627498626708983, "step": 55, "token_acc": 0.5785645806472941 }, { "epoch": 0.34934497816593885, "grad_norm": 5.251248359680176, "learning_rate": 4.940836346028011e-06, "loss": 2.0215423583984373, "step": 60, "token_acc": 0.5737796373779638 }, { "epoch": 0.3784570596797671, "grad_norm": 4.974453449249268, "learning_rate": 4.9222531387232885e-06, "loss": 1.9647777557373047, "step": 65, "token_acc": 0.5825641025641025 }, { "epoch": 0.40756914119359533, "grad_norm": 5.801396369934082, "learning_rate": 4.901180902577549e-06, "loss": 1.956728744506836, "step": 70, "token_acc": 0.5849651682667314 }, { "epoch": 0.4366812227074236, "grad_norm": 5.372264385223389, "learning_rate": 4.8776412907378845e-06, "loss": 1.9090400695800782, "step": 75, "token_acc": 0.594345584566772 }, { "epoch": 0.4657933042212518, "grad_norm": 5.81269645690918, "learning_rate": 4.851658491746707e-06, "loss": 1.9607868194580078, "step": 80, "token_acc": 0.5861172976985894 }, { "epoch": 0.4949053857350801, "grad_norm": 5.661822319030762, "learning_rate": 4.82325920468638e-06, "loss": 1.9042402267456056, "step": 85, "token_acc": 0.5901494486918437 }, { "epoch": 0.5240174672489083, "grad_norm": 5.0820794105529785, "learning_rate": 4.7924726117441135e-06, "loss": 1.8616498947143554, "step": 90, "token_acc": 0.6008382549056963 }, { "epoch": 0.5531295487627366, "grad_norm": 7.830063819885254, "learning_rate": 4.7593303482252835e-06, "loss": 1.8036590576171876, "step": 95, "token_acc": 0.6072764485849389 }, { "epoch": 0.5822416302765647, "grad_norm": 4.940858364105225, "learning_rate": 4.72386647004603e-06, "loss": 1.7912891387939454, "step": 100, "token_acc": 0.6147977544263711 }, { "epoch": 0.611353711790393, "grad_norm": 5.469075679779053, "learning_rate": 4.686117418738489e-06, "loss": 1.6950885772705078, "step": 105, "token_acc": 0.6338609307359307 }, { "epoch": 0.6404657933042213, "grad_norm": 5.417870044708252, "learning_rate": 4.646121984004666e-06, "loss": 1.7326389312744142, "step": 110, "token_acc": 0.6224619059683666 }, { "epoch": 0.6695778748180495, "grad_norm": 5.816676139831543, "learning_rate": 4.6039212638573835e-06, "loss": 1.736791229248047, "step": 115, "token_acc": 0.6193236358266263 }, { "epoch": 0.6986899563318777, "grad_norm": 8.974054336547852, "learning_rate": 4.559558622389304e-06, "loss": 1.7224870681762696, "step": 120, "token_acc": 0.6253116011505273 }, { "epoch": 0.727802037845706, "grad_norm": 5.396500587463379, "learning_rate": 4.513079645213391e-06, "loss": 1.6400924682617188, "step": 125, "token_acc": 0.6435410168999782 }, { "epoch": 0.7569141193595342, "grad_norm": 5.111563682556152, "learning_rate": 4.464532092620607e-06, "loss": 1.642887496948242, "step": 130, "token_acc": 0.6425811155668976 }, { "epoch": 0.7860262008733624, "grad_norm": 4.7452616691589355, "learning_rate": 4.413965850502987e-06, "loss": 1.6120710372924805, "step": 135, "token_acc": 0.6442836979534228 }, { "epoch": 0.8151382823871907, "grad_norm": 7.327229022979736, "learning_rate": 4.361432879092518e-06, "loss": 1.60766544342041, "step": 140, "token_acc": 0.6519052117776728 }, { "epoch": 0.8442503639010189, "grad_norm": 6.481619834899902, "learning_rate": 4.3069871595684795e-06, "loss": 1.4958037376403808, "step": 145, "token_acc": 0.6678836074462317 }, { "epoch": 0.8733624454148472, "grad_norm": 5.63532829284668, "learning_rate": 4.2506846385881375e-06, "loss": 1.493386459350586, "step": 150, "token_acc": 0.6675231243576567 }, { "epoch": 0.9024745269286754, "grad_norm": 6.233198642730713, "learning_rate": 4.192583170797775e-06, "loss": 1.556870460510254, "step": 155, "token_acc": 0.6563979233470759 }, { "epoch": 0.9315866084425036, "grad_norm": 6.151444435119629, "learning_rate": 4.132742459383122e-06, "loss": 1.5613679885864258, "step": 160, "token_acc": 0.6578236641482342 }, { "epoch": 0.9606986899563319, "grad_norm": 4.168930530548096, "learning_rate": 4.071223994720309e-06, "loss": 1.5111486434936523, "step": 165, "token_acc": 0.669480384695219 }, { "epoch": 0.9898107714701602, "grad_norm": 10.89025592803955, "learning_rate": 4.008090991190341e-06, "loss": 1.4982393264770508, "step": 170, "token_acc": 0.6730306097518411 }, { "epoch": 1.017467248908297, "grad_norm": 5.570936679840088, "learning_rate": 3.943408322222049e-06, "loss": 1.3179834365844727, "step": 175, "token_acc": 0.7026223776223777 }, { "epoch": 1.0465793304221251, "grad_norm": 5.788726329803467, "learning_rate": 3.8772424536302565e-06, "loss": 1.135370922088623, "step": 180, "token_acc": 0.7381052190316495 }, { "epoch": 1.0756914119359535, "grad_norm": 5.423781394958496, "learning_rate": 3.8096613753176635e-06, "loss": 1.051245880126953, "step": 185, "token_acc": 0.7561599663523886 }, { "epoch": 1.1048034934497817, "grad_norm": 5.9309492111206055, "learning_rate": 3.740734531410626e-06, "loss": 1.074899673461914, "step": 190, "token_acc": 0.7532562768446416 }, { "epoch": 1.1339155749636098, "grad_norm": 5.416075706481934, "learning_rate": 3.670532748900615e-06, "loss": 1.0884708404541015, "step": 195, "token_acc": 0.7513996592134089 }, { "epoch": 1.1630276564774382, "grad_norm": 5.948403835296631, "learning_rate": 3.599128164864706e-06, "loss": 1.0701178550720214, "step": 200, "token_acc": 0.7541812524309607 }, { "epoch": 1.1921397379912664, "grad_norm": 5.5880126953125, "learning_rate": 3.5265941523398455e-06, "loss": 1.011543083190918, "step": 205, "token_acc": 0.7681535454060778 }, { "epoch": 1.2212518195050945, "grad_norm": 5.380934715270996, "learning_rate": 3.4530052449271044e-06, "loss": 0.9172746658325195, "step": 210, "token_acc": 0.7903572057012141 }, { "epoch": 1.250363901018923, "grad_norm": 4.9763970375061035, "learning_rate": 3.3784370602033572e-06, "loss": 1.059334659576416, "step": 215, "token_acc": 0.7594648345687941 }, { "epoch": 1.279475982532751, "grad_norm": 4.896977424621582, "learning_rate": 3.3029662220191146e-06, "loss": 1.04664945602417, "step": 220, "token_acc": 0.7646936728128135 }, { "epoch": 1.3085880640465795, "grad_norm": 7.946894645690918, "learning_rate": 3.2266702817623348e-06, "loss": 0.9160286903381347, "step": 225, "token_acc": 0.7880985495728194 }, { "epoch": 1.3377001455604076, "grad_norm": 6.647147178649902, "learning_rate": 3.1496276386691327e-06, "loss": 0.958730411529541, "step": 230, "token_acc": 0.7797412432944146 }, { "epoch": 1.3668122270742358, "grad_norm": 5.387049198150635, "learning_rate": 3.071917459263264e-06, "loss": 0.9420900344848633, "step": 235, "token_acc": 0.784958277643319 }, { "epoch": 1.395924308588064, "grad_norm": 6.53986120223999, "learning_rate": 2.993619596007168e-06, "loss": 1.005801010131836, "step": 240, "token_acc": 0.7699962588851478 }, { "epoch": 1.4250363901018923, "grad_norm": 6.052555561065674, "learning_rate": 2.91481450524817e-06, "loss": 0.9099841117858887, "step": 245, "token_acc": 0.7910920611256057 }, { "epoch": 1.4541484716157205, "grad_norm": 6.597017765045166, "learning_rate": 2.835583164544139e-06, "loss": 0.8685108184814453, "step": 250, "token_acc": 0.8040913481440596 }, { "epoch": 1.4832605531295489, "grad_norm": 5.4486541748046875, "learning_rate": 2.7560069894535783e-06, "loss": 0.866248607635498, "step": 255, "token_acc": 0.802736362041747 }, { "epoch": 1.512372634643377, "grad_norm": 6.004639148712158, "learning_rate": 2.676167749875635e-06, "loss": 0.9167881011962891, "step": 260, "token_acc": 0.7885353110956852 }, { "epoch": 1.5414847161572052, "grad_norm": 7.396369934082031, "learning_rate": 2.596147486025996e-06, "loss": 0.9588225364685059, "step": 265, "token_acc": 0.7829510703363914 }, { "epoch": 1.5705967976710333, "grad_norm": 6.103322982788086, "learning_rate": 2.516028424135028e-06, "loss": 0.8872182846069336, "step": 270, "token_acc": 0.8001015817733276 }, { "epoch": 1.5997088791848617, "grad_norm": 5.664829730987549, "learning_rate": 2.4358928919547616e-06, "loss": 0.9569753646850586, "step": 275, "token_acc": 0.786048913644915 }, { "epoch": 1.62882096069869, "grad_norm": 5.888493061065674, "learning_rate": 2.3558232341615645e-06, "loss": 0.8622013092041015, "step": 280, "token_acc": 0.8069904644302669 }, { "epoch": 1.6579330422125182, "grad_norm": 10.406943321228027, "learning_rate": 2.2759017277414165e-06, "loss": 0.8290360450744629, "step": 285, "token_acc": 0.8158601669114224 }, { "epoch": 1.6870451237263464, "grad_norm": 5.786866664886475, "learning_rate": 2.196210497444749e-06, "loss": 0.8066736221313476, "step": 290, "token_acc": 0.817635692956262 }, { "epoch": 1.7161572052401746, "grad_norm": 5.04568338394165, "learning_rate": 2.11683143139771e-06, "loss": 0.8235368728637695, "step": 295, "token_acc": 0.8140715836660363 }, { "epoch": 1.745269286754003, "grad_norm": 5.553800582885742, "learning_rate": 2.037846096956578e-06, "loss": 0.766651201248169, "step": 300, "token_acc": 0.8274434996281806 }, { "epoch": 1.774381368267831, "grad_norm": 6.91654634475708, "learning_rate": 1.9593356568917916e-06, "loss": 0.8463640213012695, "step": 305, "token_acc": 0.8112849868044456 }, { "epoch": 1.8034934497816595, "grad_norm": 5.39693546295166, "learning_rate": 1.8813807859877147e-06, "loss": 0.7624001502990723, "step": 310, "token_acc": 0.8286364824008062 }, { "epoch": 1.8326055312954876, "grad_norm": 8.458457946777344, "learning_rate": 1.8040615881438425e-06, "loss": 0.790094518661499, "step": 315, "token_acc": 0.8265703971119134 }, { "epoch": 1.8617176128093158, "grad_norm": 5.189150333404541, "learning_rate": 1.7274575140626318e-06, "loss": 0.7208592414855957, "step": 320, "token_acc": 0.8382569896729157 }, { "epoch": 1.890829694323144, "grad_norm": 7.540235996246338, "learning_rate": 1.6516472796085314e-06, "loss": 0.7733631134033203, "step": 325, "token_acc": 0.82744901370779 }, { "epoch": 1.9199417758369723, "grad_norm": 5.671085834503174, "learning_rate": 1.5767087849221097e-06, "loss": 0.7800682544708252, "step": 330, "token_acc": 0.8283469651312957 }, { "epoch": 1.9490538573508007, "grad_norm": 5.843799114227295, "learning_rate": 1.502719034372396e-06, "loss": 0.8454849243164062, "step": 335, "token_acc": 0.8131075914800655 }, { "epoch": 1.9781659388646289, "grad_norm": 5.267298698425293, "learning_rate": 1.429754057429687e-06, "loss": 0.8016707420349121, "step": 340, "token_acc": 0.8252998988293105 }, { "epoch": 2.005822416302766, "grad_norm": 6.113725662231445, "learning_rate": 1.3578888305401208e-06, "loss": 0.7576042175292969, "step": 345, "token_acc": 0.8345017526289434 }, { "epoch": 2.034934497816594, "grad_norm": 5.120820045471191, "learning_rate": 1.2871972000823197e-06, "loss": 0.43506641387939454, "step": 350, "token_acc": 0.9009345794392524 }, { "epoch": 2.064046579330422, "grad_norm": 6.142981052398682, "learning_rate": 1.217751806485235e-06, "loss": 0.4668084144592285, "step": 355, "token_acc": 0.8929100457850795 }, { "epoch": 2.0931586608442503, "grad_norm": 5.514519691467285, "learning_rate": 1.1496240095852002e-06, "loss": 0.4589561462402344, "step": 360, "token_acc": 0.8936100847641817 }, { "epoch": 2.1222707423580784, "grad_norm": 8.801750183105469, "learning_rate": 1.082883815298876e-06, "loss": 0.5114217758178711, "step": 365, "token_acc": 0.8826918229935549 }, { "epoch": 2.151382823871907, "grad_norm": 4.809569835662842, "learning_rate": 1.0175998036874357e-06, "loss": 0.4250779151916504, "step": 370, "token_acc": 0.9036886680198782 }, { "epoch": 2.180494905385735, "grad_norm": 5.487710475921631, "learning_rate": 9.538390584859213e-07, "loss": 0.5023666858673096, "step": 375, "token_acc": 0.8829527745782234 }, { "epoch": 2.2096069868995634, "grad_norm": 4.983538627624512, "learning_rate": 8.916670981701656e-07, "loss": 0.45063247680664065, "step": 380, "token_acc": 0.8944811304615595 }, { "epoch": 2.2387190684133915, "grad_norm": 5.867532253265381, "learning_rate": 8.311478086321301e-07, "loss": 0.4749335289001465, "step": 385, "token_acc": 0.8922104360870031 }, { "epoch": 2.2678311499272197, "grad_norm": 5.2468461990356445, "learning_rate": 7.723433775328385e-07, "loss": 0.47774496078491213, "step": 390, "token_acc": 0.8901422265816576 }, { "epoch": 2.2969432314410483, "grad_norm": 5.572385787963867, "learning_rate": 7.153142304003419e-07, "loss": 0.4905535697937012, "step": 395, "token_acc": 0.8861419823089136 }, { "epoch": 2.3260553129548764, "grad_norm": 5.2140350341796875, "learning_rate": 6.601189685384127e-07, "loss": 0.41849164962768554, "step": 400, "token_acc": 0.9043391188251001 }, { "epoch": 2.3551673944687046, "grad_norm": 5.780233860015869, "learning_rate": 6.068143088097372e-07, "loss": 0.5406233310699463, "step": 405, "token_acc": 0.8775733220530175 }, { "epoch": 2.3842794759825328, "grad_norm": 4.20973014831543, "learning_rate": 5.554550253555066e-07, "loss": 0.3849472999572754, "step": 410, "token_acc": 0.9123086388476711 }, { "epoch": 2.413391557496361, "grad_norm": 9.252166748046875, "learning_rate": 5.060938933112891e-07, "loss": 0.47623023986816404, "step": 415, "token_acc": 0.8895471049111409 }, { "epoch": 2.442503639010189, "grad_norm": 5.590204238891602, "learning_rate": 4.5878163457700327e-07, "loss": 0.4541177749633789, "step": 420, "token_acc": 0.8942202835332607 }, { "epoch": 2.4716157205240172, "grad_norm": 5.783469200134277, "learning_rate": 4.1356686569674344e-07, "loss": 0.41132526397705077, "step": 425, "token_acc": 0.9065995137200417 }, { "epoch": 2.500727802037846, "grad_norm": 5.60521936416626, "learning_rate": 3.7049604790198976e-07, "loss": 0.41647953987121583, "step": 430, "token_acc": 0.904679187927478 }, { "epoch": 2.529839883551674, "grad_norm": 5.710031986236572, "learning_rate": 3.2961343936955384e-07, "loss": 0.45548386573791505, "step": 435, "token_acc": 0.8963591775136767 }, { "epoch": 2.558951965065502, "grad_norm": 5.978435039520264, "learning_rate": 2.9096104974331186e-07, "loss": 0.4118354797363281, "step": 440, "token_acc": 0.907419172666949 }, { "epoch": 2.5880640465793303, "grad_norm": 4.585266590118408, "learning_rate": 2.5457859696645245e-07, "loss": 0.4864328384399414, "step": 445, "token_acc": 0.8896690437008594 }, { "epoch": 2.617176128093159, "grad_norm": 7.857095718383789, "learning_rate": 2.205034664686076e-07, "loss": 0.4347240447998047, "step": 450, "token_acc": 0.9013404463652632 }, { "epoch": 2.646288209606987, "grad_norm": 3.661395788192749, "learning_rate": 1.887706727497965e-07, "loss": 0.3975083827972412, "step": 455, "token_acc": 0.9107605121388092 }, { "epoch": 2.6754002911208152, "grad_norm": 4.804342269897461, "learning_rate": 1.59412823400657e-07, "loss": 0.41417665481567384, "step": 460, "token_acc": 0.9040742466047945 }, { "epoch": 2.7045123726346434, "grad_norm": 6.596432209014893, "learning_rate": 1.3246008559594708e-07, "loss": 0.4573943614959717, "step": 465, "token_acc": 0.8967748933400824 }, { "epoch": 2.7336244541484715, "grad_norm": 5.654616355895996, "learning_rate": 1.0794015509572819e-07, "loss": 0.42383813858032227, "step": 470, "token_acc": 0.9019675765553554 }, { "epoch": 2.7627365356622997, "grad_norm": 4.914017677307129, "learning_rate": 8.587822778610284e-08, "loss": 0.4487770080566406, "step": 475, "token_acc": 0.8988713822773494 }, { "epoch": 2.791848617176128, "grad_norm": 5.140893459320068, "learning_rate": 6.629697378873839e-08, "loss": 0.4174795150756836, "step": 480, "token_acc": 0.9032472997615374 }, { "epoch": 2.8209606986899565, "grad_norm": 6.080660820007324, "learning_rate": 4.9216514165781885e-08, "loss": 0.49002690315246583, "step": 485, "token_acc": 0.893145232934153 }, { "epoch": 2.8500727802037846, "grad_norm": 5.036385536193848, "learning_rate": 3.4654400244112654e-08, "loss": 0.45543198585510253, "step": 490, "token_acc": 0.8981034237817872 }, { "epoch": 2.879184861717613, "grad_norm": 4.650540828704834, "learning_rate": 2.262559558016325e-08, "loss": 0.36923680305480955, "step": 495, "token_acc": 0.9176950569829389 }, { "epoch": 2.908296943231441, "grad_norm": 5.009263038635254, "learning_rate": 1.3142460583856487e-08, "loss": 0.4376565456390381, "step": 500, "token_acc": 0.8988862837045721 }, { "epoch": 2.9374090247452695, "grad_norm": 7.266555309295654, "learning_rate": 6.214739817448634e-09, "loss": 0.4384781837463379, "step": 505, "token_acc": 0.9012561441835063 }, { "epoch": 2.9665211062590977, "grad_norm": 6.011190414428711, "learning_rate": 1.8495519823308329e-09, "loss": 0.4468648910522461, "step": 510, "token_acc": 0.8983688365857292 }, { "epoch": 2.995633187772926, "grad_norm": 4.685535907745361, "learning_rate": 5.138260408488194e-11, "loss": 0.4475531578063965, "step": 515, "token_acc": 0.8966089547734902 } ], "logging_steps": 5, "max_steps": 516, "num_input_tokens_seen": 0, "num_train_epochs": 3, "save_steps": 500, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": true }, "attributes": {} } }, "total_flos": 1.1267661475222651e+18, "train_batch_size": 4, "trial_name": null, "trial_params": null}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "crop_size": null, "data_format": "channels_first", "default_to_square": true, "device": null, "do_center_crop": null, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": false, "fps": null, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "input_data_format": null, "max_frames": 768, "max_pixels": 12845056, "merge_size": 2, "min_frames": 4, "min_pixels": 3136, "num_frames": null, "pad_size": null, "patch_size": 14, "processor_class": "Qwen2_5_VLProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "size": { "longest_edge": 12845056, "shortest_edge": 3136 }, "temporal_patch_size": 2, "video_metadata": null, "video_processor_type": "Qwen2VLVideoProcessor"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106{"loss": 2.45466542, "grad_norm": 12.8506546, "learning_rate": 1.9e-07, "token_acc": 0.53105461, "epoch": 0.00582242, "global_step/max_steps": "1/516", "percentage": "0.19%", "elapsed_time": "21s", "remaining_time": "3h 6m 30s", "memory(GiB)": 60.69, "train_speed(iter/s)": 0.04602}{"loss": 2.52397513, "grad_norm": 12.71600914, "learning_rate": 9.6e-07, "token_acc": 0.5182685, "epoch": 0.02911208, "global_step/max_steps": "5/516", "percentage": "0.97%", "elapsed_time": "1m 14s", "remaining_time": "2h 7m 29s", "memory(GiB)": 60.69, "train_speed(iter/s)": 0.066801}{"loss": 2.49239693, "grad_norm": 11.33517742, "learning_rate": 1.92e-06, "token_acc": 0.51958269, "epoch": 0.05822416, "global_step/max_steps": "10/516", "percentage": "1.94%", "elapsed_time": "2m 20s", "remaining_time": "1h 58m 51s", "memory(GiB)": 60.69, "train_speed(iter/s)": 0.070949}{"loss": 2.38030472, "grad_norm": 7.5204978, "learning_rate": 2.88e-06, "token_acc": 0.53014684, "epoch": 0.08733624, "global_step/max_steps": "15/516", "percentage": "2.91%", "elapsed_time": "3m 26s", "remaining_time": "1h 54m 54s", "memory(GiB)": 60.69, "train_speed(iter/s)": 0.072665}{"loss": 2.31216316, "grad_norm": 7.80917358, "learning_rate": 3.85e-06, "token_acc": 0.5343361, "epoch": 0.11644833, "global_step/max_steps": "20/516", "percentage": "3.88%", "elapsed_time": "4m 33s", "remaining_time": "1h 53m 3s", "memory(GiB)": 60.69, "train_speed(iter/s)": 0.073118}{"loss": 2.22512417, "grad_norm": 5.14500666, "learning_rate": 4.81e-06, "token_acc": 0.54353837, "epoch": 0.14556041, "global_step/max_steps": "25/516", "percentage": "4.84%", "elapsed_time": "5m 43s", "remaining_time": "1h 52m 19s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072856}{"loss": 2.19467411, "grad_norm": 6.89654732, "learning_rate": 5e-06, "token_acc": 0.54723465, "epoch": 0.17467249, "global_step/max_steps": "30/516", "percentage": "5.81%", "elapsed_time": "6m 49s", "remaining_time": "1h 50m 37s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07322}{"loss": 2.15155773, "grad_norm": 4.78580284, "learning_rate": 5e-06, "token_acc": 0.55748049, "epoch": 0.20378457, "global_step/max_steps": "35/516", "percentage": "6.78%", "elapsed_time": "7m 55s", "remaining_time": "1h 48m 50s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07366}{"loss": 2.10325775, "grad_norm": 8.31649685, "learning_rate": 4.99e-06, "token_acc": 0.56259764, "epoch": 0.23289665, "global_step/max_steps": "40/516", "percentage": "7.75%", "elapsed_time": "9m 3s", "remaining_time": "1h 47m 48s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.073589}{"loss": 2.08183975, "grad_norm": 5.42478418, "learning_rate": 4.98e-06, "token_acc": 0.56263339, "epoch": 0.26200873, "global_step/max_steps": "45/516", "percentage": "8.72%", "elapsed_time": "10m 9s", "remaining_time": "1h 46m 18s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.073844}{"loss": 2.08120155, "grad_norm": 5.43414497, "learning_rate": 4.97e-06, "token_acc": 0.56546503, "epoch": 0.29112082, "global_step/max_steps": "50/516", "percentage": "9.69%", "elapsed_time": "11m 14s", "remaining_time": "1h 44m 50s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074081}{"loss": 1.96274986, "grad_norm": 4.71691465, "learning_rate": 4.96e-06, "token_acc": 0.57856458, "epoch": 0.3202329, "global_step/max_steps": "55/516", "percentage": "10.66%", "elapsed_time": "12m 21s", "remaining_time": "1h 43m 34s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074187}{"loss": 2.02154236, "grad_norm": 5.25124836, "learning_rate": 4.94e-06, "token_acc": 0.57377964, "epoch": 0.34934498, "global_step/max_steps": "60/516", "percentage": "11.63%", "elapsed_time": "13m 28s", "remaining_time": "1h 42m 27s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074171}{"loss": 1.96477776, "grad_norm": 4.97445345, "learning_rate": 4.92e-06, "token_acc": 0.5825641, "epoch": 0.37845706, "global_step/max_steps": "65/516", "percentage": "12.60%", "elapsed_time": "14m 35s", "remaining_time": "1h 41m 13s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074259}{"loss": 1.95672874, "grad_norm": 5.80139637, "learning_rate": 4.9e-06, "token_acc": 0.58496517, "epoch": 0.40756914, "global_step/max_steps": "70/516", "percentage": "13.57%", "elapsed_time": "15m 41s", "remaining_time": "1h 40m 0s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074323}{"loss": 1.90904007, "grad_norm": 5.37226439, "learning_rate": 4.88e-06, "token_acc": 0.59434558, "epoch": 0.43668122, "global_step/max_steps": "75/516", "percentage": "14.53%", "elapsed_time": "16m 48s", "remaining_time": "1h 38m 50s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074366}{"loss": 1.96078682, "grad_norm": 5.81269646, "learning_rate": 4.85e-06, "token_acc": 0.5861173, "epoch": 0.4657933, "global_step/max_steps": "80/516", "percentage": "15.50%", "elapsed_time": "17m 55s", "remaining_time": "1h 37m 41s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074382}{"loss": 1.90424023, "grad_norm": 5.66182232, "learning_rate": 4.82e-06, "token_acc": 0.59014945, "epoch": 0.49490539, "global_step/max_steps": "85/516", "percentage": "16.47%", "elapsed_time": "19m 0s", "remaining_time": "1h 36m 23s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074528}{"loss": 1.86164989, "grad_norm": 5.08207941, "learning_rate": 4.79e-06, "token_acc": 0.60083825, "epoch": 0.52401747, "global_step/max_steps": "90/516", "percentage": "17.44%", "elapsed_time": "20m 6s", "remaining_time": "1h 35m 11s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074581}{"loss": 1.80365906, "grad_norm": 7.83006382, "learning_rate": 4.76e-06, "token_acc": 0.60727645, "epoch": 0.55312955, "global_step/max_steps": "95/516", "percentage": "18.41%", "elapsed_time": "21m 13s", "remaining_time": "1h 34m 5s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074572}{"loss": 1.79128914, "grad_norm": 4.94085836, "learning_rate": 4.72e-06, "token_acc": 0.61479775, "epoch": 0.58224163, "global_step/max_steps": "100/516", "percentage": "19.38%", "elapsed_time": "22m 19s", "remaining_time": "1h 32m 53s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074632}{"loss": 1.69508858, "grad_norm": 5.46907568, "learning_rate": 4.69e-06, "token_acc": 0.63386093, "epoch": 0.61135371, "global_step/max_steps": "105/516", "percentage": "20.35%", "elapsed_time": "23m 27s", "remaining_time": "1h 31m 48s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074607}{"loss": 1.73263893, "grad_norm": 5.41787004, "learning_rate": 4.65e-06, "token_acc": 0.62246191, "epoch": 0.64046579, "global_step/max_steps": "110/516", "percentage": "21.32%", "elapsed_time": "24m 33s", "remaining_time": "1h 30m 37s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074665}{"loss": 1.73679123, "grad_norm": 5.81667614, "learning_rate": 4.6e-06, "token_acc": 0.61932364, "epoch": 0.66957787, "global_step/max_steps": "115/516", "percentage": "22.29%", "elapsed_time": "25m 40s", "remaining_time": "1h 29m 29s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074675}{"loss": 1.72248707, "grad_norm": 8.97405434, "learning_rate": 4.56e-06, "token_acc": 0.6253116, "epoch": 0.69868996, "global_step/max_steps": "120/516", "percentage": "23.26%", "elapsed_time": "26m 45s", "remaining_time": "1h 28m 17s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074758}{"loss": 1.64009247, "grad_norm": 5.39650059, "learning_rate": 4.51e-06, "token_acc": 0.64354102, "epoch": 0.72780204, "global_step/max_steps": "125/516", "percentage": "24.22%", "elapsed_time": "27m 50s", "remaining_time": "1h 27m 6s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074817}{"loss": 1.6428875, "grad_norm": 5.11156368, "learning_rate": 4.46e-06, "token_acc": 0.64258112, "epoch": 0.75691412, "global_step/max_steps": "130/516", "percentage": "25.19%", "elapsed_time": "28m 56s", "remaining_time": "1h 25m 56s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074861}{"loss": 1.61207104, "grad_norm": 4.74526167, "learning_rate": 4.41e-06, "token_acc": 0.6442837, "epoch": 0.7860262, "global_step/max_steps": "135/516", "percentage": "26.16%", "elapsed_time": "30m 3s", "remaining_time": "1h 24m 50s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074842}{"loss": 1.60766544, "grad_norm": 7.32722902, "learning_rate": 4.36e-06, "token_acc": 0.65190521, "epoch": 0.81513828, "global_step/max_steps": "140/516", "percentage": "27.13%", "elapsed_time": "31m 9s", "remaining_time": "1h 23m 41s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074885}{"loss": 1.49580374, "grad_norm": 6.48161983, "learning_rate": 4.31e-06, "token_acc": 0.66788361, "epoch": 0.84425036, "global_step/max_steps": "145/516", "percentage": "28.10%", "elapsed_time": "32m 15s", "remaining_time": "1h 22m 30s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074934}{"loss": 1.49338646, "grad_norm": 5.63532829, "learning_rate": 4.25e-06, "token_acc": 0.66752312, "epoch": 0.87336245, "global_step/max_steps": "150/516", "percentage": "29.07%", "elapsed_time": "33m 23s", "remaining_time": "1h 21m 28s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074875}{"loss": 1.55687046, "grad_norm": 6.23319864, "learning_rate": 4.19e-06, "token_acc": 0.65639792, "epoch": 0.90247453, "global_step/max_steps": "155/516", "percentage": "30.04%", "elapsed_time": "34m 29s", "remaining_time": "1h 20m 20s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074882}{"loss": 1.56136799, "grad_norm": 6.15144444, "learning_rate": 4.13e-06, "token_acc": 0.65782366, "epoch": 0.93158661, "global_step/max_steps": "160/516", "percentage": "31.01%", "elapsed_time": "35m 36s", "remaining_time": "1h 19m 14s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074877}{"loss": 1.51114864, "grad_norm": 4.16893053, "learning_rate": 4.07e-06, "token_acc": 0.66948038, "epoch": 0.96069869, "global_step/max_steps": "165/516", "percentage": "31.98%", "elapsed_time": "36m 43s", "remaining_time": "1h 18m 7s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074883}{"loss": 1.49823933, "grad_norm": 10.89025593, "learning_rate": 4.01e-06, "token_acc": 0.67303061, "epoch": 0.98981077, "global_step/max_steps": "170/516", "percentage": "32.95%", "elapsed_time": "37m 49s", "remaining_time": "1h 16m 58s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.074913}{"loss": 1.31798344, "grad_norm": 5.57093668, "learning_rate": 3.94e-06, "token_acc": 0.70262238, "epoch": 1.01746725, "global_step/max_steps": "175/516", "percentage": "33.91%", "elapsed_time": "40m 43s", "remaining_time": "1h 19m 21s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07162}{"loss": 1.13537092, "grad_norm": 5.78872633, "learning_rate": 3.88e-06, "token_acc": 0.73810522, "epoch": 1.04657933, "global_step/max_steps": "180/516", "percentage": "34.88%", "elapsed_time": "41m 52s", "remaining_time": "1h 18m 9s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071652}{"loss": 1.05124588, "grad_norm": 5.42378139, "learning_rate": 3.81e-06, "token_acc": 0.75615997, "epoch": 1.07569141, "global_step/max_steps": "185/516", "percentage": "35.85%", "elapsed_time": "42m 59s", "remaining_time": "1h 16m 54s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071731}{"loss": 1.07489967, "grad_norm": 5.93094921, "learning_rate": 3.74e-06, "token_acc": 0.75325628, "epoch": 1.10480349, "global_step/max_steps": "190/516", "percentage": "36.82%", "elapsed_time": "44m 5s", "remaining_time": "1h 15m 39s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071814}{"loss": 1.08847084, "grad_norm": 5.41607571, "learning_rate": 3.67e-06, "token_acc": 0.75139966, "epoch": 1.13391557, "global_step/max_steps": "195/516", "percentage": "37.79%", "elapsed_time": "45m 12s", "remaining_time": "1h 14m 25s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071888}{"loss": 1.07011786, "grad_norm": 5.94840384, "learning_rate": 3.6e-06, "token_acc": 0.75418125, "epoch": 1.16302766, "global_step/max_steps": "200/516", "percentage": "38.76%", "elapsed_time": "46m 18s", "remaining_time": "1h 13m 10s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071979}{"loss": 1.01154308, "grad_norm": 5.5880127, "learning_rate": 3.53e-06, "token_acc": 0.76815355, "epoch": 1.19213974, "global_step/max_steps": "205/516", "percentage": "39.73%", "elapsed_time": "47m 25s", "remaining_time": "1h 11m 56s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072046}{"loss": 0.91727467, "grad_norm": 5.38093472, "learning_rate": 3.45e-06, "token_acc": 0.79035721, "epoch": 1.22125182, "global_step/max_steps": "210/516", "percentage": "40.70%", "elapsed_time": "48m 31s", "remaining_time": "1h 10m 42s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072125}{"loss": 1.05933466, "grad_norm": 4.97639704, "learning_rate": 3.38e-06, "token_acc": 0.75946483, "epoch": 1.2503639, "global_step/max_steps": "215/516", "percentage": "41.67%", "elapsed_time": "49m 39s", "remaining_time": "1h 9m 31s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072164}{"loss": 1.04664946, "grad_norm": 4.89697742, "learning_rate": 3.3e-06, "token_acc": 0.76469367, "epoch": 1.27947598, "global_step/max_steps": "220/516", "percentage": "42.64%", "elapsed_time": "50m 46s", "remaining_time": "1h 8m 19s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072208}{"loss": 0.91602869, "grad_norm": 7.94689465, "learning_rate": 3.23e-06, "token_acc": 0.78809855, "epoch": 1.30858806, "global_step/max_steps": "225/516", "percentage": "43.60%", "elapsed_time": "51m 53s", "remaining_time": "1h 7m 7s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072262}{"loss": 0.95873041, "grad_norm": 6.64714718, "learning_rate": 3.15e-06, "token_acc": 0.77974124, "epoch": 1.33770015, "global_step/max_steps": "230/516", "percentage": "44.57%", "elapsed_time": "53m 0s", "remaining_time": "1h 5m 55s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072308}{"loss": 0.94209003, "grad_norm": 5.3870492, "learning_rate": 3.07e-06, "token_acc": 0.78495828, "epoch": 1.36681223, "global_step/max_steps": "235/516", "percentage": "45.54%", "elapsed_time": "54m 6s", "remaining_time": "1h 4m 42s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072378}{"loss": 1.00580101, "grad_norm": 6.5398612, "learning_rate": 2.99e-06, "token_acc": 0.76999626, "epoch": 1.39592431, "global_step/max_steps": "240/516", "percentage": "46.51%", "elapsed_time": "55m 13s", "remaining_time": "1h 3m 30s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072432}{"loss": 0.90998411, "grad_norm": 6.05255556, "learning_rate": 2.91e-06, "token_acc": 0.79109206, "epoch": 1.42503639, "global_step/max_steps": "245/516", "percentage": "47.48%", "elapsed_time": "56m 19s", "remaining_time": "1h 2m 17s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072502}{"loss": 0.86851082, "grad_norm": 6.59701777, "learning_rate": 2.84e-06, "token_acc": 0.80409135, "epoch": 1.45414847, "global_step/max_steps": "250/516", "percentage": "48.45%", "elapsed_time": "57m 25s", "remaining_time": "1h 1m 6s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072554}{"loss": 0.86624861, "grad_norm": 5.44865417, "learning_rate": 2.76e-06, "token_acc": 0.80273636, "epoch": 1.48326055, "global_step/max_steps": "255/516", "percentage": "49.42%", "elapsed_time": "58m 32s", "remaining_time": "59m 55s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072597}{"loss": 0.9167881, "grad_norm": 6.00463915, "learning_rate": 2.68e-06, "token_acc": 0.78853531, "epoch": 1.51237263, "global_step/max_steps": "260/516", "percentage": "50.39%", "elapsed_time": "59m 40s", "remaining_time": "58m 45s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072623}{"loss": 0.95882254, "grad_norm": 7.39636993, "learning_rate": 2.6e-06, "token_acc": 0.78295107, "epoch": 1.54148472, "global_step/max_steps": "265/516", "percentage": "51.36%", "elapsed_time": "1h 0m 46s", "remaining_time": "57m 33s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072675}{"loss": 0.88721828, "grad_norm": 6.10332298, "learning_rate": 2.52e-06, "token_acc": 0.80010158, "epoch": 1.5705968, "global_step/max_steps": "270/516", "percentage": "52.33%", "elapsed_time": "1h 1m 51s", "remaining_time": "56m 21s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072742}{"loss": 0.95697536, "grad_norm": 5.66482973, "learning_rate": 2.44e-06, "token_acc": 0.78604891, "epoch": 1.59970888, "global_step/max_steps": "275/516", "percentage": "53.29%", "elapsed_time": "1h 2m 59s", "remaining_time": "55m 11s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07277}{"loss": 0.86220131, "grad_norm": 5.88849306, "learning_rate": 2.36e-06, "token_acc": 0.80699046, "epoch": 1.62882096, "global_step/max_steps": "280/516", "percentage": "54.26%", "elapsed_time": "1h 4m 7s", "remaining_time": "54m 2s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072776}{"loss": 0.82903605, "grad_norm": 10.40694332, "learning_rate": 2.28e-06, "token_acc": 0.81586017, "epoch": 1.65793304, "global_step/max_steps": "285/516", "percentage": "55.23%", "elapsed_time": "1h 5m 14s", "remaining_time": "52m 52s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072809}{"loss": 0.80667362, "grad_norm": 5.78686666, "learning_rate": 2.2e-06, "token_acc": 0.81763569, "epoch": 1.68704512, "global_step/max_steps": "290/516", "percentage": "56.20%", "elapsed_time": "1h 6m 21s", "remaining_time": "51m 42s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072839}{"loss": 0.82353687, "grad_norm": 5.04568338, "learning_rate": 2.12e-06, "token_acc": 0.81407158, "epoch": 1.71615721, "global_step/max_steps": "295/516", "percentage": "57.17%", "elapsed_time": "1h 7m 32s", "remaining_time": "50m 35s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072803}{"loss": 0.7666512, "grad_norm": 5.55380058, "learning_rate": 2.04e-06, "token_acc": 0.8274435, "epoch": 1.74526929, "global_step/max_steps": "300/516", "percentage": "58.14%", "elapsed_time": "1h 8m 39s", "remaining_time": "49m 25s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072827}{"loss": 0.84636402, "grad_norm": 6.91654634, "learning_rate": 1.96e-06, "token_acc": 0.81128499, "epoch": 1.77438137, "global_step/max_steps": "305/516", "percentage": "59.11%", "elapsed_time": "1h 9m 45s", "remaining_time": "48m 15s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072875}{"loss": 0.76240015, "grad_norm": 5.39693546, "learning_rate": 1.88e-06, "token_acc": 0.82863648, "epoch": 1.80349345, "global_step/max_steps": "310/516", "percentage": "60.08%", "elapsed_time": "1h 10m 50s", "remaining_time": "47m 4s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072926}{"loss": 0.79009452, "grad_norm": 8.45845795, "learning_rate": 1.8e-06, "token_acc": 0.8265704, "epoch": 1.83260553, "global_step/max_steps": "315/516", "percentage": "61.05%", "elapsed_time": "1h 11m 58s", "remaining_time": "45m 55s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07294}{"loss": 0.72085924, "grad_norm": 5.18915033, "learning_rate": 1.73e-06, "token_acc": 0.83825699, "epoch": 1.86171761, "global_step/max_steps": "320/516", "percentage": "62.02%", "elapsed_time": "1h 13m 7s", "remaining_time": "44m 47s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072943}{"loss": 0.77336311, "grad_norm": 7.540236, "learning_rate": 1.65e-06, "token_acc": 0.82744901, "epoch": 1.89082969, "global_step/max_steps": "325/516", "percentage": "62.98%", "elapsed_time": "1h 14m 14s", "remaining_time": "43m 37s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072964}{"loss": 0.78006825, "grad_norm": 5.67108583, "learning_rate": 1.58e-06, "token_acc": 0.82834697, "epoch": 1.91994178, "global_step/max_steps": "330/516", "percentage": "63.95%", "elapsed_time": "1h 15m 20s", "remaining_time": "42m 28s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072996}{"loss": 0.84548492, "grad_norm": 5.84379911, "learning_rate": 1.5e-06, "token_acc": 0.81310759, "epoch": 1.94905386, "global_step/max_steps": "335/516", "percentage": "64.92%", "elapsed_time": "1h 16m 27s", "remaining_time": "41m 18s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.073025}{"loss": 0.80167074, "grad_norm": 5.2672987, "learning_rate": 1.43e-06, "token_acc": 0.8252999, "epoch": 1.97816594, "global_step/max_steps": "340/516", "percentage": "65.89%", "elapsed_time": "1h 17m 33s", "remaining_time": "40m 8s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.073062}{"loss": 0.75760422, "grad_norm": 6.11372566, "learning_rate": 1.36e-06, "token_acc": 0.83450175, "epoch": 2.00582242, "global_step/max_steps": "345/516", "percentage": "66.86%", "elapsed_time": "1h 20m 43s", "remaining_time": "40m 0s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071233}{"loss": 0.43506641, "grad_norm": 5.12082005, "learning_rate": 1.29e-06, "token_acc": 0.90093458, "epoch": 2.0349345, "global_step/max_steps": "350/516", "percentage": "67.83%", "elapsed_time": "1h 21m 51s", "remaining_time": "38m 49s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071261}{"loss": 0.46680841, "grad_norm": 6.14298105, "learning_rate": 1.22e-06, "token_acc": 0.89291005, "epoch": 2.06404658, "global_step/max_steps": "355/516", "percentage": "68.80%", "elapsed_time": "1h 22m 58s", "remaining_time": "37m 38s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071301}{"loss": 0.45895615, "grad_norm": 5.51451969, "learning_rate": 1.15e-06, "token_acc": 0.89361008, "epoch": 2.09315866, "global_step/max_steps": "360/516", "percentage": "69.77%", "elapsed_time": "1h 24m 6s", "remaining_time": "36m 26s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07134}{"loss": 0.51142178, "grad_norm": 8.80175018, "learning_rate": 1.08e-06, "token_acc": 0.88269182, "epoch": 2.12227074, "global_step/max_steps": "365/516", "percentage": "70.74%", "elapsed_time": "1h 25m 12s", "remaining_time": "35m 15s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071391}{"loss": 0.42507792, "grad_norm": 4.80956984, "learning_rate": 1.02e-06, "token_acc": 0.90368867, "epoch": 2.15138282, "global_step/max_steps": "370/516", "percentage": "71.71%", "elapsed_time": "1h 26m 18s", "remaining_time": "34m 3s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071447}{"loss": 0.50236669, "grad_norm": 5.48771048, "learning_rate": 9.5e-07, "token_acc": 0.88295277, "epoch": 2.18049491, "global_step/max_steps": "375/516", "percentage": "72.67%", "elapsed_time": "1h 27m 26s", "remaining_time": "32m 52s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071481}{"loss": 0.45063248, "grad_norm": 4.98353863, "learning_rate": 8.9e-07, "token_acc": 0.89448113, "epoch": 2.20960699, "global_step/max_steps": "380/516", "percentage": "73.64%", "elapsed_time": "1h 28m 32s", "remaining_time": "31m 41s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07153}{"loss": 0.47493353, "grad_norm": 5.86753225, "learning_rate": 8.3e-07, "token_acc": 0.89221044, "epoch": 2.23871907, "global_step/max_steps": "385/516", "percentage": "74.61%", "elapsed_time": "1h 29m 39s", "remaining_time": "30m 30s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071571}{"loss": 0.47774496, "grad_norm": 5.2468462, "learning_rate": 7.7e-07, "token_acc": 0.89014223, "epoch": 2.26783115, "global_step/max_steps": "390/516", "percentage": "75.58%", "elapsed_time": "1h 30m 46s", "remaining_time": "29m 19s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071608}{"loss": 0.49055357, "grad_norm": 5.57238579, "learning_rate": 7.2e-07, "token_acc": 0.88614198, "epoch": 2.29694323, "global_step/max_steps": "395/516", "percentage": "76.55%", "elapsed_time": "1h 31m 52s", "remaining_time": "28m 8s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071654}{"loss": 0.41849165, "grad_norm": 5.21403503, "learning_rate": 6.6e-07, "token_acc": 0.90433912, "epoch": 2.32605531, "global_step/max_steps": "400/516", "percentage": "77.52%", "elapsed_time": "1h 33m 0s", "remaining_time": "26m 58s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071682}{"loss": 0.54062333, "grad_norm": 5.78023386, "learning_rate": 6.1e-07, "token_acc": 0.87757332, "epoch": 2.35516739, "global_step/max_steps": "405/516", "percentage": "78.49%", "elapsed_time": "1h 34m 6s", "remaining_time": "25m 47s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07172}{"loss": 0.3849473, "grad_norm": 4.20973015, "learning_rate": 5.6e-07, "token_acc": 0.91230864, "epoch": 2.38427948, "global_step/max_steps": "410/516", "percentage": "79.46%", "elapsed_time": "1h 35m 12s", "remaining_time": "24m 36s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071767}{"loss": 0.47623024, "grad_norm": 9.25216675, "learning_rate": 5.1e-07, "token_acc": 0.8895471, "epoch": 2.41339156, "global_step/max_steps": "415/516", "percentage": "80.43%", "elapsed_time": "1h 36m 18s", "remaining_time": "23m 26s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071813}{"loss": 0.45411777, "grad_norm": 5.59020424, "learning_rate": 4.6e-07, "token_acc": 0.89422028, "epoch": 2.44250364, "global_step/max_steps": "420/516", "percentage": "81.40%", "elapsed_time": "1h 37m 24s", "remaining_time": "22m 15s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071857}{"loss": 0.41132526, "grad_norm": 5.7834692, "learning_rate": 4.1e-07, "token_acc": 0.90659951, "epoch": 2.47161572, "global_step/max_steps": "425/516", "percentage": "82.36%", "elapsed_time": "1h 38m 32s", "remaining_time": "21m 5s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071881}{"loss": 0.41647954, "grad_norm": 5.60521936, "learning_rate": 3.7e-07, "token_acc": 0.90467919, "epoch": 2.5007278, "global_step/max_steps": "430/516", "percentage": "83.33%", "elapsed_time": "1h 39m 39s", "remaining_time": "19m 55s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071916}{"loss": 0.45548387, "grad_norm": 5.71003199, "learning_rate": 3.3e-07, "token_acc": 0.89635918, "epoch": 2.52983988, "global_step/max_steps": "435/516", "percentage": "84.30%", "elapsed_time": "1h 40m 45s", "remaining_time": "18m 45s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.071954}{"loss": 0.41183548, "grad_norm": 5.97843504, "learning_rate": 2.9e-07, "token_acc": 0.90741917, "epoch": 2.55895197, "global_step/max_steps": "440/516", "percentage": "85.27%", "elapsed_time": "1h 41m 52s", "remaining_time": "17m 35s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07198}{"loss": 0.48643284, "grad_norm": 4.58526659, "learning_rate": 2.5e-07, "token_acc": 0.88966904, "epoch": 2.58806405, "global_step/max_steps": "445/516", "percentage": "86.24%", "elapsed_time": "1h 42m 59s", "remaining_time": "16m 25s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072018}{"loss": 0.43472404, "grad_norm": 7.85709572, "learning_rate": 2.2e-07, "token_acc": 0.90134045, "epoch": 2.61717613, "global_step/max_steps": "450/516", "percentage": "87.21%", "elapsed_time": "1h 44m 6s", "remaining_time": "15m 16s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072042}{"loss": 0.39750838, "grad_norm": 3.66139579, "learning_rate": 1.9e-07, "token_acc": 0.91076051, "epoch": 2.64628821, "global_step/max_steps": "455/516", "percentage": "88.18%", "elapsed_time": "1h 45m 11s", "remaining_time": "14m 6s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.07209}{"loss": 0.41417665, "grad_norm": 4.80434227, "learning_rate": 1.6e-07, "token_acc": 0.90407425, "epoch": 2.67540029, "global_step/max_steps": "460/516", "percentage": "89.15%", "elapsed_time": "1h 46m 19s", "remaining_time": "12m 56s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072107}{"loss": 0.45739436, "grad_norm": 6.59643221, "learning_rate": 1.3e-07, "token_acc": 0.89677489, "epoch": 2.70451237, "global_step/max_steps": "465/516", "percentage": "90.12%", "elapsed_time": "1h 47m 26s", "remaining_time": "11m 47s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072131}{"loss": 0.42383814, "grad_norm": 5.65461636, "learning_rate": 1.1e-07, "token_acc": 0.90196758, "epoch": 2.73362445, "global_step/max_steps": "470/516", "percentage": "91.09%", "elapsed_time": "1h 48m 33s", "remaining_time": "10m 37s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072157}{"loss": 0.44877701, "grad_norm": 4.91401768, "learning_rate": 9e-08, "token_acc": 0.89887138, "epoch": 2.76273654, "global_step/max_steps": "475/516", "percentage": "92.05%", "elapsed_time": "1h 49m 39s", "remaining_time": "9m 27s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072196}{"loss": 0.41747952, "grad_norm": 5.14089346, "learning_rate": 7e-08, "token_acc": 0.9032473, "epoch": 2.79184862, "global_step/max_steps": "480/516", "percentage": "93.02%", "elapsed_time": "1h 50m 48s", "remaining_time": "8m 18s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072202}{"loss": 0.4900269, "grad_norm": 6.08066082, "learning_rate": 5e-08, "token_acc": 0.89314523, "epoch": 2.8209607, "global_step/max_steps": "485/516", "percentage": "93.99%", "elapsed_time": "1h 51m 59s", "remaining_time": "7m 9s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072181}{"loss": 0.45543199, "grad_norm": 5.03638554, "learning_rate": 3e-08, "token_acc": 0.89810342, "epoch": 2.85007278, "global_step/max_steps": "490/516", "percentage": "94.96%", "elapsed_time": "1h 53m 6s", "remaining_time": "6m 0s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072204}{"loss": 0.3692368, "grad_norm": 4.65054083, "learning_rate": 2e-08, "token_acc": 0.91769506, "epoch": 2.87918486, "global_step/max_steps": "495/516", "percentage": "95.93%", "elapsed_time": "1h 54m 14s", "remaining_time": "4m 50s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072218}{"loss": 0.43765655, "grad_norm": 5.00926304, "learning_rate": 1e-08, "token_acc": 0.89888628, "epoch": 2.90829694, "global_step/max_steps": "500/516", "percentage": "96.90%", "elapsed_time": "1h 55m 20s", "remaining_time": "3m 41s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072246}{"loss": 0.43847818, "grad_norm": 7.26655531, "learning_rate": 1e-08, "token_acc": 0.90125614, "epoch": 2.93740902, "global_step/max_steps": "505/516", "percentage": "97.87%", "elapsed_time": "1h 56m 27s", "remaining_time": "2m 32s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072269}{"loss": 0.44686489, "grad_norm": 6.01119041, "learning_rate": 0.0, "token_acc": 0.89836884, "epoch": 2.96652111, "global_step/max_steps": "510/516", "percentage": "98.84%", "elapsed_time": "1h 57m 33s", "remaining_time": "1m 22s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072304}{"loss": 0.44755316, "grad_norm": 4.68553591, "learning_rate": 0.0, "token_acc": 0.89660895, "epoch": 2.99563319, "global_step/max_steps": "515/516", "percentage": "99.81%", "elapsed_time": "1h 58m 38s", "remaining_time": "13s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.072344}{"train_runtime": 7361.395, "train_samples_per_second": 4.48, "train_steps_per_second": 0.07, "total_flos": 1.1267661475222651e+18, "train_loss": 1.08100531, "token_acc": 0.94827586, "epoch": 3.0, "global_step/max_steps": "516/516", "percentage": "100.00%", "elapsed_time": "2h 2m 41s", "remaining_time": "0s", "memory(GiB)": 66.03, "train_speed(iter/s)": 0.070095}{"model_parameter_info": "Qwen2_5_VLForConditionalGeneration: 8292.1667M Params (8292.1667M Trainable [100.0000%]), 0.0019M Buffers.", "last_model_checkpoint": "/data/liyc/Output/oact_swift_train/lingshu7b/core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516", "best_model_checkpoint": null, "best_metric": null, "global_step": 516, "log_history": [{"loss": 2.454665422439575, "grad_norm": 12.850654602050781, "learning_rate": 1.9230769230769234e-07, "token_acc": 0.5310546060858691, "epoch": 0.005822416302765648, "step": 1}, {"loss": 2.523975133895874, "grad_norm": 12.716009140014648, "learning_rate": 9.615384615384617e-07, "token_acc": 0.518268504531722, "epoch": 0.02911208151382824, "step": 5}, {"loss": 2.492396926879883, "grad_norm": 11.335177421569824, "learning_rate": 1.9230769230769234e-06, "token_acc": 0.5195826919787926, "epoch": 0.05822416302765648, "step": 10}, {"loss": 2.380304718017578, "grad_norm": 7.520497798919678, "learning_rate": 2.8846153846153845e-06, "token_acc": 0.530146840700089, "epoch": 0.08733624454148471, "step": 15}, {"loss": 2.312163162231445, "grad_norm": 7.809173583984375, "learning_rate": 3.846153846153847e-06, "token_acc": 0.5343360957978898, "epoch": 0.11644832605531295, "step": 20}, {"loss": 2.225124168395996, "grad_norm": 5.1450066566467285, "learning_rate": 4.807692307692308e-06, "token_acc": 0.5435383664574049, "epoch": 0.14556040756914118, "step": 25}, {"loss": 2.1946741104125977, "grad_norm": 6.896547317504883, "learning_rate": 4.9991779205767e-06, "token_acc": 0.5472346518704134, "epoch": 0.17467248908296942, "step": 30}, {"loss": 2.151557731628418, "grad_norm": 4.785802841186523, "learning_rate": 4.995839149503103e-06, "token_acc": 0.5574804913564575, "epoch": 0.20378457059679767, "step": 35}, {"loss": 2.103257751464844, "grad_norm": 8.316496849060059, "learning_rate": 4.989935734988098e-06, "token_acc": 0.5625976423803437, "epoch": 0.2328966521106259, "step": 40}, {"loss": 2.081839752197266, "grad_norm": 5.424784183502197, "learning_rate": 4.981473743189163e-06, "token_acc": 0.5626333875926931, "epoch": 0.26200873362445415, "step": 45}, {"loss": 2.0812015533447266, "grad_norm": 5.434144973754883, "learning_rate": 4.97046186937489e-06, "token_acc": 0.5654650298935154, "epoch": 0.29112081513828236, "step": 50}, {"loss": 1.9627498626708983, "grad_norm": 4.716914653778076, "learning_rate": 4.95691142899001e-06, "token_acc": 0.5785645806472941, "epoch": 0.32023289665211063, "step": 55}, {"loss": 2.0215423583984373, "grad_norm": 5.251248359680176, "learning_rate": 4.940836346028011e-06, "token_acc": 0.5737796373779638, "epoch": 0.34934497816593885, "step": 60}, {"loss": 1.9647777557373047, "grad_norm": 4.974453449249268, "learning_rate": 4.9222531387232885e-06, "token_acc": 0.5825641025641025, "epoch": 0.3784570596797671, "step": 65}, {"loss": 1.956728744506836, "grad_norm": 5.801396369934082, "learning_rate": 4.901180902577549e-06, "token_acc": 0.5849651682667314, "epoch": 0.40756914119359533, "step": 70}, {"loss": 1.9090400695800782, "grad_norm": 5.372264385223389, "learning_rate": 4.8776412907378845e-06, "token_acc": 0.594345584566772, "epoch": 0.4366812227074236, "step": 75}, {"loss": 1.9607868194580078, "grad_norm": 5.81269645690918, "learning_rate": 4.851658491746707e-06, "token_acc": 0.5861172976985894, "epoch": 0.4657933042212518, "step": 80}, {"loss": 1.9042402267456056, "grad_norm": 5.661822319030762, "learning_rate": 4.82325920468638e-06, "token_acc": 0.5901494486918437, "epoch": 0.4949053857350801, "step": 85}, {"loss": 1.8616498947143554, "grad_norm": 5.0820794105529785, "learning_rate": 4.7924726117441135e-06, "token_acc": 0.6008382549056963, "epoch": 0.5240174672489083, "step": 90}, {"loss": 1.8036590576171876, "grad_norm": 7.830063819885254, "learning_rate": 4.7593303482252835e-06, "token_acc": 0.6072764485849389, "epoch": 0.5531295487627366, "step": 95}, {"loss": 1.7912891387939454, "grad_norm": 4.940858364105225, "learning_rate": 4.72386647004603e-06, "token_acc": 0.6147977544263711, "epoch": 0.5822416302765647, "step": 100}, {"loss": 1.6950885772705078, "grad_norm": 5.469075679779053, "learning_rate": 4.686117418738489e-06, "token_acc": 0.6338609307359307, "epoch": 0.611353711790393, "step": 105}, {"loss": 1.7326389312744142, "grad_norm": 5.417870044708252, "learning_rate": 4.646121984004666e-06, "token_acc": 0.6224619059683666, "epoch": 0.6404657933042213, "step": 110}, {"loss": 1.736791229248047, "grad_norm": 5.816676139831543, "learning_rate": 4.6039212638573835e-06, "token_acc": 0.6193236358266263, "epoch": 0.6695778748180495, "step": 115}, {"loss": 1.7224870681762696, "grad_norm": 8.974054336547852, "learning_rate": 4.559558622389304e-06, "token_acc": 0.6253116011505273, "epoch": 0.6986899563318777, "step": 120}, {"loss": 1.6400924682617188, "grad_norm": 5.396500587463379, "learning_rate": 4.513079645213391e-06, "token_acc": 0.6435410168999782, "epoch": 0.727802037845706, "step": 125}, {"loss": 1.642887496948242, "grad_norm": 5.111563682556152, "learning_rate": 4.464532092620607e-06, "token_acc": 0.6425811155668976, "epoch": 0.7569141193595342, "step": 130}, {"loss": 1.6120710372924805, "grad_norm": 4.7452616691589355, "learning_rate": 4.413965850502987e-06, "token_acc": 0.6442836979534228, "epoch": 0.7860262008733624, "step": 135}, {"loss": 1.60766544342041, "grad_norm": 7.327229022979736, "learning_rate": 4.361432879092518e-06, "token_acc": 0.6519052117776728, "epoch": 0.8151382823871907, "step": 140}, {"loss": 1.4958037376403808, "grad_norm": 6.481619834899902, "learning_rate": 4.3069871595684795e-06, "token_acc": 0.6678836074462317, "epoch": 0.8442503639010189, "step": 145}, {"loss": 1.493386459350586, "grad_norm": 5.63532829284668, "learning_rate": 4.2506846385881375e-06, "token_acc": 0.6675231243576567, "epoch": 0.8733624454148472, "step": 150}, {"loss": 1.556870460510254, "grad_norm": 6.233198642730713, "learning_rate": 4.192583170797775e-06, "token_acc": 0.6563979233470759, "epoch": 0.9024745269286754, "step": 155}, {"loss": 1.5613679885864258, "grad_norm": 6.151444435119629, "learning_rate": 4.132742459383122e-06, "token_acc": 0.6578236641482342, "epoch": 0.9315866084425036, "step": 160}, {"loss": 1.5111486434936523, "grad_norm": 4.168930530548096, "learning_rate": 4.071223994720309e-06, "token_acc": 0.669480384695219, "epoch": 0.9606986899563319, "step": 165}, {"loss": 1.4982393264770508, "grad_norm": 10.89025592803955, "learning_rate": 4.008090991190341e-06, "token_acc": 0.6730306097518411, "epoch": 0.9898107714701602, "step": 170}, {"loss": 1.3179834365844727, "grad_norm": 5.570936679840088, "learning_rate": 3.943408322222049e-06, "token_acc": 0.7026223776223777, "epoch": 1.017467248908297, "step": 175}, {"loss": 1.135370922088623, "grad_norm": 5.788726329803467, "learning_rate": 3.8772424536302565e-06, "token_acc": 0.7381052190316495, "epoch": 1.0465793304221251, "step": 180}, {"loss": 1.051245880126953, "grad_norm": 5.423781394958496, "learning_rate": 3.8096613753176635e-06, "token_acc": 0.7561599663523886, "epoch": 1.0756914119359535, "step": 185}, {"loss": 1.074899673461914, "grad_norm": 5.9309492111206055, "learning_rate": 3.740734531410626e-06, "token_acc": 0.7532562768446416, "epoch": 1.1048034934497817, "step": 190}, {"loss": 1.0884708404541015, "grad_norm": 5.416075706481934, "learning_rate": 3.670532748900615e-06, "token_acc": 0.7513996592134089, "epoch": 1.1339155749636098, "step": 195}, {"loss": 1.0701178550720214, "grad_norm": 5.948403835296631, "learning_rate": 3.599128164864706e-06, "token_acc": 0.7541812524309607, "epoch": 1.1630276564774382, "step": 200}, {"loss": 1.011543083190918, "grad_norm": 5.5880126953125, "learning_rate": 3.5265941523398455e-06, "token_acc": 0.7681535454060778, "epoch": 1.1921397379912664, "step": 205}, {"loss": 0.9172746658325195, "grad_norm": 5.380934715270996, "learning_rate": 3.4530052449271044e-06, "token_acc": 0.7903572057012141, "epoch": 1.2212518195050945, "step": 210}, {"loss": 1.059334659576416, "grad_norm": 4.9763970375061035, "learning_rate": 3.3784370602033572e-06, "token_acc": 0.7594648345687941, "epoch": 1.250363901018923, "step": 215}, {"loss": 1.04664945602417, "grad_norm": 4.896977424621582, "learning_rate": 3.3029662220191146e-06, "token_acc": 0.7646936728128135, "epoch": 1.279475982532751, "step": 220}, {"loss": 0.9160286903381347, "grad_norm": 7.946894645690918, "learning_rate": 3.2266702817623348e-06, "token_acc": 0.7880985495728194, "epoch": 1.3085880640465795, "step": 225}, {"loss": 0.958730411529541, "grad_norm": 6.647147178649902, "learning_rate": 3.1496276386691327e-06, "token_acc": 0.7797412432944146, "epoch": 1.3377001455604076, "step": 230}, {"loss": 0.9420900344848633, "grad_norm": 5.387049198150635, "learning_rate": 3.071917459263264e-06, "token_acc": 0.784958277643319, "epoch": 1.3668122270742358, "step": 235}, {"loss": 1.005801010131836, "grad_norm": 6.53986120223999, "learning_rate": 2.993619596007168e-06, "token_acc": 0.7699962588851478, "epoch": 1.395924308588064, "step": 240}, {"loss": 0.9099841117858887, "grad_norm": 6.052555561065674, "learning_rate": 2.91481450524817e-06, "token_acc": 0.7910920611256057, "epoch": 1.4250363901018923, "step": 245}, {"loss": 0.8685108184814453, "grad_norm": 6.597017765045166, "learning_rate": 2.835583164544139e-06, "token_acc": 0.8040913481440596, "epoch": 1.4541484716157205, "step": 250}, {"loss": 0.866248607635498, "grad_norm": 5.4486541748046875, "learning_rate": 2.7560069894535783e-06, "token_acc": 0.802736362041747, "epoch": 1.4832605531295489, "step": 255}, {"loss": 0.9167881011962891, "grad_norm": 6.004639148712158, "learning_rate": 2.676167749875635e-06, "token_acc": 0.7885353110956852, "epoch": 1.512372634643377, "step": 260}, {"loss": 0.9588225364685059, "grad_norm": 7.396369934082031, "learning_rate": 2.596147486025996e-06, "token_acc": 0.7829510703363914, "epoch": 1.5414847161572052, "step": 265}, {"loss": 0.8872182846069336, "grad_norm": 6.103322982788086, "learning_rate": 2.516028424135028e-06, "token_acc": 0.8001015817733276, "epoch": 1.5705967976710333, "step": 270}, {"loss": 0.9569753646850586, "grad_norm": 5.664829730987549, "learning_rate": 2.4358928919547616e-06, "token_acc": 0.786048913644915, "epoch": 1.5997088791848617, "step": 275}, {"loss": 0.8622013092041015, "grad_norm": 5.888493061065674, "learning_rate": 2.3558232341615645e-06, "token_acc": 0.8069904644302669, "epoch": 1.62882096069869, "step": 280}, {"loss": 0.8290360450744629, "grad_norm": 10.406943321228027, "learning_rate": 2.2759017277414165e-06, "token_acc": 0.8158601669114224, "epoch": 1.6579330422125182, "step": 285}, {"loss": 0.8066736221313476, "grad_norm": 5.786866664886475, "learning_rate": 2.196210497444749e-06, "token_acc": 0.817635692956262, "epoch": 1.6870451237263464, "step": 290}, {"loss": 0.8235368728637695, "grad_norm": 5.04568338394165, "learning_rate": 2.11683143139771e-06, "token_acc": 0.8140715836660363, "epoch": 1.7161572052401746, "step": 295}, {"loss": 0.766651201248169, "grad_norm": 5.553800582885742, "learning_rate": 2.037846096956578e-06, "token_acc": 0.8274434996281806, "epoch": 1.745269286754003, "step": 300}, {"loss": 0.8463640213012695, "grad_norm": 6.91654634475708, "learning_rate": 1.9593356568917916e-06, "token_acc": 0.8112849868044456, "epoch": 1.774381368267831, "step": 305}, {"loss": 0.7624001502990723, "grad_norm": 5.39693546295166, "learning_rate": 1.8813807859877147e-06, "token_acc": 0.8286364824008062, "epoch": 1.8034934497816595, "step": 310}, {"loss": 0.790094518661499, "grad_norm": 8.458457946777344, "learning_rate": 1.8040615881438425e-06, "token_acc": 0.8265703971119134, "epoch": 1.8326055312954876, "step": 315}, {"loss": 0.7208592414855957, "grad_norm": 5.189150333404541, "learning_rate": 1.7274575140626318e-06, "token_acc": 0.8382569896729157, "epoch": 1.8617176128093158, "step": 320}, {"loss": 0.7733631134033203, "grad_norm": 7.540235996246338, "learning_rate": 1.6516472796085314e-06, "token_acc": 0.82744901370779, "epoch": 1.890829694323144, "step": 325}, {"loss": 0.7800682544708252, "grad_norm": 5.671085834503174, "learning_rate": 1.5767087849221097e-06, "token_acc": 0.8283469651312957, "epoch": 1.9199417758369723, "step": 330}, {"loss": 0.8454849243164062, "grad_norm": 5.843799114227295, "learning_rate": 1.502719034372396e-06, "token_acc": 0.8131075914800655, "epoch": 1.9490538573508007, "step": 335}, {"loss": 0.8016707420349121, "grad_norm": 5.267298698425293, "learning_rate": 1.429754057429687e-06, "token_acc": 0.8252998988293105, "epoch": 1.9781659388646289, "step": 340}, {"loss": 0.7576042175292969, "grad_norm": 6.113725662231445, "learning_rate": 1.3578888305401208e-06, "token_acc": 0.8345017526289434, "epoch": 2.005822416302766, "step": 345}, {"loss": 0.43506641387939454, "grad_norm": 5.120820045471191, "learning_rate": 1.2871972000823197e-06, "token_acc": 0.9009345794392524, "epoch": 2.034934497816594, "step": 350}, {"loss": 0.4668084144592285, "grad_norm": 6.142981052398682, "learning_rate": 1.217751806485235e-06, "token_acc": 0.8929100457850795, "epoch": 2.064046579330422, "step": 355}, {"loss": 0.4589561462402344, "grad_norm": 5.514519691467285, "learning_rate": 1.1496240095852002e-06, "token_acc": 0.8936100847641817, "epoch": 2.0931586608442503, "step": 360}, {"loss": 0.5114217758178711, "grad_norm": 8.801750183105469, "learning_rate": 1.082883815298876e-06, "token_acc": 0.8826918229935549, "epoch": 2.1222707423580784, "step": 365}, {"loss": 0.4250779151916504, "grad_norm": 4.809569835662842, "learning_rate": 1.0175998036874357e-06, "token_acc": 0.9036886680198782, "epoch": 2.151382823871907, "step": 370}, {"loss": 0.5023666858673096, "grad_norm": 5.487710475921631, "learning_rate": 9.538390584859213e-07, "token_acc": 0.8829527745782234, "epoch": 2.180494905385735, "step": 375}, {"loss": 0.45063247680664065, "grad_norm": 4.983538627624512, "learning_rate": 8.916670981701656e-07, "token_acc": 0.8944811304615595, "epoch": 2.2096069868995634, "step": 380}, {"loss": 0.4749335289001465, "grad_norm": 5.867532253265381, "learning_rate": 8.311478086321301e-07, "token_acc": 0.8922104360870031, "epoch": 2.2387190684133915, "step": 385}, {"loss": 0.47774496078491213, "grad_norm": 5.2468461990356445, "learning_rate": 7.723433775328385e-07, "token_acc": 0.8901422265816576, "epoch": 2.2678311499272197, "step": 390}, {"loss": 0.4905535697937012, "grad_norm": 5.572385787963867, "learning_rate": 7.153142304003419e-07, "token_acc": 0.8861419823089136, "epoch": 2.2969432314410483, "step": 395}, {"loss": 0.41849164962768554, "grad_norm": 5.2140350341796875, "learning_rate": 6.601189685384127e-07, "token_acc": 0.9043391188251001, "epoch": 2.3260553129548764, "step": 400}, {"loss": 0.5406233310699463, "grad_norm": 5.780233860015869, "learning_rate": 6.068143088097372e-07, "token_acc": 0.8775733220530175, "epoch": 2.3551673944687046, "step": 405}, {"loss": 0.3849472999572754, "grad_norm": 4.20973014831543, "learning_rate": 5.554550253555066e-07, "token_acc": 0.9123086388476711, "epoch": 2.3842794759825328, "step": 410}, {"loss": 0.47623023986816404, "grad_norm": 9.252166748046875, "learning_rate": 5.060938933112891e-07, "token_acc": 0.8895471049111409, "epoch": 2.413391557496361, "step": 415}, {"loss": 0.4541177749633789, "grad_norm": 5.590204238891602, "learning_rate": 4.5878163457700327e-07, "token_acc": 0.8942202835332607, "epoch": 2.442503639010189, "step": 420}, {"loss": 0.41132526397705077, "grad_norm": 5.783469200134277, "learning_rate": 4.1356686569674344e-07, "token_acc": 0.9065995137200417, "epoch": 2.4716157205240172, "step": 425}, {"loss": 0.41647953987121583, "grad_norm": 5.60521936416626, "learning_rate": 3.7049604790198976e-07, "token_acc": 0.904679187927478, "epoch": 2.500727802037846, "step": 430}, {"loss": 0.45548386573791505, "grad_norm": 5.710031986236572, "learning_rate": 3.2961343936955384e-07, "token_acc": 0.8963591775136767, "epoch": 2.529839883551674, "step": 435}, {"loss": 0.4118354797363281, "grad_norm": 5.978435039520264, "learning_rate": 2.9096104974331186e-07, "token_acc": 0.907419172666949, "epoch": 2.558951965065502, "step": 440}, {"loss": 0.4864328384399414, "grad_norm": 4.585266590118408, "learning_rate": 2.5457859696645245e-07, "token_acc": 0.8896690437008594, "epoch": 2.5880640465793303, "step": 445}, {"loss": 0.4347240447998047, "grad_norm": 7.857095718383789, "learning_rate": 2.205034664686076e-07, "token_acc": 0.9013404463652632, "epoch": 2.617176128093159, "step": 450}, {"loss": 0.3975083827972412, "grad_norm": 3.661395788192749, "learning_rate": 1.887706727497965e-07, "token_acc": 0.9107605121388092, "epoch": 2.646288209606987, "step": 455}, {"loss": 0.41417665481567384, "grad_norm": 4.804342269897461, "learning_rate": 1.59412823400657e-07, "token_acc": 0.9040742466047945, "epoch": 2.6754002911208152, "step": 460}, {"loss": 0.4573943614959717, "grad_norm": 6.596432209014893, "learning_rate": 1.3246008559594708e-07, "token_acc": 0.8967748933400824, "epoch": 2.7045123726346434, "step": 465}, {"loss": 0.42383813858032227, "grad_norm": 5.654616355895996, "learning_rate": 1.0794015509572819e-07, "token_acc": 0.9019675765553554, "epoch": 2.7336244541484715, "step": 470}, {"loss": 0.4487770080566406, "grad_norm": 4.914017677307129, "learning_rate": 8.587822778610284e-08, "token_acc": 0.8988713822773494, "epoch": 2.7627365356622997, "step": 475}, {"loss": 0.4174795150756836, "grad_norm": 5.140893459320068, "learning_rate": 6.629697378873839e-08, "token_acc": 0.9032472997615374, "epoch": 2.791848617176128, "step": 480}, {"loss": 0.49002690315246583, "grad_norm": 6.080660820007324, "learning_rate": 4.9216514165781885e-08, "token_acc": 0.893145232934153, "epoch": 2.8209606986899565, "step": 485}, {"loss": 0.45543198585510253, "grad_norm": 5.036385536193848, "learning_rate": 3.4654400244112654e-08, "token_acc": 0.8981034237817872, "epoch": 2.8500727802037846, "step": 490}, {"loss": 0.36923680305480955, "grad_norm": 4.650540828704834, "learning_rate": 2.262559558016325e-08, "token_acc": 0.9176950569829389, "epoch": 2.879184861717613, "step": 495}, {"loss": 0.4376565456390381, "grad_norm": 5.009263038635254, "learning_rate": 1.3142460583856487e-08, "token_acc": 0.8988862837045721, "epoch": 2.908296943231441, "step": 500}, {"loss": 0.4384781837463379, "grad_norm": 7.266555309295654, "learning_rate": 6.214739817448634e-09, "token_acc": 0.9012561441835063, "epoch": 2.9374090247452695, "step": 505}, {"loss": 0.4468648910522461, "grad_norm": 6.011190414428711, "learning_rate": 1.8495519823308329e-09, "token_acc": 0.8983688365857292, "epoch": 2.9665211062590977, "step": 510}, {"loss": 0.4475531578063965, "grad_norm": 4.685535907745361, "learning_rate": 5.138260408488194e-11, "token_acc": 0.8966089547734902, "epoch": 2.995633187772926, "step": 515}, {"train_runtime": 7361.395, "train_samples_per_second": 4.48, "train_steps_per_second": 0.07, "total_flos": 1.1267661475222651e+18, "train_loss": 1.0810053102498831, "token_acc": 0.9482758620689655, "epoch": 3.0, "step": 516}], "memory": 66.025390625}123456789101112131415161718192021222324{ "</tool_call>": 151658, "<tool_call>": 151657, "<|box_end|>": 151649, "<|box_start|>": 151648, "<|endoftext|>": 151643, "<|file_sep|>": 151664, "<|fim_middle|>": 151660, "<|fim_pad|>": 151662, "<|fim_prefix|>": 151659, "<|fim_suffix|>": 151661, "<|im_end|>": 151645, "<|im_start|>": 151644, "<|image_pad|>": 151655, "<|object_ref_end|>": 151647, "<|object_ref_start|>": 151646, "<|quad_end|>": 151651, "<|quad_start|>": 151650, "<|repo_name|>": 151663, "<|video_pad|>": 151656, "<|vision_end|>": 151653, "<|vision_pad|>": 151654, "<|vision_start|>": 151652}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397{ "output_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352", "overwrite_output_dir": false, "do_train": false, "do_eval": false, "do_predict": false, "eval_strategy": "no", "prediction_loss_only": false, "per_device_train_batch_size": 4, "per_device_eval_batch_size": 1, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 4, "eval_accumulation_steps": null, "eval_delay": 0, "torch_empty_cache_steps": null, "learning_rate": 5e-06, "weight_decay": 0.1, "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 3.0, "max_steps": -1, "lr_scheduler_type": "cosine", "lr_scheduler_kwargs": null, "warmup_ratio": 0.05, "warmup_steps": 0, "log_level": "passive", "log_level_replica": "warning", "log_on_each_node": true, "logging_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352/runs", "logging_strategy": "steps", "logging_first_step": true, "logging_steps": 5, "logging_nan_inf_filter": true, "save_strategy": "epoch", "save_steps": 500, "save_total_limit": null, "save_safetensors": true, "save_on_each_node": false, "save_only_model": false, "restore_callback_states_from_checkpoint": false, "no_cuda": false, "use_cpu": false, "use_mps_device": false, "seed": 42, "data_seed": 42, "jit_mode_eval": false, "bf16": true, "fp16": false, "fp16_opt_level": "O1", "half_precision_backend": "auto", "bf16_full_eval": false, "fp16_full_eval": false, "tf32": null, "local_rank": 0, "ddp_backend": null, "tpu_num_cores": null, "tpu_metrics_debug": false, "debug": null, "dataloader_drop_last": false, "eval_steps": null, "dataloader_num_workers": 8, "dataloader_prefetch_factor": null, "past_index": -1, "run_name": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352", "disable_tqdm": null, "remove_unused_columns": true, "label_names": null, "load_best_model_at_end": false, "metric_for_best_model": "loss", "greater_is_better": false, "ignore_data_skip": false, "fsdp": [], "fsdp_min_num_params": 0, "fsdp_config": null, "fsdp_transformer_layer_cls_to_wrap": null, "accelerator_config": { "dispatch_batches": false }, "parallelism_config": null, "deepspeed": { "fp16": { "enabled": "auto", "loss_scale": 0, "loss_scale_window": 1000, "initial_scale_power": 16, "hysteresis": 2, "min_loss_scale": 1 }, "bf16": { "enabled": "auto" }, "zero_optimization": { "stage": 2, "offload_optimizer": { "device": "none", "pin_memory": true }, "allgather_partitions": true, "allgather_bucket_size": 200000000.0, "overlap_comm": false, "reduce_scatter": true, "reduce_bucket_size": 200000000.0, "contiguous_gradients": true }, "gradient_accumulation_steps": "auto", "gradient_clipping": "auto", "steps_per_print": 2000, "train_batch_size": "auto", "train_micro_batch_size_per_gpu": "auto", "wall_clock_breakdown": false }, "label_smoothing_factor": 0.0, "optim": "adamw_torch_fused", "optim_args": null, "adafactor": false, "group_by_length": false, "length_column_name": "length", "report_to": [ "tensorboard" ], "project": "huggingface", "trackio_space_id": "trackio", "ddp_find_unused_parameters": null, "ddp_bucket_cap_mb": null, "ddp_broadcast_buffers": null, "dataloader_pin_memory": true, "dataloader_persistent_workers": false, "skip_memory_metrics": true, "use_legacy_prediction_loop": false, "push_to_hub": false, "resume_from_checkpoint": null, "hub_model_id": null, "hub_strategy": "every_save", "hub_token": null, "hub_private_repo": null, "hub_always_push": false, "hub_revision": null, "gradient_checkpointing": true, "gradient_checkpointing_kwargs": null, "include_inputs_for_metrics": false, "include_for_metrics": [], "eval_do_concat_batches": true, "fp16_backend": "auto", "push_to_hub_model_id": null, "push_to_hub_organization": null, "push_to_hub_token": null, "mp_parameters": "", "auto_find_batch_size": false, "full_determinism": false, "torchdynamo": null, "ray_scope": "last", "ddp_timeout": 18000000, "torch_compile": false, "torch_compile_backend": null, "torch_compile_mode": null, "include_tokens_per_second": false, "include_num_input_tokens_seen": false, "neftune_noise_alpha": null, "optim_target_modules": null, "batch_eval_metrics": false, "eval_on_start": false, "use_liger_kernel": false, "liger_kernel_config": null, "eval_use_gather_object": false, "average_tokens_across_devices": true, "sortish_sampler": false, "predict_with_generate": false, "generation_max_length": null, "generation_num_beams": null, "generation_config": null, "tuner_backend": "peft", "vit_gradient_checkpointing": null, "router_aux_loss_coef": 0.0, "enable_dft_loss": false, "enable_channel_loss": false, "check_model": true, "acc_strategy": "token", "train_dataloader_shuffle": true, "max_epochs": null, "aligner_lr": null, "vit_lr": null, "use_logits_to_keep": null, "ds3_gather_for_generation": true, "resume_only_model": false, "optimizer": null, "loss_type": null, "eval_metric": null, "callbacks": [], "early_stop_interval": null, "eval_use_evalscope": false, "eval_dataset": [], "eval_dataset_args": null, "eval_limit": null, "eval_generation_config": null, "extra_eval_args": null, "tuner_type": "full", "use_galore": false, "galore_target_modules": null, "galore_rank": 128, "galore_update_proj_gap": 50, "galore_scale": 1.0, "galore_proj_type": "std", "galore_optim_per_parameter": false, "galore_with_embedding": false, "galore_quantization": false, "galore_proj_quant": false, "galore_proj_bits": 4, "galore_proj_group_size": 256, "galore_cos_threshold": 0.4, "galore_gamma_proj": 2, "galore_queue_size": 5, "lisa_activated_layers": 0, "lisa_step_interval": 20, "use_flash_ckpt": false, "use_ray": false, "ray_exp_name": null, "device_groups": null, "model": "/data/liyc/Code/med_vl/lingshu_7b", "model_type": "qwen2_5_vl", "model_revision": null, "task_type": "causal_lm", "torch_dtype": "bfloat16", "attn_impl": "flash_attn", "experts_impl": null, "new_special_tokens": [], "num_labels": null, "problem_type": null, "rope_scaling": null, "device_map": null, "max_memory": {}, "max_model_len": null, "local_repo_path": null, "init_strategy": null, "template": "qwen2_5_vl", "system": null, "max_length": 4096, "truncation_strategy": "delete", "max_pixels": null, "agent_template": null, "norm_bbox": null, "use_chat_template": true, "padding_side": "right", "padding_free": false, "loss_scale": "default", "sequence_parallel_size": 1, "template_backend": "swift", "response_prefix": null, "enable_thinking": null, "add_non_thinking_prefix": true, "dataset": [ "/home/yuchong_li/KnowInject/make_oact_dataset/oact_swift_train.json", "/home/yuchong_li/KnowInject/data/rewrite_psv_train.json", "/home/yuchong_li/KnowInject/targeted_finetuning/lingshu7b_correction_only.json" ], "val_dataset": [], "cached_dataset": [], "cached_val_dataset": [], "split_dataset_ratio": 0.0, "dataset_num_proc": 8, "load_from_cache_file": false, "dataset_shuffle": true, "val_dataset_shuffle": false, "streaming": false, "interleave_prob": null, "stopping_strategy": "first_exhausted", "shuffle_buffer_size": 1000, "download_mode": "reuse_dataset_if_exists", "columns": {}, "strict": false, "model_name": null, "model_author": null, "custom_dataset_info": [], "quant_method": null, "quant_bits": null, "hqq_axis": null, "bnb_4bit_compute_dtype": "bfloat16", "bnb_4bit_quant_type": "nf4", "bnb_4bit_use_double_quant": true, "bnb_4bit_quant_storage": null, "max_new_tokens": 64, "temperature": 0.0, "top_k": null, "top_p": null, "repetition_penalty": null, "num_beams": 1, "stream": false, "stop_words": [], "logprobs": false, "top_logprobs": null, "structured_outputs_regex": null, "train_type": "full", "adapters": [], "external_plugins": [], "custom_register_path": [], "model_kwargs": {}, "load_args": false, "load_data_args": false, "packing": false, "packing_length": null, "packing_num_proc": 1, "lazy_tokenize": true, "use_hf": false, "ignore_args_error": false, "use_swift_lora": false, "freeze_parameters": [], "freeze_parameters_regex": null, "freeze_parameters_ratio": 0.0, "trainable_parameters": [ "model.visual.merger" ], "trainable_parameters_regex": null, "freeze_llm": false, "freeze_vit": false, "freeze_aligner": false, "target_modules": [ "all-linear" ], "target_regex": null, "target_parameters": null, "modules_to_save": [], "lora_rank": 8, "lora_alpha": 32, "lora_dropout": 0.05, "lora_bias": "none", "lora_dtype": null, "lorap_lr_ratio": null, "use_rslora": false, "use_dora": false, "lora_ga_batch_size": 2, "lora_ga_iters": 2, "lora_ga_max_length": 1024, "lora_ga_direction": "ArB2r", "lora_ga_scale": "stable", "lora_ga_stable_gamma": 16, "init_weights": true, "fourier_n_frequency": 2000, "fourier_scaling": 300.0, "boft_block_size": 4, "boft_block_num": 0, "boft_n_butterfly_factor": 1, "boft_dropout": 0.0, "vera_rank": 256, "vera_projection_prng_key": 0, "vera_dropout": 0.0, "vera_d_initial": 0.1, "adapter_act": "gelu", "adapter_length": 128, "adalora_target_r": 8, "adalora_init_r": 12, "adalora_tinit": 0, "adalora_tfinal": 0, "adalora_deltaT": 1, "adalora_beta1": 0.85, "adalora_beta2": 0.85, "adalora_orth_reg_weight": 0.5, "llamapro_num_new_blocks": 4, "llamapro_num_groups": null, "reft_layer_key": null, "reft_layers": null, "reft_rank": 4, "reft_intervention_type": "LoreftIntervention", "reft_args": null, "swanlab_token": null, "swanlab_project": "ms-swift", "swanlab_workspace": null, "swanlab_exp_name": null, "swanlab_notification_method": null, "swanlab_webhook_url": null, "swanlab_secret": null, "swanlab_sender_email": null, "swanlab_receiver_email": null, "swanlab_smtp_server": null, "swanlab_smtp_port": null, "swanlab_email_language": "zh", "swanlab_mode": "cloud", "add_version": true, "create_checkpoint_symlink": false, "zero_hpz_partition_size": null, "deepspeed_autotp_size": null, "swift_version": "4.0.0.dev0", "ckpt_dir": null, "rank": 0, "global_world_size": 4, "local_world_size": 4, "model_suffix": "lingshu_7b", "model_info": "ModelInfo(model_type='qwen2_5_vl', model_dir='/data/liyc/Code/med_vl/lingshu_7b', torch_dtype=torch.bfloat16, max_model_len=128000, quant_method=None, quant_bits=None, rope_scaling={'mrope_section': [16, 24, 24], 'rope_type': 'default', 'type': 'default'}, is_moe_model=False, is_multimodal=True, config=None, task_type='causal_lm', num_labels=None)", "model_meta": "ModelMeta(model_type='qwen2_5_vl', model_groups=[ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', hf_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-RL', hf_model_id='XiaomiMiMo/MiMo-VL-7B-RL', model_path=None, ms_revision=None, hf_revision=None)], template='mimo_vl', ignore_patterns=None, requires=None, tags=[])], loader=<class 'swift.model.models.qwen.Qwen2_5VLLoader'>, template=None, model_arch=MultiModelKeys(arch_name='qwen2_vl', embedding=None, module_list=None, lm_head=None, q_proj=None, k_proj=None, v_proj=None, o_proj=None, attention=None, mlp=None, down_proj=None, qkv_proj=None, qk_proj=None, qa_proj=None, qb_proj=None, kv_proj=None, kva_proj=None, kvb_proj=None, language_model=['model.language_model', 'lm_head'], aligner=['model.visual.merger'], vision_tower=['model.visual'], generator=[]), architectures=['Qwen2_5_VLForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.49', 'qwen_vl_utils>=0.0.6', 'decord'], tags=['vision', 'video'])", "model_dir": "/data/liyc/Code/med_vl/lingshu_7b", "template_meta": "QwenTemplateMeta(template_type='qwen2_5_vl', prefix=[], prompt=['<|im_start|>user\\n{{QUERY}}<|im_end|>\\n<|im_start|>assistant\\n'], chat_sep=['<|im_end|>\\n'], suffix=['<|im_end|>\\n'], template_cls=<class 'swift.template.templates.qwen.Qwen2_5VLTemplate'>, system_prefix=['<|im_start|>system\\n{{SYSTEM}}<|im_end|>\\n'], default_system='You are a helpful assistant.', auto_add_bos=False, stop_words=['<|endoftext|>'], agent_template='hermes', is_thinking=False, thinking_prefix='', non_thinking_prefix='', history_thinking_prefix='')", "_val_dataset_exists": [], "hub": "<class 'swift.hub.hub.MSHub'>", "evaluation_strategy": "epoch", "training_args": "Seq2SeqTrainingArguments(output_dir='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352', overwrite_output_dir=False, do_train=False, do_eval=False, do_predict=False, eval_strategy=<IntervalStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=4, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=5e-06, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=3.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.05, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.EPOCH: 'epoch'>, save_steps=500, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=None, dataloader_num_workers=8, dataloader_prefetch_factor=2, past_index=-1, run_name='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), parallelism_config=None, deepspeed={'fp16': {'enabled': 'auto', 'loss_scale': 0, 'loss_scale_window': 1000, 'initial_scale_power': 16, 'hysteresis': 2, 'min_loss_scale': 1}, 'bf16': {'enabled': 'auto'}, 'zero_optimization': {'stage': 2, 'offload_optimizer': {'device': 'none', 'pin_memory': True}, 'allgather_partitions': True, 'allgather_bucket_size': 200000000.0, 'overlap_comm': False, 'reduce_scatter': True, 'reduce_bucket_size': 200000000.0, 'contiguous_gradients': True}, 'gradient_accumulation_steps': 'auto', 'gradient_clipping': 'auto', 'steps_per_print': 2000, 'train_batch_size': 'auto', 'train_micro_batch_size_per_gpu': 'auto', 'wall_clock_breakdown': False}, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH_FUSED: 'adamw_torch_fused'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], project='huggingface', trackio_space_id='trackio', ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, hub_revision=None, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, liger_kernel_config=None, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, tuner_backend='peft', vit_gradient_checkpointing=True, router_aux_loss_coef=0.0, enable_dft_loss=False, enable_channel_loss=False, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, use_logits_to_keep=None, ds3_gather_for_generation=True, resume_only_model=False, optimizer=None, loss_type=None, eval_metric=None, callbacks=[], early_stop_interval=None, eval_use_evalscope=False, eval_dataset=[], eval_dataset_args=None, eval_limit=None, eval_generation_config=None, extra_eval_args=None, tuner_type='full', use_galore=False, galore_target_modules=None, galore_rank=128, galore_update_proj_gap=50, galore_scale=1.0, galore_proj_type='std', galore_optim_per_parameter=False, galore_with_embedding=False, galore_quantization=False, galore_proj_quant=False, galore_proj_bits=4, galore_proj_group_size=256, galore_cos_threshold=0.4, galore_gamma_proj=2, galore_queue_size=5, lisa_activated_layers=0, lisa_step_interval=20, use_flash_ckpt=False)"}1234567{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>systemYou are a helpful assistant.<|im_end|>{% endif %}<|im_start|>{{ message['role'] }}{% if message['content'] is string %}{{ message['content'] }}<|im_end|>{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant{% endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133{ "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "bos_token_id": 151643, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "image_token_id": 151655, "initializer_range": 0.02, "intermediate_size": 18944, "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": 32768, "text_config": { "_name_or_path": "/data/liyc/Code/med_vl/lingshu_7b", "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "initializer_range": 0.02, "intermediate_size": 18944, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl_text", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "pad_token_id": 151643, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": null, "use_cache": false, "use_sliding_window": false, "vision_token_id": 151654, "vocab_size": 152064 }, "tie_word_embeddings": false, "transformers_version": "4.57.0", "use_cache": false, "use_sliding_window": false, "video_token_id": 151656, "vision_config": { "depth": 32, "dtype": "bfloat16", "fullatt_block_indexes": [ 7, 15, 23, 31 ], "hidden_act": "silu", "hidden_size": 1280, "in_channels": 3, "in_chans": 3, "initializer_range": 0.02, "intermediate_size": 3420, "model_type": "qwen2_5_vl", "num_heads": 16, "out_hidden_size": 3584, "pad_token_id": 151643, "patch_size": 14, "spatial_merge_size": 2, "spatial_patch_size": 14, "temporal_patch_size": 2, "tokens_per_second": 2, "window_size": 112 }, "vision_end_token_id": 151653, "vision_start_token_id": 151652, "vision_token_id": 151654, "vocab_size": 152064}1234567891011121314{ "bos_token_id": 151643, "do_sample": true, "eos_token_id": [ 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.05, "temperature": 0.1, "top_k": 1, "top_p": 0.001, "transformers_version": "4.57.0"}1global_step29671234567891011121314151617181920212223242526272829{ "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_processor_type": "Qwen2VLImageProcessor", "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "max_pixels": 12845056, "merge_size": 2, "min_pixels": 3136, "patch_size": 14, "processor_class": "Qwen2_5_VLProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "size": { "longest_edge": 12845056, "shortest_edge": 3136 }, "temporal_patch_size": 2}12345678910111213141516171819202122232425262728293031{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151646": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151647": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151648": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151649": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151650": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151651": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151652": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151653": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151654": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151655": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151656": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151657": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151658": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151659": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151660": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151661": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151662": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151663": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151664": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 131072, "pad_token": "<|endoftext|>", "padding_side": "right", "processor_class": "Qwen2_5_VLProcessor", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "crop_size": null, "data_format": "channels_first", "default_to_square": true, "device": null, "do_center_crop": null, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": false, "fps": null, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "input_data_format": null, "max_frames": 768, "max_pixels": 12845056, "merge_size": 2, "min_frames": 4, "min_pixels": 3136, "num_frames": null, "pad_size": null, "patch_size": 14, "processor_class": "Qwen2_5_VLProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "size": { "longest_edge": 12845056, "shortest_edge": 3136 }, "temporal_patch_size": 2, "video_metadata": null, "video_processor_type": "Qwen2VLVideoProcessor"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760#!/usr/bin/env python
# Copyright (c) Microsoft Corporation.# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in# the future. Once extracted, the weights don't require DeepSpeed and can be used in any# application.## example:# python zero_to_fp32.py . output_dir/# or# python zero_to_fp32.py . output_dir/ --safe_serialization
import argparseimport torchimport globimport mathimport osimport reimport gcimport jsonimport numpy as npfrom tqdm import tqdmfrom collections import OrderedDictfrom dataclasses import dataclass
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with# DeepSpeed data structures it has to be available in the current python environment.from deepspeed.utils import loggerfrom deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS, FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES, FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
@dataclassclass zero_model_state: buffers: dict() param_shapes: dict() shared_params: list ds_version: int frozen_param_shapes: dict() frozen_param_fragments: dict()
debug = 0
# load to cpudevice = torch.device('cpu')
def atoi(text): return int(text) if text.isdigit() else text
def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in the comments) ''' return [atoi(c) for c in re.split(r'(\d+)', text)]
def get_model_state_file(checkpoint_dir, zero_stage): if not os.path.isdir(checkpoint_dir): raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
# there should be only one file if zero_stage <= 2: file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt") elif zero_stage == 3: file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
if not os.path.exists(file): raise FileNotFoundError(f"can't find model states file at '{file}'")
return file
def get_checkpoint_files(checkpoint_dir, glob_pattern): # XXX: need to test that this simple glob rule works for multi-node setup too ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
if len(ckpt_files) == 0: raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
return ckpt_files
def get_optim_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
def get_model_state_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
def parse_model_states(files): zero_model_states = [] for file in files: state_dict = torch.load(file, map_location=device, weights_only=False)
if BUFFER_NAMES not in state_dict: raise ValueError(f"{file} is not a model state checkpoint") buffer_names = state_dict[BUFFER_NAMES] if debug: print("Found buffers:", buffer_names)
# recover just the buffers while restoring them to fp32 if they were saved in fp16 buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names} param_shapes = state_dict[PARAM_SHAPES]
# collect parameters that are included in param_shapes param_names = [] for s in param_shapes: for name in s.keys(): param_names.append(name)
# update with frozen parameters frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None) if frozen_param_shapes is not None: if debug: print(f"Found frozen_param_shapes: {frozen_param_shapes}") param_names += list(frozen_param_shapes.keys())
# handle shared params shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
ds_version = state_dict.get(DS_VERSION, None)
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
z_model_state = zero_model_state(buffers=buffers, param_shapes=param_shapes, shared_params=shared_params, ds_version=ds_version, frozen_param_shapes=frozen_param_shapes, frozen_param_fragments=frozen_param_fragments) zero_model_states.append(z_model_state)
return zero_model_states
def parse_optim_states(files, ds_checkpoint_dir): total_files = len(files) state_dicts = [] for f in tqdm(files, desc='Loading checkpoint shards'): state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False) # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights # and also handle the case where it was already removed by another helper script state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None) state_dicts.append(state_dict)
if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]: raise ValueError(f"{files[0]} is not a zero checkpoint") zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE] world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert # parameters can be different from data parallelism for non-expert parameters. So we can just # use the max of the partition_count to get the dp world_size.
if type(world_size) is list: world_size = max(world_size)
if world_size != total_files: raise ValueError( f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. " "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes." )
# the groups are named differently in each stage if zero_stage <= 2: fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS elif zero_stage == 3: fp32_groups_key = FP32_FLAT_GROUPS else: raise ValueError(f"unknown zero stage {zero_stage}")
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))] return zero_stage, world_size, fp32_flat_groups
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters): """ Returns fp32 state_dict reconstructed from ds checkpoint
Args: - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
""" print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
optim_files = get_optim_files(ds_checkpoint_dir) zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir) print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
model_files = get_model_state_files(ds_checkpoint_dir)
zero_model_states = parse_model_states(model_files) print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
if zero_stage <= 2: return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters) elif zero_stage == 3: return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters)
def _zero2_merge_frozen_params(state_dict, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
frozen_param_shapes = zero_model_states[0].frozen_param_shapes frozen_param_fragments = zero_model_states[0].frozen_param_fragments
if debug: num_elem = sum(s.numel() for s in frozen_param_shapes.values()) print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in frozen_param_fragments.values()]) print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
state_dict[name] = frozen_param_fragments[name]
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
def _has_callable(obj, fn): attr = getattr(obj, fn, None) return callable(attr)
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes
# Reconstruction protocol: # # XXX: document this
if debug: for i in range(world_size): for j in range(len(fp32_flat_groups[0])): print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
# XXX: memory usage doubles here (zero2) num_param_groups = len(fp32_flat_groups[0]) merged_single_partition_of_fp32_groups = [] for i in range(num_param_groups): merged_partitions = [sd[i] for sd in fp32_flat_groups] full_single_fp32_vector = torch.cat(merged_partitions, 0) merged_single_partition_of_fp32_groups.append(full_single_fp32_vector) avail_numel = sum( [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
if debug: wanted_params = sum([len(shapes) for shapes in param_shapes]) wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes]) # not asserting if there is a mismatch due to possible padding print(f"Have {avail_numel} numels to process.") print(f"Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution total_numel = 0 total_params = 0 for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups): offset = 0 avail_numel = full_single_fp32_vector.numel() for name, shape in shapes.items():
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape) total_numel += unpartitioned_numel total_params += 1
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ") state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape) offset += unpartitioned_numel
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex # paddings performed in the code it's almost impossible to predict the exact numbers w/o the # live optimizer object, so we are checking that the numbers are within the right range align_to = 2 * world_size
def zero2_align(x): return align_to * math.ceil(x / align_to)
if debug: print(f"original offset={offset}, avail_numel={avail_numel}")
offset = zero2_align(offset) avail_numel = zero2_align(avail_numel)
if debug: print(f"aligned offset={offset}, avail_numel={avail_numel}")
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero2_merge_frozen_params(state_dict, zero_model_states)
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def zero3_partitioned_param_info(unpartitioned_numel, world_size): remainder = unpartitioned_numel % world_size padding_numel = (world_size - remainder) if remainder else 0 partitioned_numel = math.ceil(unpartitioned_numel / world_size) return partitioned_numel, padding_numel
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
if debug: for i in range(world_size): num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values()) print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
frozen_param_shapes = zero_model_states[0].frozen_param_shapes wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in zero_model_states[0].frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states) state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
class GatheredTensor: """ A pseudo tensor that collects partitioned weights. It is more memory efficient when there are multiple groups. """
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape): self.flat_groups = flat_groups self.flat_groups_offset = flat_groups_offset self.offset = offset self.partitioned_numel = partitioned_numel self.shape = shape self.dtype = self.flat_groups[0][0].dtype
def contiguous(self): """ Merge partitioned weights from flat_groups into a single tensor. """ end_idx = self.offset + self.partitioned_numel world_size = len(self.flat_groups) pad_flat_param_chunks = []
for rank_i in range(world_size): # for each rank, we need to collect weights from related group/groups flat_groups_at_rank_i = self.flat_groups[rank_i] start_group_id = None end_group_id = None for group_id in range(len(self.flat_groups_offset)): if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]: start_group_id = group_id if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]: end_group_id = group_id break # collect weights from related group/groups for group_id in range(start_group_id, end_group_id + 1): flat_tensor = flat_groups_at_rank_i[group_id] start_offset = self.offset - self.flat_groups_offset[group_id] end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id] pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
# collect weights from all ranks pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0) param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous() return param
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each # param, re-consolidating each param, while dealing with padding if any
# merge list of dicts, preserving order param_shapes = {k: v for d in param_shapes for k, v in d.items()}
if debug: for i in range(world_size): print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
wanted_params = len(param_shapes) wanted_numel = sum(shape.numel() for shape in param_shapes.values()) # not asserting if there is a mismatch due to possible padding avail_numel = fp32_flat_groups[0].numel() * world_size print(f"Trainable params: Have {avail_numel} numels to process.") print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution offset = 0 total_numel = 0 total_params = 0 flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]])) for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'): unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel total_params += 1 partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
# memory efficient tensor tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape) state_dict[name] = tensor offset += partitioned_numel
offset *= world_size
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def to_torch_tensor(state_dict, return_empty_tensor=False): """ Convert state_dict of GatheredTensor to torch tensor """ torch_state_dict = {} converted_tensors = {} for name, tensor in state_dict.items(): tensor_id = id(tensor) if tensor_id in converted_tensors: # shared tensors shared_tensor = torch_state_dict[converted_tensors[tensor_id]] torch_state_dict[name] = shared_tensor else: converted_tensors[tensor_id] = name if return_empty_tensor: torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype) else: torch_state_dict[name] = tensor.contiguous() return torch_state_dict
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False, lazy_mode=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example via a model hub.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters - ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient. Convert the pesduo tensor to torch tensor by ``.contiguous()``
Returns: - pytorch ``state_dict``
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint # do the training and checkpoint saving state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu model = model.cpu() # move to cpu model.load_state_dict(state_dict) # submit to model hub or save the model to share with others
In this example the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
Note: the above usage may not work if your application doesn't have sufficient free CPU memory. You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with the checkpoint. Or you can load state_dict in lazy mode ::
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu for name, lazy_tensor in state_dict.item(): tensor = lazy_tensor.contiguous() # to cpu print(name, tensor) # del tensor to release memory if it no longer in use """ if tag is None: latest_path = os.path.join(checkpoint_dir, 'latest') if os.path.isfile(latest_path): with open(latest_path, 'r') as fd: tag = fd.read().strip() else: raise ValueError(f"Unable to find 'latest' file at {latest_path}")
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
if not os.path.isdir(ds_checkpoint_dir): raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters) if lazy_mode: return state_dict else: return to_torch_tensor(state_dict)
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_dir, max_shard_size="5GB", safe_serialization=False, tag=None, exclude_frozen_parameters=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``output_dir``: directory to the pytorch fp32 state_dict output files - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`). - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters """
# Dependency pre-check if safe_serialization: try: from safetensors.torch import save_file except ImportError: print('If you want to use `safe_serialization`, please `pip install safetensors`') raise if max_shard_size is not None: try: from huggingface_hub import split_torch_state_dict_into_shards except ImportError: print('If you want to use `max_shard_size`, please `pip install huggingface_hub`') raise
# Convert zero checkpoint to state_dict state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters, lazy_mode=True)
# Shard the model if it is too big. weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin" if max_shard_size is not None: filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors") # an memory-efficient approach for sharding empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True) state_dict_split = split_torch_state_dict_into_shards(empty_state_dict, filename_pattern=filename_pattern, max_shard_size=max_shard_size) else: from collections import namedtuple StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"]) state_dict_split = StateDictSplit(is_sharded=False, filename_to_tensors={weights_name: list(state_dict.keys())})
# Save the model by shard os.makedirs(output_dir, exist_ok=True) filename_to_tensors = state_dict_split.filename_to_tensors.items() for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"): shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors} shard_state_dict = to_torch_tensor(shard_state_dict) output_path = os.path.join(output_dir, shard_file) if safe_serialization: save_file(shard_state_dict, output_path, metadata={"format": "pt"}) else: torch.save(shard_state_dict, output_path) # release the memory of current shard for tensor_name in list(shard_state_dict.keys()): del state_dict[tensor_name] del shard_state_dict[tensor_name] del shard_state_dict gc.collect()
# Save index if sharded if state_dict_split.is_sharded: index = { "metadata": state_dict_split.metadata, "weight_map": state_dict_split.tensor_to_filename, } save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json" save_index_file = os.path.join(output_dir, save_index_file) with open(save_index_file, "w", encoding="utf-8") as f: content = json.dumps(index, indent=2, sort_keys=True) + "\n" f.write(content)
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None): """ 1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the provided model
Args: - ``model``: the model object to update - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
Returns: - ``model`: modified model
Make sure you have plenty of CPU memory available before you call this function. If you don't have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it conveniently placed for you in the checkpoint folder.
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir) # submit to model hub or save the model to share with others
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
""" logger.info("Extracting fp32 weights") state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
logger.info("Overwriting model with fp32 weights") model = model.cpu() model.load_state_dict(state_dict, strict=False)
return model
if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("checkpoint_dir", type=str, help="path to the desired checkpoint folder, e.g., path/checkpoint-12") parser.add_argument("output_dir", type=str, help="directory to the pytorch fp32 state_dict output files" "(e.g. path/checkpoint-12-output/)") parser.add_argument( "--max_shard_size", type=str, default="5GB", help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size" "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`" "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances" "without CPU OOM issues.") parser.add_argument( "--safe_serialization", default=False, action='store_true', help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).") parser.add_argument("-t", "--tag", type=str, default=None, help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1") parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters") parser.add_argument("-d", "--debug", action='store_true', help="enable debug") args = parser.parse_args()
debug = args.debug
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_dir, max_shard_size=args.max_shard_size, safe_serialization=args.safe_serialization, tag=args.tag, exclude_frozen_parameters=args.exclude_frozen_parameters)123456789101112131415161718192021222324{ "</tool_call>": 151658, "<tool_call>": 151657, "<|box_end|>": 151649, "<|box_start|>": 151648, "<|endoftext|>": 151643, "<|file_sep|>": 151664, "<|fim_middle|>": 151660, "<|fim_pad|>": 151662, "<|fim_prefix|>": 151659, "<|fim_suffix|>": 151661, "<|im_end|>": 151645, "<|im_start|>": 151644, "<|image_pad|>": 151655, "<|object_ref_end|>": 151647, "<|object_ref_start|>": 151646, "<|quad_end|>": 151651, "<|quad_start|>": 151650, "<|repo_name|>": 151663, "<|video_pad|>": 151656, "<|vision_end|>": 151653, "<|vision_pad|>": 151654, "<|vision_start|>": 151652}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397{ "output_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352", "overwrite_output_dir": false, "do_train": false, "do_eval": false, "do_predict": false, "eval_strategy": "no", "prediction_loss_only": false, "per_device_train_batch_size": 4, "per_device_eval_batch_size": 1, "per_gpu_train_batch_size": null, "per_gpu_eval_batch_size": null, "gradient_accumulation_steps": 4, "eval_accumulation_steps": null, "eval_delay": 0, "torch_empty_cache_steps": null, "learning_rate": 5e-06, "weight_decay": 0.1, "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "num_train_epochs": 3.0, "max_steps": -1, "lr_scheduler_type": "cosine", "lr_scheduler_kwargs": null, "warmup_ratio": 0.05, "warmup_steps": 0, "log_level": "passive", "log_level_replica": "warning", "log_on_each_node": true, "logging_dir": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352/runs", "logging_strategy": "steps", "logging_first_step": true, "logging_steps": 5, "logging_nan_inf_filter": true, "save_strategy": "epoch", "save_steps": 500, "save_total_limit": null, "save_safetensors": true, "save_on_each_node": false, "save_only_model": false, "restore_callback_states_from_checkpoint": false, "no_cuda": false, "use_cpu": false, "use_mps_device": false, "seed": 42, "data_seed": 42, "jit_mode_eval": false, "bf16": true, "fp16": false, "fp16_opt_level": "O1", "half_precision_backend": "auto", "bf16_full_eval": false, "fp16_full_eval": false, "tf32": null, "local_rank": 0, "ddp_backend": null, "tpu_num_cores": null, "tpu_metrics_debug": false, "debug": null, "dataloader_drop_last": false, "eval_steps": null, "dataloader_num_workers": 8, "dataloader_prefetch_factor": null, "past_index": -1, "run_name": "/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352", "disable_tqdm": null, "remove_unused_columns": true, "label_names": null, "load_best_model_at_end": false, "metric_for_best_model": "loss", "greater_is_better": false, "ignore_data_skip": false, "fsdp": [], "fsdp_min_num_params": 0, "fsdp_config": null, "fsdp_transformer_layer_cls_to_wrap": null, "accelerator_config": { "dispatch_batches": false }, "parallelism_config": null, "deepspeed": { "fp16": { "enabled": "auto", "loss_scale": 0, "loss_scale_window": 1000, "initial_scale_power": 16, "hysteresis": 2, "min_loss_scale": 1 }, "bf16": { "enabled": "auto" }, "zero_optimization": { "stage": 2, "offload_optimizer": { "device": "none", "pin_memory": true }, "allgather_partitions": true, "allgather_bucket_size": 200000000.0, "overlap_comm": false, "reduce_scatter": true, "reduce_bucket_size": 200000000.0, "contiguous_gradients": true }, "gradient_accumulation_steps": "auto", "gradient_clipping": "auto", "steps_per_print": 2000, "train_batch_size": "auto", "train_micro_batch_size_per_gpu": "auto", "wall_clock_breakdown": false }, "label_smoothing_factor": 0.0, "optim": "adamw_torch_fused", "optim_args": null, "adafactor": false, "group_by_length": false, "length_column_name": "length", "report_to": [ "tensorboard" ], "project": "huggingface", "trackio_space_id": "trackio", "ddp_find_unused_parameters": null, "ddp_bucket_cap_mb": null, "ddp_broadcast_buffers": null, "dataloader_pin_memory": true, "dataloader_persistent_workers": false, "skip_memory_metrics": true, "use_legacy_prediction_loop": false, "push_to_hub": false, "resume_from_checkpoint": null, "hub_model_id": null, "hub_strategy": "every_save", "hub_token": null, "hub_private_repo": null, "hub_always_push": false, "hub_revision": null, "gradient_checkpointing": true, "gradient_checkpointing_kwargs": null, "include_inputs_for_metrics": false, "include_for_metrics": [], "eval_do_concat_batches": true, "fp16_backend": "auto", "push_to_hub_model_id": null, "push_to_hub_organization": null, "push_to_hub_token": null, "mp_parameters": "", "auto_find_batch_size": false, "full_determinism": false, "torchdynamo": null, "ray_scope": "last", "ddp_timeout": 18000000, "torch_compile": false, "torch_compile_backend": null, "torch_compile_mode": null, "include_tokens_per_second": false, "include_num_input_tokens_seen": false, "neftune_noise_alpha": null, "optim_target_modules": null, "batch_eval_metrics": false, "eval_on_start": false, "use_liger_kernel": false, "liger_kernel_config": null, "eval_use_gather_object": false, "average_tokens_across_devices": true, "sortish_sampler": false, "predict_with_generate": false, "generation_max_length": null, "generation_num_beams": null, "generation_config": null, "tuner_backend": "peft", "vit_gradient_checkpointing": null, "router_aux_loss_coef": 0.0, "enable_dft_loss": false, "enable_channel_loss": false, "check_model": true, "acc_strategy": "token", "train_dataloader_shuffle": true, "max_epochs": null, "aligner_lr": null, "vit_lr": null, "use_logits_to_keep": null, "ds3_gather_for_generation": true, "resume_only_model": false, "optimizer": null, "loss_type": null, "eval_metric": null, "callbacks": [], "early_stop_interval": null, "eval_use_evalscope": false, "eval_dataset": [], "eval_dataset_args": null, "eval_limit": null, "eval_generation_config": null, "extra_eval_args": null, "tuner_type": "full", "use_galore": false, "galore_target_modules": null, "galore_rank": 128, "galore_update_proj_gap": 50, "galore_scale": 1.0, "galore_proj_type": "std", "galore_optim_per_parameter": false, "galore_with_embedding": false, "galore_quantization": false, "galore_proj_quant": false, "galore_proj_bits": 4, "galore_proj_group_size": 256, "galore_cos_threshold": 0.4, "galore_gamma_proj": 2, "galore_queue_size": 5, "lisa_activated_layers": 0, "lisa_step_interval": 20, "use_flash_ckpt": false, "use_ray": false, "ray_exp_name": null, "device_groups": null, "model": "/data/liyc/Code/med_vl/lingshu_7b", "model_type": "qwen2_5_vl", "model_revision": null, "task_type": "causal_lm", "torch_dtype": "bfloat16", "attn_impl": "flash_attn", "experts_impl": null, "new_special_tokens": [], "num_labels": null, "problem_type": null, "rope_scaling": null, "device_map": null, "max_memory": {}, "max_model_len": null, "local_repo_path": null, "init_strategy": null, "template": "qwen2_5_vl", "system": null, "max_length": 4096, "truncation_strategy": "delete", "max_pixels": null, "agent_template": null, "norm_bbox": null, "use_chat_template": true, "padding_side": "right", "padding_free": false, "loss_scale": "default", "sequence_parallel_size": 1, "template_backend": "swift", "response_prefix": null, "enable_thinking": null, "add_non_thinking_prefix": true, "dataset": [ "/home/yuchong_li/KnowInject/make_oact_dataset/oact_swift_train.json", "/home/yuchong_li/KnowInject/data/rewrite_psv_train.json", "/home/yuchong_li/KnowInject/targeted_finetuning/lingshu7b_correction_only.json" ], "val_dataset": [], "cached_dataset": [], "cached_val_dataset": [], "split_dataset_ratio": 0.0, "dataset_num_proc": 8, "load_from_cache_file": false, "dataset_shuffle": true, "val_dataset_shuffle": false, "streaming": false, "interleave_prob": null, "stopping_strategy": "first_exhausted", "shuffle_buffer_size": 1000, "download_mode": "reuse_dataset_if_exists", "columns": {}, "strict": false, "model_name": null, "model_author": null, "custom_dataset_info": [], "quant_method": null, "quant_bits": null, "hqq_axis": null, "bnb_4bit_compute_dtype": "bfloat16", "bnb_4bit_quant_type": "nf4", "bnb_4bit_use_double_quant": true, "bnb_4bit_quant_storage": null, "max_new_tokens": 64, "temperature": 0.0, "top_k": null, "top_p": null, "repetition_penalty": null, "num_beams": 1, "stream": false, "stop_words": [], "logprobs": false, "top_logprobs": null, "structured_outputs_regex": null, "train_type": "full", "adapters": [], "external_plugins": [], "custom_register_path": [], "model_kwargs": {}, "load_args": false, "load_data_args": false, "packing": false, "packing_length": null, "packing_num_proc": 1, "lazy_tokenize": true, "use_hf": false, "ignore_args_error": false, "use_swift_lora": false, "freeze_parameters": [], "freeze_parameters_regex": null, "freeze_parameters_ratio": 0.0, "trainable_parameters": [ "model.visual.merger" ], "trainable_parameters_regex": null, "freeze_llm": false, "freeze_vit": false, "freeze_aligner": false, "target_modules": [ "all-linear" ], "target_regex": null, "target_parameters": null, "modules_to_save": [], "lora_rank": 8, "lora_alpha": 32, "lora_dropout": 0.05, "lora_bias": "none", "lora_dtype": null, "lorap_lr_ratio": null, "use_rslora": false, "use_dora": false, "lora_ga_batch_size": 2, "lora_ga_iters": 2, "lora_ga_max_length": 1024, "lora_ga_direction": "ArB2r", "lora_ga_scale": "stable", "lora_ga_stable_gamma": 16, "init_weights": true, "fourier_n_frequency": 2000, "fourier_scaling": 300.0, "boft_block_size": 4, "boft_block_num": 0, "boft_n_butterfly_factor": 1, "boft_dropout": 0.0, "vera_rank": 256, "vera_projection_prng_key": 0, "vera_dropout": 0.0, "vera_d_initial": 0.1, "adapter_act": "gelu", "adapter_length": 128, "adalora_target_r": 8, "adalora_init_r": 12, "adalora_tinit": 0, "adalora_tfinal": 0, "adalora_deltaT": 1, "adalora_beta1": 0.85, "adalora_beta2": 0.85, "adalora_orth_reg_weight": 0.5, "llamapro_num_new_blocks": 4, "llamapro_num_groups": null, "reft_layer_key": null, "reft_layers": null, "reft_rank": 4, "reft_intervention_type": "LoreftIntervention", "reft_args": null, "swanlab_token": null, "swanlab_project": "ms-swift", "swanlab_workspace": null, "swanlab_exp_name": null, "swanlab_notification_method": null, "swanlab_webhook_url": null, "swanlab_secret": null, "swanlab_sender_email": null, "swanlab_receiver_email": null, "swanlab_smtp_server": null, "swanlab_smtp_port": null, "swanlab_email_language": "zh", "swanlab_mode": "cloud", "add_version": true, "create_checkpoint_symlink": false, "zero_hpz_partition_size": null, "deepspeed_autotp_size": null, "swift_version": "4.0.0.dev0", "ckpt_dir": null, "rank": 0, "global_world_size": 4, "local_world_size": 4, "model_suffix": "lingshu_7b", "model_info": "ModelInfo(model_type='qwen2_5_vl', model_dir='/data/liyc/Code/med_vl/lingshu_7b', torch_dtype=torch.bfloat16, max_model_len=128000, quant_method=None, quant_bits=None, rope_scaling={'mrope_section': [16, 24, 24], 'rope_type': 'default', 'type': 'default'}, is_moe_model=False, is_multimodal=True, config=None, task_type='causal_lm', num_labels=None)", "model_meta": "ModelMeta(model_type='qwen2_5_vl', model_groups=[ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-3B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-7B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-32B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', hf_model_id='Qwen/Qwen2.5-VL-72B-Instruct-AWQ', model_path=None, ms_revision=None, hf_revision=None)], template='qwen2_5_vl', ignore_patterns=None, requires=None, tags=[]), ModelGroup(models=[Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', hf_model_id='XiaomiMiMo/MiMo-VL-7B-SFT', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='XiaomiMiMo/MiMo-VL-7B-RL', hf_model_id='XiaomiMiMo/MiMo-VL-7B-RL', model_path=None, ms_revision=None, hf_revision=None)], template='mimo_vl', ignore_patterns=None, requires=None, tags=[])], loader=<class 'swift.model.models.qwen.Qwen2_5VLLoader'>, template=None, model_arch=MultiModelKeys(arch_name='qwen2_vl', embedding=None, module_list=None, lm_head=None, q_proj=None, k_proj=None, v_proj=None, o_proj=None, attention=None, mlp=None, down_proj=None, qkv_proj=None, qk_proj=None, qa_proj=None, qb_proj=None, kv_proj=None, kva_proj=None, kvb_proj=None, language_model=['model.language_model', 'lm_head'], aligner=['model.visual.merger'], vision_tower=['model.visual'], generator=[]), architectures=['Qwen2_5_VLForConditionalGeneration'], additional_saved_files=[], torch_dtype=None, is_multimodal=True, is_reward=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.49', 'qwen_vl_utils>=0.0.6', 'decord'], tags=['vision', 'video'])", "model_dir": "/data/liyc/Code/med_vl/lingshu_7b", "template_meta": "QwenTemplateMeta(template_type='qwen2_5_vl', prefix=[], prompt=['<|im_start|>user\\n{{QUERY}}<|im_end|>\\n<|im_start|>assistant\\n'], chat_sep=['<|im_end|>\\n'], suffix=['<|im_end|>\\n'], template_cls=<class 'swift.template.templates.qwen.Qwen2_5VLTemplate'>, system_prefix=['<|im_start|>system\\n{{SYSTEM}}<|im_end|>\\n'], default_system='You are a helpful assistant.', auto_add_bos=False, stop_words=['<|endoftext|>'], agent_template='hermes', is_thinking=False, thinking_prefix='', non_thinking_prefix='', history_thinking_prefix='')", "_val_dataset_exists": [], "hub": "<class 'swift.hub.hub.MSHub'>", "evaluation_strategy": "epoch", "training_args": "Seq2SeqTrainingArguments(output_dir='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352', overwrite_output_dir=False, do_train=False, do_eval=False, do_predict=False, eval_strategy=<IntervalStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=4, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=4, eval_accumulation_steps=None, eval_delay=0, torch_empty_cache_steps=None, learning_rate=5e-06, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=3.0, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs=None, warmup_ratio=0.05, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<SaveStrategy.EPOCH: 'epoch'>, save_steps=500, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend=None, tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=None, dataloader_num_workers=8, dataloader_prefetch_factor=2, past_index=-1, run_name='/data/liyc/Output/oact_swift_train/lingshu7b/oact_train_psv26_52k/v0-20260407-174352', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None, use_configured_state=False), parallelism_config=None, deepspeed={'fp16': {'enabled': 'auto', 'loss_scale': 0, 'loss_scale_window': 1000, 'initial_scale_power': 16, 'hysteresis': 2, 'min_loss_scale': 1}, 'bf16': {'enabled': 'auto'}, 'zero_optimization': {'stage': 2, 'offload_optimizer': {'device': 'none', 'pin_memory': True}, 'allgather_partitions': True, 'allgather_bucket_size': 200000000.0, 'overlap_comm': False, 'reduce_scatter': True, 'reduce_bucket_size': 200000000.0, 'contiguous_gradients': True}, 'gradient_accumulation_steps': 'auto', 'gradient_clipping': 'auto', 'steps_per_print': 2000, 'train_batch_size': 'auto', 'train_micro_batch_size_per_gpu': 'auto', 'wall_clock_breakdown': False}, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH_FUSED: 'adamw_torch_fused'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], project='huggingface', trackio_space_id='trackio', ddp_find_unused_parameters=None, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=None, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=None, hub_always_push=False, hub_revision=None, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, include_for_metrics=[], eval_do_concat_batches=True, fp16_backend='auto', push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=18000000, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, include_tokens_per_second=None, include_num_input_tokens_seen=None, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, eval_on_start=False, use_liger_kernel=False, liger_kernel_config=None, eval_use_gather_object=False, average_tokens_across_devices=None, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=None, tuner_backend='peft', vit_gradient_checkpointing=True, router_aux_loss_coef=0.0, enable_dft_loss=False, enable_channel_loss=False, check_model=True, acc_strategy='token', train_dataloader_shuffle=True, max_epochs=None, aligner_lr=None, vit_lr=None, use_logits_to_keep=None, ds3_gather_for_generation=True, resume_only_model=False, optimizer=None, loss_type=None, eval_metric=None, callbacks=[], early_stop_interval=None, eval_use_evalscope=False, eval_dataset=[], eval_dataset_args=None, eval_limit=None, eval_generation_config=None, extra_eval_args=None, tuner_type='full', use_galore=False, galore_target_modules=None, galore_rank=128, galore_update_proj_gap=50, galore_scale=1.0, galore_proj_type='std', galore_optim_per_parameter=False, galore_with_embedding=False, galore_quantization=False, galore_proj_quant=False, galore_proj_bits=4, galore_proj_group_size=256, galore_cos_threshold=0.4, galore_gamma_proj=2, galore_queue_size=5, lisa_activated_layers=0, lisa_step_interval=20, use_flash_ckpt=False)"}1234567{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>systemYou are a helpful assistant.<|im_end|>{% endif %}<|im_start|>{{ message['role'] }}{% if message['content'] is string %}{{ message['content'] }}<|im_end|>{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant{% endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133{ "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "bos_token_id": 151643, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "image_token_id": 151655, "initializer_range": 0.02, "intermediate_size": 18944, "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": 32768, "text_config": { "_name_or_path": "/data/liyc/Code/med_vl/lingshu_7b", "architectures": [ "Qwen2_5_VLForConditionalGeneration" ], "attention_dropout": 0.0, "dtype": "bfloat16", "eos_token_id": 151645, "hidden_act": "silu", "hidden_size": 3584, "initializer_range": 0.02, "intermediate_size": 18944, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "max_position_embeddings": 128000, "max_window_layers": 28, "model_type": "qwen2_5_vl_text", "num_attention_heads": 28, "num_hidden_layers": 28, "num_key_value_heads": 4, "pad_token_id": 151643, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_section": [ 16, 24, 24 ], "rope_type": "default", "type": "default" }, "rope_theta": 1000000.0, "sliding_window": null, "use_cache": false, "use_sliding_window": false, "vision_token_id": 151654, "vocab_size": 152064 }, "tie_word_embeddings": false, "transformers_version": "4.57.0", "use_cache": false, "use_sliding_window": false, "video_token_id": 151656, "vision_config": { "depth": 32, "dtype": "bfloat16", "fullatt_block_indexes": [ 7, 15, 23, 31 ], "hidden_act": "silu", "hidden_size": 1280, "in_channels": 3, "in_chans": 3, "initializer_range": 0.02, "intermediate_size": 3420, "model_type": "qwen2_5_vl", "num_heads": 16, "out_hidden_size": 3584, "pad_token_id": 151643, "patch_size": 14, "spatial_merge_size": 2, "spatial_patch_size": 14, "temporal_patch_size": 2, "tokens_per_second": 2, "window_size": 112 }, "vision_end_token_id": 151653, "vision_start_token_id": 151652, "vision_token_id": 151654, "vocab_size": 152064}1234567891011121314{ "bos_token_id": 151643, "do_sample": true, "eos_token_id": [ 151645, 151643 ], "pad_token_id": 151643, "repetition_penalty": 1.05, "temperature": 0.1, "top_k": 1, "top_p": 0.001, "transformers_version": "4.57.0"}1global_step2967123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737{ "metadata": { "total_parameters": 8292166656, "total_size": 16584333312 }, "weight_map": { "lm_head.weight": "model-00004-of-00004.safetensors", "model.embed_tokens.weight": "model-00001-of-00004.safetensors", "model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.16.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.16.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.16.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.16.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.16.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.16.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.17.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.17.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.17.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.18.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.19.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.20.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.input_layernorm.weight": "model-00004-of-00004.safetensors", "model.layers.26.mlp.down_proj.weight": "model-00004-of-00004.safetensors", "model.layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.post_attention_layernorm.weight": "model-00004-of-00004.safetensors", "model.layers.26.self_attn.k_proj.bias": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.q_proj.bias": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.v_proj.bias": "model-00003-of-00004.safetensors", "model.layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors", "model.layers.27.input_layernorm.weight": "model-00004-of-00004.safetensors", "model.layers.27.mlp.down_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.mlp.gate_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.mlp.up_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.post_attention_layernorm.weight": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.k_proj.bias": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.k_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.o_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.q_proj.bias": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.q_proj.weight": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.v_proj.bias": "model-00004-of-00004.safetensors", "model.layers.27.self_attn.v_proj.weight": "model-00004-of-00004.safetensors", "model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.5.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.5.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "model.layers.5.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.5.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.5.self_attn.k_proj.bias": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.q_proj.bias": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.v_proj.bias": "model-00001-of-00004.safetensors", "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors", "model.layers.6.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.6.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.6.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.7.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.7.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.8.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.k_proj.bias": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.q_proj.bias": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.v_proj.bias": "model-00002-of-00004.safetensors", "model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors", "model.norm.weight": "model-00004-of-00004.safetensors", "visual.blocks.0.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.0.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.0.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.0.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.1.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.1.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.1.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.10.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.10.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.10.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.10.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.11.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.11.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.11.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.11.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.12.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.12.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.12.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.12.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.13.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.13.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.13.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.13.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.14.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.14.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.14.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.14.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.15.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.15.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.15.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.15.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.16.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.16.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.16.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.16.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.17.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.17.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.17.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.17.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.18.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.18.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.18.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.18.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.19.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.19.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.19.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.19.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.2.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.2.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.2.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.20.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.20.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.20.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.20.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.21.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.21.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.21.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.21.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.22.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.22.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.22.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.22.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.23.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.23.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.23.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.23.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.24.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.24.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.24.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.24.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.25.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.25.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.25.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.25.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.26.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.26.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.26.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.26.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.27.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.27.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.27.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.27.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.28.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.28.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.28.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.28.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.29.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.29.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.29.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.29.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.3.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.3.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.3.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.30.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.30.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.30.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.30.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.31.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.31.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.31.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.31.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.4.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.4.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.4.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.5.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.5.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.5.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.6.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.6.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.6.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.7.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.7.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.7.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.8.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.8.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.8.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.8.norm2.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.attn.proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.9.attn.proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.attn.qkv.bias": "model-00001-of-00004.safetensors", "visual.blocks.9.attn.qkv.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.down_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.down_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.gate_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.gate_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.up_proj.bias": "model-00001-of-00004.safetensors", "visual.blocks.9.mlp.up_proj.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.norm1.weight": "model-00001-of-00004.safetensors", "visual.blocks.9.norm2.weight": "model-00001-of-00004.safetensors", "visual.merger.ln_q.weight": "model-00001-of-00004.safetensors", "visual.merger.mlp.0.bias": "model-00001-of-00004.safetensors", "visual.merger.mlp.0.weight": "model-00001-of-00004.safetensors", "visual.merger.mlp.2.bias": "model-00001-of-00004.safetensors", "visual.merger.mlp.2.weight": "model-00001-of-00004.safetensors", "visual.patch_embed.proj.weight": "model-00001-of-00004.safetensors" }}12345678910111213141516171819202122232425262728293031{ "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "add_bos_token": false, "add_prefix_space": false, "added_tokens_decoder": { "151643": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151644": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151645": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151646": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151647": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151648": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151649": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151650": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151651": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151652": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151653": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151654": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151655": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151656": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "151657": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151658": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151659": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151660": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151661": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151662": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151663": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "151664": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false } }, "additional_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": {}, "model_max_length": 131072, "pad_token": "<|endoftext|>", "padding_side": "right", "processor_class": "Qwen2_5_VLProcessor", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}12345678910111213141516171819202122232425262728293031323334353637383940414243{ "crop_size": null, "data_format": "channels_first", "default_to_square": true, "device": null, "do_center_crop": null, "do_convert_rgb": true, "do_normalize": true, "do_rescale": true, "do_resize": true, "do_sample_frames": false, "fps": null, "image_mean": [ 0.48145466, 0.4578275, 0.40821073 ], "image_std": [ 0.26862954, 0.26130258, 0.27577711 ], "input_data_format": null, "max_frames": 768, "max_pixels": 12845056, "merge_size": 2, "min_frames": 4, "min_pixels": 3136, "num_frames": null, "pad_size": null, "patch_size": 14, "processor_class": "Qwen2_5_VLProcessor", "resample": 3, "rescale_factor": 0.00392156862745098, "return_metadata": false, "size": { "longest_edge": 12845056, "shortest_edge": 3136 }, "temporal_patch_size": 2, "video_metadata": null, "video_processor_type": "Qwen2VLVideoProcessor"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760#!/usr/bin/env python
# Copyright (c) Microsoft Corporation.# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in# the future. Once extracted, the weights don't require DeepSpeed and can be used in any# application.## example:# python zero_to_fp32.py . output_dir/# or# python zero_to_fp32.py . output_dir/ --safe_serialization
import argparseimport torchimport globimport mathimport osimport reimport gcimport jsonimport numpy as npfrom tqdm import tqdmfrom collections import OrderedDictfrom dataclasses import dataclass
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with# DeepSpeed data structures it has to be available in the current python environment.from deepspeed.utils import loggerfrom deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS, FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES, FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
@dataclassclass zero_model_state: buffers: dict() param_shapes: dict() shared_params: list ds_version: int frozen_param_shapes: dict() frozen_param_fragments: dict()
debug = 0
# load to cpudevice = torch.device('cpu')
def atoi(text): return int(text) if text.isdigit() else text
def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in the comments) ''' return [atoi(c) for c in re.split(r'(\d+)', text)]
def get_model_state_file(checkpoint_dir, zero_stage): if not os.path.isdir(checkpoint_dir): raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
# there should be only one file if zero_stage <= 2: file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt") elif zero_stage == 3: file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
if not os.path.exists(file): raise FileNotFoundError(f"can't find model states file at '{file}'")
return file
def get_checkpoint_files(checkpoint_dir, glob_pattern): # XXX: need to test that this simple glob rule works for multi-node setup too ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
if len(ckpt_files) == 0: raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
return ckpt_files
def get_optim_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
def get_model_state_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
def parse_model_states(files): zero_model_states = [] for file in files: state_dict = torch.load(file, map_location=device, weights_only=False)
if BUFFER_NAMES not in state_dict: raise ValueError(f"{file} is not a model state checkpoint") buffer_names = state_dict[BUFFER_NAMES] if debug: print("Found buffers:", buffer_names)
# recover just the buffers while restoring them to fp32 if they were saved in fp16 buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names} param_shapes = state_dict[PARAM_SHAPES]
# collect parameters that are included in param_shapes param_names = [] for s in param_shapes: for name in s.keys(): param_names.append(name)
# update with frozen parameters frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None) if frozen_param_shapes is not None: if debug: print(f"Found frozen_param_shapes: {frozen_param_shapes}") param_names += list(frozen_param_shapes.keys())
# handle shared params shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
ds_version = state_dict.get(DS_VERSION, None)
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
z_model_state = zero_model_state(buffers=buffers, param_shapes=param_shapes, shared_params=shared_params, ds_version=ds_version, frozen_param_shapes=frozen_param_shapes, frozen_param_fragments=frozen_param_fragments) zero_model_states.append(z_model_state)
return zero_model_states
def parse_optim_states(files, ds_checkpoint_dir): total_files = len(files) state_dicts = [] for f in tqdm(files, desc='Loading checkpoint shards'): state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False) # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights # and also handle the case where it was already removed by another helper script state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None) state_dicts.append(state_dict)
if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]: raise ValueError(f"{files[0]} is not a zero checkpoint") zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE] world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert # parameters can be different from data parallelism for non-expert parameters. So we can just # use the max of the partition_count to get the dp world_size.
if type(world_size) is list: world_size = max(world_size)
if world_size != total_files: raise ValueError( f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. " "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes." )
# the groups are named differently in each stage if zero_stage <= 2: fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS elif zero_stage == 3: fp32_groups_key = FP32_FLAT_GROUPS else: raise ValueError(f"unknown zero stage {zero_stage}")
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))] return zero_stage, world_size, fp32_flat_groups
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters): """ Returns fp32 state_dict reconstructed from ds checkpoint
Args: - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
""" print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
optim_files = get_optim_files(ds_checkpoint_dir) zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir) print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
model_files = get_model_state_files(ds_checkpoint_dir)
zero_model_states = parse_model_states(model_files) print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
if zero_stage <= 2: return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters) elif zero_stage == 3: return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters)
def _zero2_merge_frozen_params(state_dict, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
frozen_param_shapes = zero_model_states[0].frozen_param_shapes frozen_param_fragments = zero_model_states[0].frozen_param_fragments
if debug: num_elem = sum(s.numel() for s in frozen_param_shapes.values()) print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in frozen_param_fragments.values()]) print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
state_dict[name] = frozen_param_fragments[name]
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
def _has_callable(obj, fn): attr = getattr(obj, fn, None) return callable(attr)
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes
# Reconstruction protocol: # # XXX: document this
if debug: for i in range(world_size): for j in range(len(fp32_flat_groups[0])): print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
# XXX: memory usage doubles here (zero2) num_param_groups = len(fp32_flat_groups[0]) merged_single_partition_of_fp32_groups = [] for i in range(num_param_groups): merged_partitions = [sd[i] for sd in fp32_flat_groups] full_single_fp32_vector = torch.cat(merged_partitions, 0) merged_single_partition_of_fp32_groups.append(full_single_fp32_vector) avail_numel = sum( [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
if debug: wanted_params = sum([len(shapes) for shapes in param_shapes]) wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes]) # not asserting if there is a mismatch due to possible padding print(f"Have {avail_numel} numels to process.") print(f"Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution total_numel = 0 total_params = 0 for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups): offset = 0 avail_numel = full_single_fp32_vector.numel() for name, shape in shapes.items():
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape) total_numel += unpartitioned_numel total_params += 1
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ") state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape) offset += unpartitioned_numel
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex # paddings performed in the code it's almost impossible to predict the exact numbers w/o the # live optimizer object, so we are checking that the numbers are within the right range align_to = 2 * world_size
def zero2_align(x): return align_to * math.ceil(x / align_to)
if debug: print(f"original offset={offset}, avail_numel={avail_numel}")
offset = zero2_align(offset) avail_numel = zero2_align(avail_numel)
if debug: print(f"aligned offset={offset}, avail_numel={avail_numel}")
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero2_merge_frozen_params(state_dict, zero_model_states)
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def zero3_partitioned_param_info(unpartitioned_numel, world_size): remainder = unpartitioned_numel % world_size padding_numel = (world_size - remainder) if remainder else 0 partitioned_numel = math.ceil(unpartitioned_numel / world_size) return partitioned_numel, padding_numel
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
if debug: for i in range(world_size): num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values()) print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
frozen_param_shapes = zero_model_states[0].frozen_param_shapes wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in zero_model_states[0].frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states) state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
class GatheredTensor: """ A pseudo tensor that collects partitioned weights. It is more memory efficient when there are multiple groups. """
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape): self.flat_groups = flat_groups self.flat_groups_offset = flat_groups_offset self.offset = offset self.partitioned_numel = partitioned_numel self.shape = shape self.dtype = self.flat_groups[0][0].dtype
def contiguous(self): """ Merge partitioned weights from flat_groups into a single tensor. """ end_idx = self.offset + self.partitioned_numel world_size = len(self.flat_groups) pad_flat_param_chunks = []
for rank_i in range(world_size): # for each rank, we need to collect weights from related group/groups flat_groups_at_rank_i = self.flat_groups[rank_i] start_group_id = None end_group_id = None for group_id in range(len(self.flat_groups_offset)): if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]: start_group_id = group_id if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]: end_group_id = group_id break # collect weights from related group/groups for group_id in range(start_group_id, end_group_id + 1): flat_tensor = flat_groups_at_rank_i[group_id] start_offset = self.offset - self.flat_groups_offset[group_id] end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id] pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
# collect weights from all ranks pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0) param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous() return param
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each # param, re-consolidating each param, while dealing with padding if any
# merge list of dicts, preserving order param_shapes = {k: v for d in param_shapes for k, v in d.items()}
if debug: for i in range(world_size): print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
wanted_params = len(param_shapes) wanted_numel = sum(shape.numel() for shape in param_shapes.values()) # not asserting if there is a mismatch due to possible padding avail_numel = fp32_flat_groups[0].numel() * world_size print(f"Trainable params: Have {avail_numel} numels to process.") print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution offset = 0 total_numel = 0 total_params = 0 flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]])) for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'): unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel total_params += 1 partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
# memory efficient tensor tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape) state_dict[name] = tensor offset += partitioned_numel
offset *= world_size
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def to_torch_tensor(state_dict, return_empty_tensor=False): """ Convert state_dict of GatheredTensor to torch tensor """ torch_state_dict = {} converted_tensors = {} for name, tensor in state_dict.items(): tensor_id = id(tensor) if tensor_id in converted_tensors: # shared tensors shared_tensor = torch_state_dict[converted_tensors[tensor_id]] torch_state_dict[name] = shared_tensor else: converted_tensors[tensor_id] = name if return_empty_tensor: torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype) else: torch_state_dict[name] = tensor.contiguous() return torch_state_dict
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False, lazy_mode=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example via a model hub.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters - ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient. Convert the pesduo tensor to torch tensor by ``.contiguous()``
Returns: - pytorch ``state_dict``
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint # do the training and checkpoint saving state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu model = model.cpu() # move to cpu model.load_state_dict(state_dict) # submit to model hub or save the model to share with others
In this example the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
Note: the above usage may not work if your application doesn't have sufficient free CPU memory. You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with the checkpoint. Or you can load state_dict in lazy mode ::
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu for name, lazy_tensor in state_dict.item(): tensor = lazy_tensor.contiguous() # to cpu print(name, tensor) # del tensor to release memory if it no longer in use """ if tag is None: latest_path = os.path.join(checkpoint_dir, 'latest') if os.path.isfile(latest_path): with open(latest_path, 'r') as fd: tag = fd.read().strip() else: raise ValueError(f"Unable to find 'latest' file at {latest_path}")
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
if not os.path.isdir(ds_checkpoint_dir): raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters) if lazy_mode: return state_dict else: return to_torch_tensor(state_dict)
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_dir, max_shard_size="5GB", safe_serialization=False, tag=None, exclude_frozen_parameters=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``output_dir``: directory to the pytorch fp32 state_dict output files - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`). - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters """
# Dependency pre-check if safe_serialization: try: from safetensors.torch import save_file except ImportError: print('If you want to use `safe_serialization`, please `pip install safetensors`') raise if max_shard_size is not None: try: from huggingface_hub import split_torch_state_dict_into_shards except ImportError: print('If you want to use `max_shard_size`, please `pip install huggingface_hub`') raise
# Convert zero checkpoint to state_dict state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters, lazy_mode=True)
# Shard the model if it is too big. weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin" if max_shard_size is not None: filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors") # an memory-efficient approach for sharding empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True) state_dict_split = split_torch_state_dict_into_shards(empty_state_dict, filename_pattern=filename_pattern, max_shard_size=max_shard_size) else: from collections import namedtuple StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"]) state_dict_split = StateDictSplit(is_sharded=False, filename_to_tensors={weights_name: list(state_dict.keys())})
# Save the model by shard os.makedirs(output_dir, exist_ok=True) filename_to_tensors = state_dict_split.filename_to_tensors.items() for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"): shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors} shard_state_dict = to_torch_tensor(shard_state_dict) output_path = os.path.join(output_dir, shard_file) if safe_serialization: save_file(shard_state_dict, output_path, metadata={"format": "pt"}) else: torch.save(shard_state_dict, output_path) # release the memory of current shard for tensor_name in list(shard_state_dict.keys()): del state_dict[tensor_name] del shard_state_dict[tensor_name] del shard_state_dict gc.collect()
# Save index if sharded if state_dict_split.is_sharded: index = { "metadata": state_dict_split.metadata, "weight_map": state_dict_split.tensor_to_filename, } save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json" save_index_file = os.path.join(output_dir, save_index_file) with open(save_index_file, "w", encoding="utf-8") as f: content = json.dumps(index, indent=2, sort_keys=True) + "\n" f.write(content)
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None): """ 1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the provided model
Args: - ``model``: the model object to update - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
Returns: - ``model`: modified model
Make sure you have plenty of CPU memory available before you call this function. If you don't have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it conveniently placed for you in the checkpoint folder.
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir) # submit to model hub or save the model to share with others
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
""" logger.info("Extracting fp32 weights") state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
logger.info("Overwriting model with fp32 weights") model = model.cpu() model.load_state_dict(state_dict, strict=False)
return model
if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("checkpoint_dir", type=str, help="path to the desired checkpoint folder, e.g., path/checkpoint-12") parser.add_argument("output_dir", type=str, help="directory to the pytorch fp32 state_dict output files" "(e.g. path/checkpoint-12-output/)") parser.add_argument( "--max_shard_size", type=str, default="5GB", help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size" "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`" "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances" "without CPU OOM issues.") parser.add_argument( "--safe_serialization", default=False, action='store_true', help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).") parser.add_argument("-t", "--tag", type=str, default=None, help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1") parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters") parser.add_argument("-d", "--debug", action='store_true', help="enable debug") args = parser.parse_args()
debug = args.debug
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_dir, max_shard_size=args.max_shard_size, safe_serialization=args.safe_serialization, tag=args.tag, exclude_frozen_parameters=args.exclude_frozen_parameters)lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/args.jsonAdded+395
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/added_tokens.jsonAdded+24
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/args.jsonAdded+395
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/chat_template.jinjaAdded+7
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/config.jsonAdded+132
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/generation_config.jsonAdded+14
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/latestAdded+1
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/merges.txtAdded
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/preprocessor_config.jsonAdded+29
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/special_tokens_map.jsonAdded+31
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/tokenizer_config.jsonAdded+209
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/trainer_state.jsonAdded+866
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/checkpoint-516/video_preprocessor_config.jsonAdded+43
lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_grad_norm.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_learning_rate.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_loss.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_total_flos.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_runtime.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_samples_per_second.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/images/train_train_steps_per_second.pngAdded

lingshu7b/moft_data_oact_core_v1_BL1_c2_20/v0-20260404-153134/logging.jsonlAdded+106
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/added_tokens.jsonAdded+24
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/args.jsonAdded+397
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/chat_template.jinjaAdded+7
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/config.jsonAdded+133
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/generation_config.jsonAdded+14
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/latestAdded+1
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/merges.txtAdded
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/preprocessor_config.jsonAdded+29
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/special_tokens_map.jsonAdded+31
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/tokenizer_config.jsonAdded+209
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/trainer_state.jsonAdded
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/video_preprocessor_config.jsonAdded+43
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/vocab.jsonAdded
lingshu7b/moft_task_arithmetic_m90_oact_c2_10_psv26_c2_20/zero_to_fp32.pyAdded+760
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/added_tokens.jsonAdded+24
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/args.jsonAdded+397
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/chat_template.jinjaAdded+7
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/config.jsonAdded+133
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/generation_config.jsonAdded+14
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/latestAdded+1
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/model.safetensors.index.jsonAdded+737
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/special_tokens_map.jsonAdded+31
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/tokenizer_config.jsonAdded+209
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/trainer_state.jsonAdded
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/video_preprocessor_config.jsonAdded+43
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/vocab.jsonAdded
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/checkpoint-2967/zero_to_fp32.pyAdded+760
lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/images/train_train_runtime.pngAdded

lingshu7b/sft_data_oact_psv26_oact_train_psv26_52k/v0-20260407-174352/images/train_train_samples_per_second.pngAdded
