Run this model with HF Jobs
Run JazySong/LegoEnv on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/JazySong/LegoEnv. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/JazySong/LegoEnv on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use JazySong/LegoEnv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JazySong/LegoEnv with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("JazySong/LegoEnv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add files using upload-large-folder tool
Browse filesFiles changed (26)
- qwen3.5-27b-sft/.gcoreAdded+1
- qwen3.5-27b-sft/.manifest.txtAdded+70
- qwen3.5-27b-sft/chat_template.jinjaAdded+154
- qwen3.5-27b-sft/config.jsonAdded+135
- qwen3.5-27b-sft/generation_config.jsonAdded+13
- qwen3.5-27b-sft/merges.txtAdded
- qwen3.5-27b-sft/model.safetensors-00003-of-00011.safetensorsAdded+3
- qwen3.5-27b-sft/model.safetensors-00006-of-00011.safetensorsAdded+3
- qwen3.5-27b-sft/model.safetensors-00009-of-00011.safetensorsAdded+3
- qwen3.5-27b-sft/model.safetensors.index.jsonAdded
- qwen3.5-27b-sft/preprocessor_config.jsonAdded+21
- qwen3.5-27b-sft/tokenizer_config.jsonAdded+305
- qwen3.5-27b-sft/video_preprocessor_config.jsonAdded+21
- qwen3.5-27b-sft/vocab.jsonAdded
- qwen3.6-27b-sft/.gcoreAdded+1
- qwen3.6-27b-sft/.manifest.txtAdded+30
- qwen3.6-27b-sft/chat_template.jinjaAdded+154
- qwen3.6-27b-sft/config.jsonAdded+140
- qwen3.6-27b-sft/configuration.jsonAdded+1
- qwen3.6-27b-sft/generation_config.jsonAdded+12
- qwen3.6-27b-sft/merges.txtAdded
- qwen3.6-27b-sft/model.safetensors.index.jsonAdded
- qwen3.6-27b-sft/preprocessor_config.jsonAdded+21
- qwen3.6-27b-sft/tokenizer_config.jsonAdded+305
- qwen3.6-27b-sft/video_preprocessor_config.jsonAdded+21
- qwen3.6-27b-sft/vocab.jsonAdded
1{"placement_type": "colocate", "data": {"py_path": "/mnt/geminigmceph/user_jazyjiang/sft/gcore_data/agentic_sft.py", "fn_name": "get_dataset_and_dataloader", "get_batch_fn_name": null, "data_pathes": ["/mnt/geminigmceph/user_jazyjiang/sft/data/train_s3k_q35.jsonl"], "eval_data_pathes": null, "caption_long_ratio": 0.7, "caption_medium_ratio": 0.2, "caption_short_ratio": 0.1, "sampler_seed": 42, "shuffle": true, "system_prompt": null, "dataloader_num_workers": 0, "multiprocessing_method": "forkserver", "dataloader_pin_memory": true, "dataloader_prefetch_factor": null, "mask_history": false, "tokenizer_eos_token": null, "custom_add_eos": false, "dataset_debug": false, "dataloader_verify_fn_name": null}, "training": {"training_backend": "mcore", "train_gbs": 32, "train_mbs": 1, "gradient_accumulation_steps": 16, "exit_step": -1, "seed": 42, "seq_length": 65536, "recompute": false, "total_training_step": 489, "total_eval_step": 0, "num_train_epoches": 3, "apply_deterministic_mode": false, "use_fast_tokenizer": false, "save_interval": 163, "eval_interval": 0, "eval_rollout_gbs": null, "eval_rollout_mbs": null, "eval_before_train": false, "pad_to_mulitiple_of": 4096, "data_parallel_random_init": false, "comput_attn_mask": true, "auto_load_from_save_ckpt": true, "allow_tf32": false, "use_torch_autocast": false, "max_train_step_waiting_time": null, "max_restart_attempts": 0, "node_replacer_cls": null, "enable_self_heal": false, "self_heal_config": null, "skip_train_step": false, "attention_backend": "auto", "build_from_mbridge": true, "moe_pad_with_random_tokens": false, "freeze_moe_router": false, "freeze_moe_shared_experts": false, "freeze_llm": false, "freeze_vit": true, "freeze_projector": true, "freeze_audio": false, "freeze_qformer": false, "moe_token_dispatcher_type": "alltoall", "moe_router_load_balancing_type": "none", "moe_balance_loss_coef": 0.0, "freeze_router_weight": false, "freeze_router_correction_bias": true, "router_correction_bias_update_speed": 0.001, "router_correction_bias_use_abs_update": true, "offload_process_group": false, "use_dynamic_mbs": false, "ppo_dump_metrics_interval": -1, "ppo_dump_metrics_dir": "", "ppo_dump_per_token_entropy": false, "dump_metrics_logprobs_topk": 0, "im_end_metrics_enable": false, "ppo_dump_moe_topk": 0, "enable_thinking": false, "preserve_thinking": false, "ignore_thinking_flag": false, "moe_router_replay": false, "moe_router_replay_num_layers": null, "moe_router_replay_topk": null, "calc_mfu_freq": null, "image_grid_thw_name": "image_grid_thw", "check_gbs_consistency": true, "enable_mtp": false, "online_mtp_sft": false, "mtp_loss_scaling_factor": 0.1, "docker_image_tag": "wepsdl/rl-vllm:v2.23.51.20-cuda-12.8-cudnn-9-py-3.10-torch-2.10.0-fa-2.8.3-te-2.10-mlm-wxdev-hf-5.5.4-vllm-0.19.1", "use_linear_ce": false, "linear_ce_backend": "separate", "train_step_per_epoch": 163, "prefetch_num_gb": 1, "loss_func": "cross_entropy", "loss_func_py_path": null, "loss_func_py_name": null, "cross_entropy_loss_fusion": false, "cross_entropy_fusion_impl": "native", "sort_batched": false, "forward_clear_memory": false, "forward_clear_memory_interval": 4}, "policy": {"dist_config": {"num_gpus_per_node": 8, "nnodes": 8, "num_cpu_nodes": 0, "torch_dist_timeout_minutes": 60, "use_tp_pp_dp_mapping": false, "expert_model_parallel_size": 1, "expert_tensor_parallel_size": 1, "context_parallel_size": 4, "dynamic_context_parallel": false, "max_seqlen_per_dp_cp_rank": null, "max_seqlen_per_dp_cp_rank_fwd_only": null, "min_dynamic_context_parallel_size": 1, "dynamic_cp_scheduler_type": "default", "tensor_model_parallel_size": 2, "pipeline_model_parallel_size": 4, "num_layers_in_first_pipeline_stage": null, "num_layers_in_last_pipeline_stage": null, "virtual_pipeline_model_parallel_size": null, "pipeline_model_parallel_split_rank": null, "sequence_parallel": true, "enable_custom_device_mesh": false, "custom_device_mesh": null, "fsdp2_num_to_forward_prefetch": 1, "fsdp2_num_to_backward_prefetch": 1}, "model_arch": "qwen3_5", "hf_model_path": "/mnt/geminigmceph/user_jazyjiang/ckpts/Qwen_Qwen3.5-27B", "hf_tokenizer_path": "/mnt/geminigmceph/user_jazyjiang/ckpts/Qwen_Qwen3.5-27B", "ref_hf_model_path": null, "attn_implementation": "flash_attention_2", "indexer_backend": "eager", "ep_backend": "eager", "deepep_num_sms": 24, "fp8_qat": false, "fp4_qat": false, "sglang_export_fp4_qdq": false, "fp8": false, "moe_router_force_load_balancing": false, "rollout_gen_type": "base", "rollout_gen_py_path": null, "rollout_gen_cls_name": null, "forward_only_mbs": 1, "dynamic_mbs_target_seqlen": null, "dynamic_mbs_limit": null, "dynamic_mbs_target_seqlen_fwd_only": null, "dynamic_mbs_limit_fwd_only": null, "ppo_pack_seq": false, "without_ref": true, "without_optim": false, "balance_dp_seqlen": false, "smart_pad_infer": false, "smart_pad_train": false, "wrap_with_ddp": true, "post_wrap_with_ddp": false, "use_megatron_fsdp": false, "override_ddp_config": {}, "override_transformer_config": {"recompute_granularity": "full", "recompute_method": "uniform", "recompute_num_layers": 1, "calculate_per_token_loss": true}, "freeze_patterns": [], "unfreeze_patterns": [], "lora": {"rank": 0, "alpha": 32, "type": "canonical_lora", "dropout": 0.0, "dropout_position": "pre", "target_modules": null, "exclude_modules": [], "lora_A_init_method": "xavier", "lora_B_init_method": "zero", "a2a_experimental": false, "dtype": null, "check_lora_all_coverage": true, "verify_weight_consistency": true}, "offload_process_group": false, "manual_clear_memory": true, "manual_clear_memory_interval": 1, "export_weights_buffer_max_size_mb": 2048}, "checkpoint": {"load_ckpt_path": null, "save_ckpt_path": "/mnt/geminigmceph/user_jazyjiang/sft/outputs/q35_s3k", "no_load_optim": false, "no_save_optim": false, "load_ref_ckpt_path": null, "save_ref_ckpt_path": null, "save_total_limit": null, "save_retain_interval": null, "use_dist_checkpointing": true, "async_save": false, "convert_mcore_to_hf_online": true, "export_hf_save_path": null, "export_name_template": "qwen3.5-27B-sft-{step}-agentic", "mbridge_distributed_filesystem": true, "mbridge_save_every_n_ranks": 1, "convert_mcore_to_hf_offline": false, "convert_target_step": null, "override_tokenizer_special_token": {}, "strict_export": true, "skip_save_mcore_model": false, "save_merged_lora_weights": true}, "optimizer": {"lr": 1e-05, "min_lr": 1e-06, "vit_lr": null, "vit_min_lr": null, "vit_proj_lr": null, "vit_proj_min_lr": null, "und_lr_scale": 1.0, "lr_warmup_steps": 3, "lr_warmup_step_frac": 0.04, "lr_warmup_init": 0.0, "lr_decay_steps": null, "lr_wsd_decay_style": "exponential", "lr_wsd_decay_steps": null, "lr_decay_style": "cosine", "lr_num_cycles": 1, "lr_power": 1.0, "weight_decay": 0.1, "weight_decay_incr_style": "constant", "optimizer_type": "adam", "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "update_lr_by_train_step": false, "use_checkpoint_opt_param_scheduler": false, "override_optimizer_config": null, "muon_momentum": 0.95, "muon_nesterov": true, "muon_num_ns_steps": 5, "muon_extra_scale_factor": 0.2, "report_post_clip_grad_norm": false}, "report": {"report_to": "none", "wandb_key": null, "wandb_host": "http://localhost:8080", "wandb_project": "grpo_train", "wandb_save_dir": "wandb_local", "wandb_exp_name": "q35_s3k", "wandb_run_id": null, "tensorboard_dir": "tensorboard_local", "log_to_driver": true, "log_dir": "/mnt/geminigmceph/user_jazyjiang/sft/logs/q35_s3k/gcore", "log_level": "info", "log_path": "/mnt/geminigmceph/user_jazyjiang/sft/logs/q35_s3k/gcore/q35_s3k_20260928_183051", "debug_log_to_file": false, "capture_infer_engine_log": true, "timing_log_option": "minmax", "timing_log_level": 0, "verl_metric_map_path": null, "profile": {"enable_profile": false, "profile_start_step": 2, "profile_end_step": 3, "profile_save_dir": "profile_result", "record_shapes": true, "with_stack": true, "profile_memory": false, "with_modules": false, "export_ranks": [], "gzip_trace": true}}, "monitor": {"do_monitor": false, "monitor_server_ip": null, "monitor_port": 60000}, "debug": {"debug_engine_update_weight": false, "debug_engine_save_path": "/root/engine_ckpt", "save_first_rollout_data": false, "save_every_rollout_data": false, "save_decode_jsonl": false, "dump_agentic_trajectory": false, "agentic_trajectory_dump_dir": "debug-tmp/agentic_trajectory", "skip_rollout_load_from_disk": false, "load_rollout_path": "debug-tmp", "load_rollout_step": 0, "save_images": false, "save_images_dir": null, "images_attr_name": "images", "test_ray_rpc": false, "trainer_return_ppo_step_metrics": false, "debug_no_optim": false, "debug_dump_first_n_ppo_step_moe_token_dist": 0, "debug_moe_dist_dump_dir": "debug-tmp/moe_dist", "experimental_pad_to_max_length": false, "debug_truncate_num_hidden_layers": null, "disable_save_checkpoint": false, "ignore_global_retention_ratio": false, "save_first_post_rollout_batch": false, "load_first_post_rollout_batch": false, "post_rollout_batch_debug_dir": "debug-tmp", "debug_align_mode": false, "debug_dump_expert_token_counts": false, "debug_dump_expert_token_counts_path": "debug-tmp/debug_moe_router/counts.pt"}, "task": {"cache_dir": null, "max_samples": null, "verify_prefix": false, "group_by_length_bucket": 4096}}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970.cache/huggingface/.gitignore 1.cache/huggingface/download/.gitattributes.lock 0.cache/huggingface/download/.gitattributes.metadata 101.cache/huggingface/download/README.md.lock 0.cache/huggingface/download/README.md.metadata 101.cache/huggingface/download/chat_template.jinja.lock 0.cache/huggingface/download/chat_template.jinja.metadata 101.cache/huggingface/download/config.json.lock 0.cache/huggingface/download/config.json.metadata 101.cache/huggingface/download/generation_config.json.lock 0.cache/huggingface/download/generation_config.json.metadata 101.cache/huggingface/download/merges.txt.lock 0.cache/huggingface/download/merges.txt.metadata 100.cache/huggingface/download/model.safetensors-00001-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00001-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00002-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00002-of-00011.safetensors.metadata 124.cache/huggingface/download/model.safetensors-00003-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00003-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00004-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00004-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00005-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00005-of-00011.safetensors.metadata 124.cache/huggingface/download/model.safetensors-00006-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00006-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00007-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00007-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00008-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00008-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00009-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00009-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors-00010-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00010-of-00011.safetensors.metadata 124.cache/huggingface/download/model.safetensors-00011-of-00011.safetensors.lock 0.cache/huggingface/download/model.safetensors-00011-of-00011.safetensors.metadata 125.cache/huggingface/download/model.safetensors.index.json.lock 0.cache/huggingface/download/model.safetensors.index.json.metadata 101.cache/huggingface/download/preprocessor_config.json.lock 0.cache/huggingface/download/preprocessor_config.json.metadata 101.cache/huggingface/download/tokenizer.json.lock 0.cache/huggingface/download/tokenizer.json.metadata 125.cache/huggingface/download/tokenizer_config.json.lock 0.cache/huggingface/download/tokenizer_config.json.metadata 101.cache/huggingface/download/video_preprocessor_config.json.lock 0.cache/huggingface/download/video_preprocessor_config.json.metadata 100.cache/huggingface/download/vocab.json.lock 0.cache/huggingface/download/vocab.json.metadata 101.gitattributes 1570README.md 92407chat_template.jinja 7756config.json 4134generation_config.json 244merges.txt 3353259model.safetensors-00001-of-00011.safetensors 5263851872model.safetensors-00002-of-00011.safetensors 5347741440model.safetensors-00003-of-00011.safetensors 5347741504model.safetensors-00004-of-00011.safetensors 5347741504model.safetensors-00005-of-00011.safetensors 5347741504model.safetensors-00006-of-00011.safetensors 5347741504model.safetensors-00007-of-00011.safetensors 5347741496model.safetensors-00008-of-00011.safetensors 5368714128model.safetensors-00009-of-00011.safetensors 5347745520model.safetensors-00010-of-00011.safetensors 5347749200model.safetensors-00011-of-00011.safetensors 2148512760model.safetensors.index.json 126601preprocessor_config.json 390tokenizer.json 12807982tokenizer_config.json 16710video_preprocessor_config.json 385vocab.json 6722759123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}{%- macro render_content(content, do_vision_count, is_system_content=false) %} {%- if content is string %} {{- content }} {%- elif content is iterable and content is not mapping %} {%- for item in content %} {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain images.') }} {%- endif %} {%- if do_vision_count %} {%- set image_count.value = image_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Picture ' ~ image_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|image_pad|><|vision_end|>' }} {%- elif 'video' in item or item.type == 'video' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain videos.') }} {%- endif %} {%- if do_vision_count %} {%- set video_count.value = video_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Video ' ~ video_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|video_pad|><|vision_end|>' }} {%- elif 'text' in item %} {{- item.text }} {%- else %} {{- raise_exception('Unexpected item type in content.') }} {%- endif %} {%- endfor %} {%- elif content is none or content is undefined %} {{- '' }} {%- else %} {{- raise_exception('Unexpected content type.') }} {%- endif %}{%- endmacro %}{%- if not messages %} {{- raise_exception('No messages provided.') }}{%- endif %}{%- if tools and tools is iterable and tools is not mapping %} {{- '<|im_start|>system\n' }} {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>" }} {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {%- if content %} {{- '\n\n' + content }} {%- endif %} {%- endif %} {{- '<|im_end|>\n' }}{%- else %} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" %} {%- set content = render_content(message.content, false)|trim %} {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %} {%- endif %}{%- endfor %}{%- if ns.multi_step_tool %} {{- raise_exception('No user query found in messages.') }}{%- endif %}{%- for message in messages %} {%- set content = render_content(message.content, true)|trim %} {%- if message.role == "system" %} {%- if not loop.first %} {{- raise_exception('System message must be at the beginning.') }} {%- endif %} {%- elif message.role == "user" %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- set reasoning_content = reasoning_content|trim %} {%- if loop.index0 > ns.last_query_index %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {%- if loop.first %} {%- if content|trim %} {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- else %} {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- else %} {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- if tool_call.arguments is defined %} {%- for args_name, args_value in tool_call.arguments|items %} {{- '<parameter=' + args_name + '>\n' }} {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %} {{- args_value }} {{- '\n</parameter>\n' }} {%- endfor %} {%- endif %} {{- '</function>\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.previtem and loop.previtem.role != "tool" %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if not loop.last and loop.nextitem.role != "tool" %} {{- '<|im_end|>\n' }} {%- elif loop.last %} {{- '<|im_end|>\n' }} {%- endif %} {%- else %} {{- raise_exception('Unexpected message role.') }} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- else %} {{- '<think>\n' }} {%- endif %}{%- endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135{ "architectures": [ "Qwen3_5ForConditionalGeneration" ], "image_token_id": 248056, "model_type": "qwen3_5", "text_config": { "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 5120, "initializer_range": 0.02, "intermediate_size": 17408, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 48, "linear_value_head_dim": 128, "max_position_embeddings": 262144, "mlp_only_layers": [], "model_type": "qwen3_5_text", "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 24, "num_hidden_layers": 64, "num_key_value_heads": 4, "rms_norm_eps": 1e-06, "use_cache": true, "vocab_size": 248320, "mamba_ssm_dtype": "float32", "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "rope_type": "default", "rope_theta": 10000000, "partial_rotary_factor": 0.25 } }, "tie_word_embeddings": false, "transformers_version": "4.57.0.dev0", "video_token_id": 248057, "vision_config": { "deepstack_visual_indexes": [], "depth": 27, "hidden_act": "gelu_pytorch_tanh", "hidden_size": 1152, "in_channels": 3, "initializer_range": 0.02, "intermediate_size": 4304, "model_type": "qwen3_5", "num_heads": 16, "num_position_embeddings": 2304, "out_hidden_size": 5120, "patch_size": 16, "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_end_token_id": 248054, "vision_start_token_id": 248053}12345678910111213{ "bos_token_id": 248044, "do_sample": true, "eos_token_id": [ 248046, 248044 ], "pad_token_id": 248044, "temperature": 0.6, "top_k": 20, "top_p": 0.95, "transformers_version": "4.57.0.dev0"}123version https://git-lfs.github.com/spec/v1oid sha256:398ec6a7eba0383d6c4739125643110555b0829c3a5ee3a81fa1003721a67811size 5347741504123version https://git-lfs.github.com/spec/v1oid sha256:5edf8a9d847656b55b00dc8fd2399ee49b472bed2a9821a15c043e0c6f11760esize 5347741504123version https://git-lfs.github.com/spec/v1oid sha256:b5b17169a242f1c312329aca3c5f05c1327d3c87499a972cbfebd942fe9d89b0size 5284830848123456789101112131415161718192021{ "size": { "longest_edge": 16777216, "shortest_edge": 65536 }, "patch_size": 16, "temporal_patch_size": 2, "merge_size": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "processor_class": "Qwen3VLProcessor", "image_processor_type": "Qwen2VLImageProcessorFast"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305{ "add_prefix_space": false, "added_tokens_decoder": { "248044": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248045": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248046": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248047": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248048": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248049": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248050": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248051": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248052": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248053": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248054": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248055": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248056": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248057": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248058": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248059": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248060": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248061": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248062": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248063": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248064": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248065": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248066": { "content": "<tool_response>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248067": { "content": "</tool_response>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248068": { "content": "<think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248069": { "content": "</think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248070": { "content": "<|audio_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248071": { "content": "<|audio_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248072": { "content": "<tts_pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248073": { "content": "<tts_text_bos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248074": { "content": "<tts_text_eod>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248075": { "content": "<tts_text_bos_single>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248076": { "content": "<|audio_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "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, "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if loop.index0 > ns.last_query_index %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "model_max_length": 262144, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null, "add_bos_token": false, "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "extra_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }}123456789101112131415161718192021{ "size": { "longest_edge": 25165824, "shortest_edge": 4096 }, "patch_size": 16, "temporal_patch_size": 2, "merge_size": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "processor_class": "Qwen3VLProcessor", "video_processor_type": "Qwen3VLVideoProcessor"}1{"placement_type": "colocate", "data": {"py_path": "/mnt/geminigmceph/user_jazyjiang/sft/gcore_data/agentic_sft.py", "fn_name": "get_dataset_and_dataloader", "get_batch_fn_name": null, "data_pathes": ["/mnt/geminigmceph/user_jazyjiang/sft/data/train_main.jsonl"], "eval_data_pathes": null, "caption_long_ratio": 0.7, "caption_medium_ratio": 0.2, "caption_short_ratio": 0.1, "sampler_seed": 42, "shuffle": true, "system_prompt": null, "dataloader_num_workers": 0, "multiprocessing_method": "forkserver", "dataloader_pin_memory": true, "dataloader_prefetch_factor": null, "mask_history": false, "tokenizer_eos_token": null, "custom_add_eos": false, "dataset_debug": false, "dataloader_verify_fn_name": null}, "training": {"training_backend": "mcore", "train_gbs": 32, "train_mbs": 1, "gradient_accumulation_steps": 16, "exit_step": -1, "seed": 42, "seq_length": 65536, "recompute": false, "total_training_step": 570, "total_eval_step": 0, "num_train_epoches": 3, "apply_deterministic_mode": false, "use_fast_tokenizer": false, "save_interval": 190, "eval_interval": 0, "eval_rollout_gbs": null, "eval_rollout_mbs": null, "eval_before_train": false, "pad_to_mulitiple_of": 4096, "data_parallel_random_init": false, "comput_attn_mask": true, "auto_load_from_save_ckpt": true, "allow_tf32": false, "use_torch_autocast": false, "max_train_step_waiting_time": null, "max_restart_attempts": 0, "node_replacer_cls": null, "enable_self_heal": false, "self_heal_config": null, "skip_train_step": false, "attention_backend": "auto", "build_from_mbridge": true, "moe_pad_with_random_tokens": false, "freeze_moe_router": false, "freeze_moe_shared_experts": false, "freeze_llm": false, "freeze_vit": true, "freeze_projector": true, "freeze_audio": false, "freeze_qformer": false, "moe_token_dispatcher_type": "alltoall", "moe_router_load_balancing_type": "none", "moe_balance_loss_coef": 0.0, "freeze_router_weight": false, "freeze_router_correction_bias": true, "router_correction_bias_update_speed": 0.001, "router_correction_bias_use_abs_update": true, "offload_process_group": false, "use_dynamic_mbs": false, "ppo_dump_metrics_interval": -1, "ppo_dump_metrics_dir": "", "ppo_dump_per_token_entropy": false, "dump_metrics_logprobs_topk": 0, "im_end_metrics_enable": false, "ppo_dump_moe_topk": 0, "enable_thinking": false, "preserve_thinking": false, "ignore_thinking_flag": false, "moe_router_replay": false, "moe_router_replay_num_layers": null, "moe_router_replay_topk": null, "calc_mfu_freq": null, "image_grid_thw_name": "image_grid_thw", "check_gbs_consistency": true, "enable_mtp": false, "online_mtp_sft": false, "mtp_loss_scaling_factor": 0.1, "docker_image_tag": "wepsdl/rl-vllm:v2.23.51.20-cuda-12.8-cudnn-9-py-3.10-torch-2.10.0-fa-2.8.3-te-2.10-mlm-wxdev-hf-5.5.4-vllm-0.19.1", "use_linear_ce": false, "linear_ce_backend": "separate", "train_step_per_epoch": 190, "prefetch_num_gb": 1, "loss_func": "cross_entropy", "loss_func_py_path": null, "loss_func_py_name": null, "cross_entropy_loss_fusion": false, "cross_entropy_fusion_impl": "native", "sort_batched": false, "forward_clear_memory": false, "forward_clear_memory_interval": 4}, "policy": {"dist_config": {"num_gpus_per_node": 8, "nnodes": 8, "num_cpu_nodes": 0, "torch_dist_timeout_minutes": 60, "use_tp_pp_dp_mapping": false, "expert_model_parallel_size": 1, "expert_tensor_parallel_size": 1, "context_parallel_size": 4, "dynamic_context_parallel": false, "max_seqlen_per_dp_cp_rank": null, "max_seqlen_per_dp_cp_rank_fwd_only": null, "min_dynamic_context_parallel_size": 1, "dynamic_cp_scheduler_type": "default", "tensor_model_parallel_size": 2, "pipeline_model_parallel_size": 4, "num_layers_in_first_pipeline_stage": null, "num_layers_in_last_pipeline_stage": null, "virtual_pipeline_model_parallel_size": null, "pipeline_model_parallel_split_rank": null, "sequence_parallel": true, "enable_custom_device_mesh": false, "custom_device_mesh": null, "fsdp2_num_to_forward_prefetch": 1, "fsdp2_num_to_backward_prefetch": 1}, "model_arch": "qwen3_5", "hf_model_path": "/mnt/geminigmceph/user_jazyjiang/ckpts/Qwen_Qwen3.6-27B", "hf_tokenizer_path": "/mnt/geminigmceph/user_jazyjiang/ckpts/Qwen_Qwen3.6-27B", "ref_hf_model_path": null, "attn_implementation": "flash_attention_2", "indexer_backend": "eager", "ep_backend": "eager", "deepep_num_sms": 24, "fp8_qat": false, "fp4_qat": false, "sglang_export_fp4_qdq": false, "fp8": false, "moe_router_force_load_balancing": false, "rollout_gen_type": "base", "rollout_gen_py_path": null, "rollout_gen_cls_name": null, "forward_only_mbs": 1, "dynamic_mbs_target_seqlen": null, "dynamic_mbs_limit": null, "dynamic_mbs_target_seqlen_fwd_only": null, "dynamic_mbs_limit_fwd_only": null, "ppo_pack_seq": false, "without_ref": true, "without_optim": false, "balance_dp_seqlen": false, "smart_pad_infer": false, "smart_pad_train": false, "wrap_with_ddp": true, "post_wrap_with_ddp": false, "use_megatron_fsdp": false, "override_ddp_config": {}, "override_transformer_config": {"recompute_granularity": "full", "recompute_method": "uniform", "recompute_num_layers": 1, "calculate_per_token_loss": true}, "freeze_patterns": [], "unfreeze_patterns": [], "lora": {"rank": 0, "alpha": 32, "type": "canonical_lora", "dropout": 0.0, "dropout_position": "pre", "target_modules": null, "exclude_modules": [], "lora_A_init_method": "xavier", "lora_B_init_method": "zero", "a2a_experimental": false, "dtype": null, "check_lora_all_coverage": true, "verify_weight_consistency": true}, "offload_process_group": false, "manual_clear_memory": true, "manual_clear_memory_interval": 1, "export_weights_buffer_max_size_mb": 2048}, "checkpoint": {"load_ckpt_path": null, "save_ckpt_path": "/mnt/geminigmceph/user_jazyjiang/sft/outputs/q36_main", "no_load_optim": false, "no_save_optim": false, "load_ref_ckpt_path": null, "save_ref_ckpt_path": null, "save_total_limit": null, "save_retain_interval": null, "use_dist_checkpointing": true, "async_save": false, "convert_mcore_to_hf_online": true, "export_hf_save_path": null, "export_name_template": "qwen3.6-27B-sft-{step}-agentic", "mbridge_distributed_filesystem": true, "mbridge_save_every_n_ranks": 1, "convert_mcore_to_hf_offline": false, "convert_target_step": null, "override_tokenizer_special_token": {}, "strict_export": true, "skip_save_mcore_model": false, "save_merged_lora_weights": true}, "optimizer": {"lr": 1e-05, "min_lr": 1e-06, "vit_lr": null, "vit_min_lr": null, "vit_proj_lr": null, "vit_proj_min_lr": null, "und_lr_scale": 1.0, "lr_warmup_steps": 3, "lr_warmup_step_frac": 0.04, "lr_warmup_init": 0.0, "lr_decay_steps": null, "lr_wsd_decay_style": "exponential", "lr_wsd_decay_steps": null, "lr_decay_style": "cosine", "lr_num_cycles": 1, "lr_power": 1.0, "weight_decay": 0.1, "weight_decay_incr_style": "constant", "optimizer_type": "adam", "adam_beta1": 0.9, "adam_beta2": 0.95, "adam_epsilon": 1e-08, "max_grad_norm": 1.0, "update_lr_by_train_step": false, "use_checkpoint_opt_param_scheduler": false, "override_optimizer_config": null, "muon_momentum": 0.95, "muon_nesterov": true, "muon_num_ns_steps": 5, "muon_extra_scale_factor": 0.2, "report_post_clip_grad_norm": false}, "report": {"report_to": "none", "wandb_key": null, "wandb_host": "http://localhost:8080", "wandb_project": "grpo_train", "wandb_save_dir": "wandb_local", "wandb_exp_name": "q36_main", "wandb_run_id": null, "tensorboard_dir": "tensorboard_local", "log_to_driver": true, "log_dir": "/mnt/geminigmceph/user_jazyjiang/sft/logs/q36_main/gcore", "log_level": "info", "log_path": "/mnt/geminigmceph/user_jazyjiang/sft/logs/q36_main/gcore/q36_main_20260928_133940", "debug_log_to_file": false, "capture_infer_engine_log": true, "timing_log_option": "minmax", "timing_log_level": 0, "verl_metric_map_path": null, "profile": {"enable_profile": false, "profile_start_step": 2, "profile_end_step": 3, "profile_save_dir": "profile_result", "record_shapes": true, "with_stack": true, "profile_memory": false, "with_modules": false, "export_ranks": [], "gzip_trace": true}}, "monitor": {"do_monitor": false, "monitor_server_ip": null, "monitor_port": 60000}, "debug": {"debug_engine_update_weight": false, "debug_engine_save_path": "/root/engine_ckpt", "save_first_rollout_data": false, "save_every_rollout_data": false, "save_decode_jsonl": false, "dump_agentic_trajectory": false, "agentic_trajectory_dump_dir": "debug-tmp/agentic_trajectory", "skip_rollout_load_from_disk": false, "load_rollout_path": "debug-tmp", "load_rollout_step": 0, "save_images": false, "save_images_dir": null, "images_attr_name": "images", "test_ray_rpc": false, "trainer_return_ppo_step_metrics": false, "debug_no_optim": false, "debug_dump_first_n_ppo_step_moe_token_dist": 0, "debug_moe_dist_dump_dir": "debug-tmp/moe_dist", "experimental_pad_to_max_length": false, "debug_truncate_num_hidden_layers": null, "disable_save_checkpoint": false, "ignore_global_retention_ratio": false, "save_first_post_rollout_batch": false, "load_first_post_rollout_batch": false, "post_rollout_batch_debug_dir": "debug-tmp", "debug_align_mode": false, "debug_dump_expert_token_counts": false, "debug_dump_expert_token_counts_path": "debug-tmp/debug_moe_router/counts.pt"}, "task": {"cache_dir": null, "max_samples": null, "verify_prefix": false, "group_by_length_bucket": 4096}}123456789101112131415161718192021222324252627282930.enable_wfs_warmup 48.gitattributes 1570LICENSE 11343README.md 62593chat_template.jinja 7764config.json 4308configuration.json 51generation_config.json 202merges.txt 3353259model-00001-of-00015.safetensors 3968861352model-00002-of-00015.safetensors 3921677136model-00003-of-00015.safetensors 3921677128model-00004-of-00015.safetensors 3921677128model-00005-of-00015.safetensors 3921677112model-00006-of-00015.safetensors 3900710888model-00007-of-00015.safetensors 3994391976model-00008-of-00015.safetensors 3879219776model-00009-of-00015.safetensors 3921677136model-00010-of-00015.safetensors 3921677128model-00011-of-00015.safetensors 3921677136model-00012-of-00015.safetensors 3921677136model-00013-of-00015.safetensors 3995081848model-00014-of-00015.safetensors 3942652952model-00015-of-00015.safetensors 508670568model.safetensors.index.json 112216preprocessor_config.json 390tokenizer.json 12807982tokenizer_config.json 16718video_preprocessor_config.json 385vocab.json 6722759123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}{%- macro render_content(content, do_vision_count, is_system_content=false) %} {%- if content is string %} {{- content }} {%- elif content is iterable and content is not mapping %} {%- for item in content %} {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain images.') }} {%- endif %} {%- if do_vision_count %} {%- set image_count.value = image_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Picture ' ~ image_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|image_pad|><|vision_end|>' }} {%- elif 'video' in item or item.type == 'video' %} {%- if is_system_content %} {{- raise_exception('System message cannot contain videos.') }} {%- endif %} {%- if do_vision_count %} {%- set video_count.value = video_count.value + 1 %} {%- endif %} {%- if add_vision_id %} {{- 'Video ' ~ video_count.value ~ ': ' }} {%- endif %} {{- '<|vision_start|><|video_pad|><|vision_end|>' }} {%- elif 'text' in item %} {{- item.text }} {%- else %} {{- raise_exception('Unexpected item type in content.') }} {%- endif %} {%- endfor %} {%- elif content is none or content is undefined %} {{- '' }} {%- else %} {{- raise_exception('Unexpected content type.') }} {%- endif %}{%- endmacro %}{%- if not messages %} {{- raise_exception('No messages provided.') }}{%- endif %}{%- if tools and tools is iterable and tools is not mapping %} {{- '<|im_start|>system\n' }} {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>" }} {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {%- if content %} {{- '\n\n' + content }} {%- endif %} {%- endif %} {{- '<|im_end|>\n' }}{%- else %} {%- if messages[0].role == 'system' %} {%- set content = render_content(messages[0].content, false, true)|trim %} {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" %} {%- set content = render_content(message.content, false)|trim %} {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %} {%- endif %}{%- endfor %}{%- if ns.multi_step_tool %} {{- raise_exception('No user query found in messages.') }}{%- endif %}{%- for message in messages %} {%- set content = render_content(message.content, true)|trim %} {%- if message.role == "system" %} {%- if not loop.first %} {{- raise_exception('System message must be at the beginning.') }} {%- endif %} {%- elif message.role == "user" %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- set reasoning_content = reasoning_content|trim %} {%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {%- if loop.first %} {%- if content|trim %} {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- else %} {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- else %} {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }} {%- endif %} {%- if tool_call.arguments is defined %} {%- for args_name, args_value in tool_call.arguments|items %} {{- '<parameter=' + args_name + '>\n' }} {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %} {{- args_value }} {{- '\n</parameter>\n' }} {%- endfor %} {%- endif %} {{- '</function>\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.previtem and loop.previtem.role != "tool" %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if not loop.last and loop.nextitem.role != "tool" %} {{- '<|im_end|>\n' }} {%- elif loop.last %} {{- '<|im_end|>\n' }} {%- endif %} {%- else %} {{- raise_exception('Unexpected message role.') }} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- else %} {{- '<think>\n' }} {%- endif %}{%- endif %}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140{ "architectures": [ "Qwen3_5ForConditionalGeneration" ], "image_token_id": 248056, "language_model_only": false, "model_type": "qwen3_5", "text_config": { "attention_bias": false, "attention_dropout": 0.0, "attn_output_gate": true, "bos_token_id": 248044, "dtype": "bfloat16", "eos_token_id": 248044, "full_attention_interval": 4, "head_dim": 256, "hidden_act": "silu", "hidden_size": 5120, "initializer_range": 0.02, "intermediate_size": 17408, "layer_types": [ "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention", "linear_attention", "linear_attention", "linear_attention", "full_attention" ], "linear_conv_kernel_dim": 4, "linear_key_head_dim": 128, "linear_num_key_heads": 16, "linear_num_value_heads": 48, "linear_value_head_dim": 128, "mamba_ssm_dtype": "float32", "max_position_embeddings": 262144, "model_type": "qwen3_5_text", "mtp_num_hidden_layers": 1, "mtp_use_dedicated_embeddings": false, "num_attention_heads": 24, "num_hidden_layers": 64, "num_key_value_heads": 4, "output_gate_type": "swish", "pad_token_id": null, "partial_rotary_factor": 0.25, "rms_norm_eps": 1e-06, "rope_parameters": { "mrope_interleaved": true, "mrope_section": [ 11, 11, 10 ], "partial_rotary_factor": 0.25, "rope_theta": 10000000, "rope_type": "default" }, "tie_word_embeddings": false, "use_cache": true, "vocab_size": 248320 }, "tie_word_embeddings": false, "transformers_version": "4.57.1", "video_token_id": 248057, "vision_config": { "deepstack_visual_indexes": [], "depth": 27, "hidden_act": "gelu_pytorch_tanh", "hidden_size": 1152, "in_channels": 3, "initializer_range": 0.02, "intermediate_size": 4304, "model_type": "qwen3_5", "num_heads": 16, "num_position_embeddings": 2304, "out_hidden_size": 5120, "patch_size": 16, "spatial_merge_size": 2, "temporal_patch_size": 2 }, "vision_end_token_id": 248054, "vision_start_token_id": 248053}1{"framework":"Pytorch","task":"image-text-to-text"}123456789101112{ "bos_token_id": 248044, "do_sample": true, "eos_token_id": [ 248046, 248044 ], "pad_token_id": 248044, "temperature": 1.0, "top_k": 20, "top_p": 0.95}123456789101112131415161718192021{ "size": { "longest_edge": 16777216, "shortest_edge": 65536 }, "patch_size": 16, "temporal_patch_size": 2, "merge_size": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "processor_class": "Qwen3VLProcessor", "image_processor_type": "Qwen2VLImageProcessorFast"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305{ "add_prefix_space": false, "added_tokens_decoder": { "248044": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248045": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248046": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248047": { "content": "<|object_ref_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248048": { "content": "<|object_ref_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248049": { "content": "<|box_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248050": { "content": "<|box_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248051": { "content": "<|quad_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248052": { "content": "<|quad_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248053": { "content": "<|vision_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248054": { "content": "<|vision_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248055": { "content": "<|vision_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248056": { "content": "<|image_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248057": { "content": "<|video_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248058": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248059": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248060": { "content": "<|fim_prefix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248061": { "content": "<|fim_middle|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248062": { "content": "<|fim_suffix|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248063": { "content": "<|fim_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248064": { "content": "<|repo_name|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248065": { "content": "<|file_sep|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248066": { "content": "<tool_response>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248067": { "content": "</tool_response>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248068": { "content": "<think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248069": { "content": "</think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "248070": { "content": "<|audio_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248071": { "content": "<|audio_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248072": { "content": "<tts_pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248073": { "content": "<tts_text_bos>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248074": { "content": "<tts_text_eod>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248075": { "content": "<tts_text_bos_single>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "248076": { "content": "<|audio_pad|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "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, "chat_template": "{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n {%- if content is string %}\n {{- content }}\n {%- elif content is iterable and content is not mapping %}\n {%- for item in content %}\n {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain images.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set image_count.value = image_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Picture ' ~ image_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n {%- elif 'video' in item or item.type == 'video' %}\n {%- if is_system_content %}\n {{- raise_exception('System message cannot contain videos.') }}\n {%- endif %}\n {%- if do_vision_count %}\n {%- set video_count.value = video_count.value + 1 %}\n {%- endif %}\n {%- if add_vision_id %}\n {{- 'Video ' ~ video_count.value ~ ': ' }}\n {%- endif %}\n {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n {%- elif 'text' in item %}\n {{- item.text }}\n {%- else %}\n {{- raise_exception('Unexpected item type in content.') }}\n {%- endif %}\n {%- endfor %}\n {%- elif content is none or content is undefined %}\n {{- '' }}\n {%- else %}\n {{- raise_exception('Unexpected content type.') }}\n {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n {{- '<|im_start|>system\\n' }}\n {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {%- if content %}\n {{- '\\n\\n' + content }}\n {%- endif %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {%- set content = render_content(messages[0].content, false, true)|trim %}\n {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" %}\n {%- set content = render_content(message.content, false)|trim %}\n {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n {%- set content = render_content(message.content, true)|trim %}\n {%- if message.role == \"system\" %}\n {%- if not loop.first %}\n {{- raise_exception('System message must be at the beginning.') }}\n {%- endif %}\n {%- elif message.role == \"user\" %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- set reasoning_content = reasoning_content|trim %}\n {%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {%- if loop.first %}\n {%- if content|trim %}\n {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- else %}\n {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- endif %}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- raise_exception('Unexpected message role.') }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- else %}\n {{- '<think>\\n' }}\n {%- endif %}\n{%- endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "model_max_length": 262144, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null, "add_bos_token": false, "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+", "extra_special_tokens": { "audio_bos_token": "<|audio_start|>", "audio_eos_token": "<|audio_end|>", "audio_token": "<|audio_pad|>", "image_token": "<|image_pad|>", "video_token": "<|video_pad|>", "vision_bos_token": "<|vision_start|>", "vision_eos_token": "<|vision_end|>" }}123456789101112131415161718192021{ "size": { "longest_edge": 25165824, "shortest_edge": 4096 }, "patch_size": 16, "temporal_patch_size": 2, "merge_size": 2, "image_mean": [ 0.5, 0.5, 0.5 ], "image_std": [ 0.5, 0.5, 0.5 ], "processor_class": "Qwen3VLProcessor", "video_processor_type": "Qwen3VLVideoProcessor"}qwen3.5-27b-sft/.gcoreAdded+1
qwen3.5-27b-sft/.manifest.txtAdded+70
qwen3.5-27b-sft/chat_template.jinjaAdded+154
qwen3.5-27b-sft/config.jsonAdded+135
qwen3.5-27b-sft/generation_config.jsonAdded+13
qwen3.5-27b-sft/merges.txtAdded
qwen3.5-27b-sft/model.safetensors-00003-of-00011.safetensorsAdded+3
qwen3.5-27b-sft/model.safetensors-00006-of-00011.safetensorsAdded+3
qwen3.5-27b-sft/model.safetensors-00009-of-00011.safetensorsAdded+3
qwen3.5-27b-sft/model.safetensors.index.jsonAdded
qwen3.5-27b-sft/preprocessor_config.jsonAdded+21
qwen3.5-27b-sft/tokenizer_config.jsonAdded+305
qwen3.5-27b-sft/video_preprocessor_config.jsonAdded+21
qwen3.5-27b-sft/vocab.jsonAdded
qwen3.6-27b-sft/.gcoreAdded+1
qwen3.6-27b-sft/.manifest.txtAdded+30
qwen3.6-27b-sft/chat_template.jinjaAdded+154
qwen3.6-27b-sft/config.jsonAdded+140
qwen3.6-27b-sft/configuration.jsonAdded+1
qwen3.6-27b-sft/generation_config.jsonAdded+12
qwen3.6-27b-sft/merges.txtAdded
qwen3.6-27b-sft/model.safetensors.index.jsonAdded
qwen3.6-27b-sft/preprocessor_config.jsonAdded+21
qwen3.6-27b-sft/tokenizer_config.jsonAdded+305
qwen3.6-27b-sft/video_preprocessor_config.jsonAdded+21
qwen3.6-27b-sft/vocab.jsonAdded