JazySong commited on
Commit
100fdbb
·
verified ·
1 Parent(s): 3df9487

Add files using upload-large-folder tool

Browse files
qwen3.5-27b-sft/.gcore ADDED
@@ -0,0 +1 @@
 
 
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}}
qwen3.5-27b-sft/.manifest.txt ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .cache/huggingface/.gitignore 1
2
+ .cache/huggingface/download/.gitattributes.lock 0
3
+ .cache/huggingface/download/.gitattributes.metadata 101
4
+ .cache/huggingface/download/README.md.lock 0
5
+ .cache/huggingface/download/README.md.metadata 101
6
+ .cache/huggingface/download/chat_template.jinja.lock 0
7
+ .cache/huggingface/download/chat_template.jinja.metadata 101
8
+ .cache/huggingface/download/config.json.lock 0
9
+ .cache/huggingface/download/config.json.metadata 101
10
+ .cache/huggingface/download/generation_config.json.lock 0
11
+ .cache/huggingface/download/generation_config.json.metadata 101
12
+ .cache/huggingface/download/merges.txt.lock 0
13
+ .cache/huggingface/download/merges.txt.metadata 100
14
+ .cache/huggingface/download/model.safetensors-00001-of-00011.safetensors.lock 0
15
+ .cache/huggingface/download/model.safetensors-00001-of-00011.safetensors.metadata 125
16
+ .cache/huggingface/download/model.safetensors-00002-of-00011.safetensors.lock 0
17
+ .cache/huggingface/download/model.safetensors-00002-of-00011.safetensors.metadata 124
18
+ .cache/huggingface/download/model.safetensors-00003-of-00011.safetensors.lock 0
19
+ .cache/huggingface/download/model.safetensors-00003-of-00011.safetensors.metadata 125
20
+ .cache/huggingface/download/model.safetensors-00004-of-00011.safetensors.lock 0
21
+ .cache/huggingface/download/model.safetensors-00004-of-00011.safetensors.metadata 125
22
+ .cache/huggingface/download/model.safetensors-00005-of-00011.safetensors.lock 0
23
+ .cache/huggingface/download/model.safetensors-00005-of-00011.safetensors.metadata 124
24
+ .cache/huggingface/download/model.safetensors-00006-of-00011.safetensors.lock 0
25
+ .cache/huggingface/download/model.safetensors-00006-of-00011.safetensors.metadata 125
26
+ .cache/huggingface/download/model.safetensors-00007-of-00011.safetensors.lock 0
27
+ .cache/huggingface/download/model.safetensors-00007-of-00011.safetensors.metadata 125
28
+ .cache/huggingface/download/model.safetensors-00008-of-00011.safetensors.lock 0
29
+ .cache/huggingface/download/model.safetensors-00008-of-00011.safetensors.metadata 125
30
+ .cache/huggingface/download/model.safetensors-00009-of-00011.safetensors.lock 0
31
+ .cache/huggingface/download/model.safetensors-00009-of-00011.safetensors.metadata 125
32
+ .cache/huggingface/download/model.safetensors-00010-of-00011.safetensors.lock 0
33
+ .cache/huggingface/download/model.safetensors-00010-of-00011.safetensors.metadata 124
34
+ .cache/huggingface/download/model.safetensors-00011-of-00011.safetensors.lock 0
35
+ .cache/huggingface/download/model.safetensors-00011-of-00011.safetensors.metadata 125
36
+ .cache/huggingface/download/model.safetensors.index.json.lock 0
37
+ .cache/huggingface/download/model.safetensors.index.json.metadata 101
38
+ .cache/huggingface/download/preprocessor_config.json.lock 0
39
+ .cache/huggingface/download/preprocessor_config.json.metadata 101
40
+ .cache/huggingface/download/tokenizer.json.lock 0
41
+ .cache/huggingface/download/tokenizer.json.metadata 125
42
+ .cache/huggingface/download/tokenizer_config.json.lock 0
43
+ .cache/huggingface/download/tokenizer_config.json.metadata 101
44
+ .cache/huggingface/download/video_preprocessor_config.json.lock 0
45
+ .cache/huggingface/download/video_preprocessor_config.json.metadata 100
46
+ .cache/huggingface/download/vocab.json.lock 0
47
+ .cache/huggingface/download/vocab.json.metadata 101
48
+ .gitattributes 1570
49
+ README.md 92407
50
+ chat_template.jinja 7756
51
+ config.json 4134
52
+ generation_config.json 244
53
+ merges.txt 3353259
54
+ model.safetensors-00001-of-00011.safetensors 5263851872
55
+ model.safetensors-00002-of-00011.safetensors 5347741440
56
+ model.safetensors-00003-of-00011.safetensors 5347741504
57
+ model.safetensors-00004-of-00011.safetensors 5347741504
58
+ model.safetensors-00005-of-00011.safetensors 5347741504
59
+ model.safetensors-00006-of-00011.safetensors 5347741504
60
+ model.safetensors-00007-of-00011.safetensors 5347741496
61
+ model.safetensors-00008-of-00011.safetensors 5368714128
62
+ model.safetensors-00009-of-00011.safetensors 5347745520
63
+ model.safetensors-00010-of-00011.safetensors 5347749200
64
+ model.safetensors-00011-of-00011.safetensors 2148512760
65
+ model.safetensors.index.json 126601
66
+ preprocessor_config.json 390
67
+ tokenizer.json 12807982
68
+ tokenizer_config.json 16710
69
+ video_preprocessor_config.json 385
70
+ vocab.json 6722759
qwen3.5-27b-sft/chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
qwen3.5-27b-sft/config.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "model_type": "qwen3_5",
7
+ "text_config": {
8
+ "attention_bias": false,
9
+ "attention_dropout": 0.0,
10
+ "attn_output_gate": true,
11
+ "dtype": "bfloat16",
12
+ "eos_token_id": 248044,
13
+ "full_attention_interval": 4,
14
+ "head_dim": 256,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 5120,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 17408,
19
+ "layer_types": [
20
+ "linear_attention",
21
+ "linear_attention",
22
+ "linear_attention",
23
+ "full_attention",
24
+ "linear_attention",
25
+ "linear_attention",
26
+ "linear_attention",
27
+ "full_attention",
28
+ "linear_attention",
29
+ "linear_attention",
30
+ "linear_attention",
31
+ "full_attention",
32
+ "linear_attention",
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "full_attention",
36
+ "linear_attention",
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "full_attention",
40
+ "linear_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "full_attention",
44
+ "linear_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "full_attention",
48
+ "linear_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "full_attention",
52
+ "linear_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "full_attention",
56
+ "linear_attention",
57
+ "linear_attention",
58
+ "linear_attention",
59
+ "full_attention",
60
+ "linear_attention",
61
+ "linear_attention",
62
+ "linear_attention",
63
+ "full_attention",
64
+ "linear_attention",
65
+ "linear_attention",
66
+ "linear_attention",
67
+ "full_attention",
68
+ "linear_attention",
69
+ "linear_attention",
70
+ "linear_attention",
71
+ "full_attention",
72
+ "linear_attention",
73
+ "linear_attention",
74
+ "linear_attention",
75
+ "full_attention",
76
+ "linear_attention",
77
+ "linear_attention",
78
+ "linear_attention",
79
+ "full_attention",
80
+ "linear_attention",
81
+ "linear_attention",
82
+ "linear_attention",
83
+ "full_attention"
84
+ ],
85
+ "linear_conv_kernel_dim": 4,
86
+ "linear_key_head_dim": 128,
87
+ "linear_num_key_heads": 16,
88
+ "linear_num_value_heads": 48,
89
+ "linear_value_head_dim": 128,
90
+ "max_position_embeddings": 262144,
91
+ "mlp_only_layers": [],
92
+ "model_type": "qwen3_5_text",
93
+ "mtp_num_hidden_layers": 1,
94
+ "mtp_use_dedicated_embeddings": false,
95
+ "num_attention_heads": 24,
96
+ "num_hidden_layers": 64,
97
+ "num_key_value_heads": 4,
98
+ "rms_norm_eps": 1e-06,
99
+ "use_cache": true,
100
+ "vocab_size": 248320,
101
+ "mamba_ssm_dtype": "float32",
102
+ "rope_parameters": {
103
+ "mrope_interleaved": true,
104
+ "mrope_section": [
105
+ 11,
106
+ 11,
107
+ 10
108
+ ],
109
+ "rope_type": "default",
110
+ "rope_theta": 10000000,
111
+ "partial_rotary_factor": 0.25
112
+ }
113
+ },
114
+ "tie_word_embeddings": false,
115
+ "transformers_version": "4.57.0.dev0",
116
+ "video_token_id": 248057,
117
+ "vision_config": {
118
+ "deepstack_visual_indexes": [],
119
+ "depth": 27,
120
+ "hidden_act": "gelu_pytorch_tanh",
121
+ "hidden_size": 1152,
122
+ "in_channels": 3,
123
+ "initializer_range": 0.02,
124
+ "intermediate_size": 4304,
125
+ "model_type": "qwen3_5",
126
+ "num_heads": 16,
127
+ "num_position_embeddings": 2304,
128
+ "out_hidden_size": 5120,
129
+ "patch_size": 16,
130
+ "spatial_merge_size": 2,
131
+ "temporal_patch_size": 2
132
+ },
133
+ "vision_end_token_id": 248054,
134
+ "vision_start_token_id": 248053
135
+ }
qwen3.5-27b-sft/generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046,
6
+ 248044
7
+ ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.57.0.dev0"
13
+ }
qwen3.5-27b-sft/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen3.5-27b-sft/model.safetensors-00003-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:398ec6a7eba0383d6c4739125643110555b0829c3a5ee3a81fa1003721a67811
3
+ size 5347741504
qwen3.5-27b-sft/model.safetensors-00006-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5edf8a9d847656b55b00dc8fd2399ee49b472bed2a9821a15c043e0c6f11760e
3
+ size 5347741504
qwen3.5-27b-sft/model.safetensors-00009-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5b17169a242f1c312329aca3c5f05c1327d3c87499a972cbfebd942fe9d89b0
3
+ size 5284830848
qwen3.5-27b-sft/model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen3.5-27b-sft/preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
qwen3.5-27b-sft/tokenizer_config.json ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "248044": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "248045": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "248046": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "248047": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "248048": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "248049": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "248050": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "248051": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "248052": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "248053": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "248054": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "248055": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "248056": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "248057": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "248058": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "248059": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "248060": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "248061": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "248062": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "248063": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "248064": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "248065": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "248066": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "248067": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "248068": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "248069": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "248070": {
213
+ "content": "<|audio_start|>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "248071": {
221
+ "content": "<|audio_end|>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "248072": {
229
+ "content": "<tts_pad>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "248073": {
237
+ "content": "<tts_text_bos>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "248074": {
245
+ "content": "<tts_text_eod>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "248075": {
253
+ "content": "<tts_text_bos_single>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "248076": {
261
+ "content": "<|audio_pad|>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ }
268
+ },
269
+ "additional_special_tokens": [
270
+ "<|im_start|>",
271
+ "<|im_end|>",
272
+ "<|object_ref_start|>",
273
+ "<|object_ref_end|>",
274
+ "<|box_start|>",
275
+ "<|box_end|>",
276
+ "<|quad_start|>",
277
+ "<|quad_end|>",
278
+ "<|vision_start|>",
279
+ "<|vision_end|>",
280
+ "<|vision_pad|>",
281
+ "<|image_pad|>",
282
+ "<|video_pad|>"
283
+ ],
284
+ "bos_token": null,
285
+ "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 %}",
286
+ "clean_up_tokenization_spaces": false,
287
+ "eos_token": "<|im_end|>",
288
+ "errors": "replace",
289
+ "model_max_length": 262144,
290
+ "pad_token": "<|endoftext|>",
291
+ "split_special_tokens": false,
292
+ "tokenizer_class": "Qwen2Tokenizer",
293
+ "unk_token": null,
294
+ "add_bos_token": false,
295
+ "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+",
296
+ "extra_special_tokens": {
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>",
299
+ "audio_token": "<|audio_pad|>",
300
+ "image_token": "<|image_pad|>",
301
+ "video_token": "<|video_pad|>",
302
+ "vision_bos_token": "<|vision_start|>",
303
+ "vision_eos_token": "<|vision_end|>"
304
+ }
305
+ }
qwen3.5-27b-sft/video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
qwen3.5-27b-sft/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen3.6-27b-sft/.gcore ADDED
@@ -0,0 +1 @@
 
 
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}}
qwen3.6-27b-sft/.manifest.txt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .enable_wfs_warmup 48
2
+ .gitattributes 1570
3
+ LICENSE 11343
4
+ README.md 62593
5
+ chat_template.jinja 7764
6
+ config.json 4308
7
+ configuration.json 51
8
+ generation_config.json 202
9
+ merges.txt 3353259
10
+ model-00001-of-00015.safetensors 3968861352
11
+ model-00002-of-00015.safetensors 3921677136
12
+ model-00003-of-00015.safetensors 3921677128
13
+ model-00004-of-00015.safetensors 3921677128
14
+ model-00005-of-00015.safetensors 3921677112
15
+ model-00006-of-00015.safetensors 3900710888
16
+ model-00007-of-00015.safetensors 3994391976
17
+ model-00008-of-00015.safetensors 3879219776
18
+ model-00009-of-00015.safetensors 3921677136
19
+ model-00010-of-00015.safetensors 3921677128
20
+ model-00011-of-00015.safetensors 3921677136
21
+ model-00012-of-00015.safetensors 3921677136
22
+ model-00013-of-00015.safetensors 3995081848
23
+ model-00014-of-00015.safetensors 3942652952
24
+ model-00015-of-00015.safetensors 508670568
25
+ model.safetensors.index.json 112216
26
+ preprocessor_config.json 390
27
+ tokenizer.json 12807982
28
+ tokenizer_config.json 16718
29
+ video_preprocessor_config.json 385
30
+ vocab.json 6722759
qwen3.6-27b-sft/chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if (preserve_thinking is defined and preserve_thinking is true) or (loop.index0 > ns.last_query_index) %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
qwen3.6-27b-sft/config.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 248056,
6
+ "language_model_only": false,
7
+ "model_type": "qwen3_5",
8
+ "text_config": {
9
+ "attention_bias": false,
10
+ "attention_dropout": 0.0,
11
+ "attn_output_gate": true,
12
+ "bos_token_id": 248044,
13
+ "dtype": "bfloat16",
14
+ "eos_token_id": 248044,
15
+ "full_attention_interval": 4,
16
+ "head_dim": 256,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 5120,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 17408,
21
+ "layer_types": [
22
+ "linear_attention",
23
+ "linear_attention",
24
+ "linear_attention",
25
+ "full_attention",
26
+ "linear_attention",
27
+ "linear_attention",
28
+ "linear_attention",
29
+ "full_attention",
30
+ "linear_attention",
31
+ "linear_attention",
32
+ "linear_attention",
33
+ "full_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "linear_attention",
37
+ "full_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "linear_attention",
41
+ "full_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "linear_attention",
45
+ "full_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "linear_attention",
49
+ "full_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "linear_attention",
53
+ "full_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "linear_attention",
57
+ "full_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "linear_attention",
61
+ "full_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "linear_attention",
65
+ "full_attention",
66
+ "linear_attention",
67
+ "linear_attention",
68
+ "linear_attention",
69
+ "full_attention",
70
+ "linear_attention",
71
+ "linear_attention",
72
+ "linear_attention",
73
+ "full_attention",
74
+ "linear_attention",
75
+ "linear_attention",
76
+ "linear_attention",
77
+ "full_attention",
78
+ "linear_attention",
79
+ "linear_attention",
80
+ "linear_attention",
81
+ "full_attention",
82
+ "linear_attention",
83
+ "linear_attention",
84
+ "linear_attention",
85
+ "full_attention"
86
+ ],
87
+ "linear_conv_kernel_dim": 4,
88
+ "linear_key_head_dim": 128,
89
+ "linear_num_key_heads": 16,
90
+ "linear_num_value_heads": 48,
91
+ "linear_value_head_dim": 128,
92
+ "mamba_ssm_dtype": "float32",
93
+ "max_position_embeddings": 262144,
94
+ "model_type": "qwen3_5_text",
95
+ "mtp_num_hidden_layers": 1,
96
+ "mtp_use_dedicated_embeddings": false,
97
+ "num_attention_heads": 24,
98
+ "num_hidden_layers": 64,
99
+ "num_key_value_heads": 4,
100
+ "output_gate_type": "swish",
101
+ "pad_token_id": null,
102
+ "partial_rotary_factor": 0.25,
103
+ "rms_norm_eps": 1e-06,
104
+ "rope_parameters": {
105
+ "mrope_interleaved": true,
106
+ "mrope_section": [
107
+ 11,
108
+ 11,
109
+ 10
110
+ ],
111
+ "partial_rotary_factor": 0.25,
112
+ "rope_theta": 10000000,
113
+ "rope_type": "default"
114
+ },
115
+ "tie_word_embeddings": false,
116
+ "use_cache": true,
117
+ "vocab_size": 248320
118
+ },
119
+ "tie_word_embeddings": false,
120
+ "transformers_version": "4.57.1",
121
+ "video_token_id": 248057,
122
+ "vision_config": {
123
+ "deepstack_visual_indexes": [],
124
+ "depth": 27,
125
+ "hidden_act": "gelu_pytorch_tanh",
126
+ "hidden_size": 1152,
127
+ "in_channels": 3,
128
+ "initializer_range": 0.02,
129
+ "intermediate_size": 4304,
130
+ "model_type": "qwen3_5",
131
+ "num_heads": 16,
132
+ "num_position_embeddings": 2304,
133
+ "out_hidden_size": 5120,
134
+ "patch_size": 16,
135
+ "spatial_merge_size": 2,
136
+ "temporal_patch_size": 2
137
+ },
138
+ "vision_end_token_id": 248054,
139
+ "vision_start_token_id": 248053
140
+ }
qwen3.6-27b-sft/configuration.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"framework":"Pytorch","task":"image-text-to-text"}
qwen3.6-27b-sft/generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248044,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 248046,
6
+ 248044
7
+ ],
8
+ "pad_token_id": 248044,
9
+ "temperature": 1.0,
10
+ "top_k": 20,
11
+ "top_p": 0.95
12
+ }
qwen3.6-27b-sft/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen3.6-27b-sft/model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen3.6-27b-sft/preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
qwen3.6-27b-sft/tokenizer_config.json ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "248044": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "248045": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "248046": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "248047": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "248048": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "248049": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "248050": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "248051": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "248052": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "248053": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "248054": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "248055": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "248056": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "248057": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "248058": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "248059": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "248060": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "248061": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "248062": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "248063": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "248064": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "248065": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ },
180
+ "248066": {
181
+ "content": "<tool_response>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": false
187
+ },
188
+ "248067": {
189
+ "content": "</tool_response>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": false
195
+ },
196
+ "248068": {
197
+ "content": "<think>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": false
203
+ },
204
+ "248069": {
205
+ "content": "</think>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": false
211
+ },
212
+ "248070": {
213
+ "content": "<|audio_start|>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "248071": {
221
+ "content": "<|audio_end|>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "248072": {
229
+ "content": "<tts_pad>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "248073": {
237
+ "content": "<tts_text_bos>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "248074": {
245
+ "content": "<tts_text_eod>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "248075": {
253
+ "content": "<tts_text_bos_single>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "248076": {
261
+ "content": "<|audio_pad|>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ }
268
+ },
269
+ "additional_special_tokens": [
270
+ "<|im_start|>",
271
+ "<|im_end|>",
272
+ "<|object_ref_start|>",
273
+ "<|object_ref_end|>",
274
+ "<|box_start|>",
275
+ "<|box_end|>",
276
+ "<|quad_start|>",
277
+ "<|quad_end|>",
278
+ "<|vision_start|>",
279
+ "<|vision_end|>",
280
+ "<|vision_pad|>",
281
+ "<|image_pad|>",
282
+ "<|video_pad|>"
283
+ ],
284
+ "bos_token": null,
285
+ "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 %}",
286
+ "clean_up_tokenization_spaces": false,
287
+ "eos_token": "<|im_end|>",
288
+ "errors": "replace",
289
+ "model_max_length": 262144,
290
+ "pad_token": "<|endoftext|>",
291
+ "split_special_tokens": false,
292
+ "tokenizer_class": "Qwen2Tokenizer",
293
+ "unk_token": null,
294
+ "add_bos_token": false,
295
+ "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+",
296
+ "extra_special_tokens": {
297
+ "audio_bos_token": "<|audio_start|>",
298
+ "audio_eos_token": "<|audio_end|>",
299
+ "audio_token": "<|audio_pad|>",
300
+ "image_token": "<|image_pad|>",
301
+ "video_token": "<|video_pad|>",
302
+ "vision_bos_token": "<|vision_start|>",
303
+ "vision_eos_token": "<|vision_end|>"
304
+ }
305
+ }
qwen3.6-27b-sft/video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
qwen3.6-27b-sft/vocab.json ADDED
The diff for this file is too large to render. See raw diff