Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- added_tokens.json +28 -0
- args.json +493 -0
- chat_template.jinja +117 -0
- config.json +41 -0
- merges.txt +0 -0
- model-00001-of-00013.safetensors +3 -0
- model-00002-of-00013.safetensors +3 -0
- model-00003-of-00013.safetensors +3 -0
- model-00004-of-00013.safetensors +3 -0
- model-00005-of-00013.safetensors +3 -0
- model-00006-of-00013.safetensors +3 -0
- model-00007-of-00013.safetensors +3 -0
- model-00008-of-00013.safetensors +3 -0
- model-00009-of-00013.safetensors +3 -0
- model-00010-of-00013.safetensors +3 -0
- model-00011-of-00013.safetensors +3 -0
- model-00012-of-00013.safetensors +3 -0
- model-00013-of-00013.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +31 -0
- tokenizer.json +3 -0
- tokenizer_config.json +239 -0
- vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
added_tokens.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</think>": 151668,
|
| 3 |
+
"</tool_call>": 151658,
|
| 4 |
+
"</tool_response>": 151666,
|
| 5 |
+
"<think>": 151667,
|
| 6 |
+
"<tool_call>": 151657,
|
| 7 |
+
"<tool_response>": 151665,
|
| 8 |
+
"<|box_end|>": 151649,
|
| 9 |
+
"<|box_start|>": 151648,
|
| 10 |
+
"<|endoftext|>": 151643,
|
| 11 |
+
"<|file_sep|>": 151664,
|
| 12 |
+
"<|fim_middle|>": 151660,
|
| 13 |
+
"<|fim_pad|>": 151662,
|
| 14 |
+
"<|fim_prefix|>": 151659,
|
| 15 |
+
"<|fim_suffix|>": 151661,
|
| 16 |
+
"<|im_end|>": 151645,
|
| 17 |
+
"<|im_start|>": 151644,
|
| 18 |
+
"<|image_pad|>": 151655,
|
| 19 |
+
"<|object_ref_end|>": 151647,
|
| 20 |
+
"<|object_ref_start|>": 151646,
|
| 21 |
+
"<|quad_end|>": 151651,
|
| 22 |
+
"<|quad_start|>": 151650,
|
| 23 |
+
"<|repo_name|>": 151663,
|
| 24 |
+
"<|video_pad|>": 151656,
|
| 25 |
+
"<|vision_end|>": 151653,
|
| 26 |
+
"<|vision_pad|>": 151654,
|
| 27 |
+
"<|vision_start|>": 151652
|
| 28 |
+
}
|
args.json
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"use_ray": false,
|
| 3 |
+
"ray_exp_name": null,
|
| 4 |
+
"device_groups": null,
|
| 5 |
+
"model": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
|
| 6 |
+
"model_type": "qwen3_coder",
|
| 7 |
+
"model_revision": null,
|
| 8 |
+
"task_type": "causal_lm",
|
| 9 |
+
"torch_dtype": "bfloat16",
|
| 10 |
+
"attn_impl": null,
|
| 11 |
+
"new_special_tokens": [],
|
| 12 |
+
"num_labels": null,
|
| 13 |
+
"problem_type": null,
|
| 14 |
+
"rope_scaling": null,
|
| 15 |
+
"device_map": null,
|
| 16 |
+
"max_memory": {},
|
| 17 |
+
"max_model_len": null,
|
| 18 |
+
"local_repo_path": null,
|
| 19 |
+
"init_strategy": null,
|
| 20 |
+
"template": "qwen3_coder",
|
| 21 |
+
"system": null,
|
| 22 |
+
"max_length": 8192,
|
| 23 |
+
"truncation_strategy": "delete",
|
| 24 |
+
"max_pixels": null,
|
| 25 |
+
"agent_template": null,
|
| 26 |
+
"norm_bbox": null,
|
| 27 |
+
"use_chat_template": true,
|
| 28 |
+
"padding_free": true,
|
| 29 |
+
"padding_side": "right",
|
| 30 |
+
"loss_scale": "default",
|
| 31 |
+
"sequence_parallel_size": 1,
|
| 32 |
+
"response_prefix": null,
|
| 33 |
+
"template_backend": "swift",
|
| 34 |
+
"dataset": [
|
| 35 |
+
"data_clean.jsonl"
|
| 36 |
+
],
|
| 37 |
+
"val_dataset": [],
|
| 38 |
+
"split_dataset_ratio": 0.01,
|
| 39 |
+
"data_seed": 42,
|
| 40 |
+
"dataset_num_proc": 8,
|
| 41 |
+
"load_from_cache_file": false,
|
| 42 |
+
"dataset_shuffle": true,
|
| 43 |
+
"val_dataset_shuffle": false,
|
| 44 |
+
"streaming": false,
|
| 45 |
+
"interleave_prob": null,
|
| 46 |
+
"stopping_strategy": "first_exhausted",
|
| 47 |
+
"shuffle_buffer_size": 1000,
|
| 48 |
+
"download_mode": "reuse_dataset_if_exists",
|
| 49 |
+
"columns": {},
|
| 50 |
+
"strict": false,
|
| 51 |
+
"remove_unused_columns": true,
|
| 52 |
+
"model_name": [
|
| 53 |
+
"swift-robot"
|
| 54 |
+
],
|
| 55 |
+
"model_author": [
|
| 56 |
+
"swift"
|
| 57 |
+
],
|
| 58 |
+
"custom_dataset_info": [],
|
| 59 |
+
"quant_method": null,
|
| 60 |
+
"quant_bits": null,
|
| 61 |
+
"hqq_axis": null,
|
| 62 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 63 |
+
"bnb_4bit_quant_type": "nf4",
|
| 64 |
+
"bnb_4bit_use_double_quant": true,
|
| 65 |
+
"bnb_4bit_quant_storage": null,
|
| 66 |
+
"max_new_tokens": null,
|
| 67 |
+
"temperature": null,
|
| 68 |
+
"top_k": null,
|
| 69 |
+
"top_p": null,
|
| 70 |
+
"repetition_penalty": null,
|
| 71 |
+
"num_beams": 1,
|
| 72 |
+
"stream": false,
|
| 73 |
+
"stop_words": [],
|
| 74 |
+
"logprobs": false,
|
| 75 |
+
"top_logprobs": null,
|
| 76 |
+
"ckpt_dir": null,
|
| 77 |
+
"lora_modules": [],
|
| 78 |
+
"tuner_backend": "peft",
|
| 79 |
+
"train_type": "lora",
|
| 80 |
+
"adapters": [],
|
| 81 |
+
"external_plugins": [],
|
| 82 |
+
"seed": 42,
|
| 83 |
+
"model_kwargs": {},
|
| 84 |
+
"load_args": false,
|
| 85 |
+
"load_data_args": false,
|
| 86 |
+
"packing": false,
|
| 87 |
+
"packing_length": null,
|
| 88 |
+
"lazy_tokenize": false,
|
| 89 |
+
"cached_dataset": [],
|
| 90 |
+
"custom_register_path": [],
|
| 91 |
+
"use_hf": false,
|
| 92 |
+
"hub_token": null,
|
| 93 |
+
"ddp_timeout": 18000000,
|
| 94 |
+
"ddp_backend": null,
|
| 95 |
+
"ignore_args_error": false,
|
| 96 |
+
"use_swift_lora": false,
|
| 97 |
+
"freeze_llm": false,
|
| 98 |
+
"freeze_vit": true,
|
| 99 |
+
"freeze_aligner": true,
|
| 100 |
+
"freeze_parameters": [],
|
| 101 |
+
"freeze_parameters_regex": null,
|
| 102 |
+
"freeze_parameters_ratio": 0.0,
|
| 103 |
+
"trainable_parameters": [],
|
| 104 |
+
"trainable_parameters_regex": null,
|
| 105 |
+
"adapter_load": null,
|
| 106 |
+
"target_modules": [
|
| 107 |
+
"all-linear"
|
| 108 |
+
],
|
| 109 |
+
"target_regex": null,
|
| 110 |
+
"modules_to_save": [],
|
| 111 |
+
"lora_rank": 16,
|
| 112 |
+
"lora_alpha": 32,
|
| 113 |
+
"lora_dropout": 0.05,
|
| 114 |
+
"lora_bias": "none",
|
| 115 |
+
"lora_dtype": null,
|
| 116 |
+
"use_rslora": false,
|
| 117 |
+
"rlhf_type": null,
|
| 118 |
+
"ref_load": null,
|
| 119 |
+
"ref_adapter_load": null,
|
| 120 |
+
"beta": 0.1,
|
| 121 |
+
"rpo_alpha": null,
|
| 122 |
+
"reference_free": false,
|
| 123 |
+
"label_smoothing": 0.0,
|
| 124 |
+
"f_divergence_type": "reverse_kl",
|
| 125 |
+
"loss_type": null,
|
| 126 |
+
"desirable_weight": 1.0,
|
| 127 |
+
"undesirable_weight": 1.0,
|
| 128 |
+
"calculate_KL": null,
|
| 129 |
+
"center_rewards_coefficient": null,
|
| 130 |
+
"padded_vocab_size": 151936,
|
| 131 |
+
"initialize_embedding": false,
|
| 132 |
+
"mlp_padding_free": false,
|
| 133 |
+
"load_safetensors": true,
|
| 134 |
+
"save_safetensors": false,
|
| 135 |
+
"ref_model": null,
|
| 136 |
+
"ref_adapters": [],
|
| 137 |
+
"merge_lora": false,
|
| 138 |
+
"max_shard_size": "5GB",
|
| 139 |
+
"dataloader_persistent_workers": true,
|
| 140 |
+
"dataloader_prefetch_factor": 10,
|
| 141 |
+
"architectures": "Qwen3MoeForCausalLM",
|
| 142 |
+
"llm_architectures": null,
|
| 143 |
+
"max_epochs": 1,
|
| 144 |
+
"enable_dft_loss": false,
|
| 145 |
+
"enable_channel_loss": false,
|
| 146 |
+
"original_max_position_embeddings": null,
|
| 147 |
+
"partial_rotary_factor": null,
|
| 148 |
+
"use_shared_expert_gate": false,
|
| 149 |
+
"vit_gradient_checkpointing": true,
|
| 150 |
+
"vit_lr": null,
|
| 151 |
+
"aligner_lr": null,
|
| 152 |
+
"gradient_checkpointing_kwargs": null,
|
| 153 |
+
"linear_num_value_heads": null,
|
| 154 |
+
"linear_num_key_heads": null,
|
| 155 |
+
"linear_key_head_dim": null,
|
| 156 |
+
"linear_value_head_dim": null,
|
| 157 |
+
"linear_conv_kernel_dim": null,
|
| 158 |
+
"layer_types": null,
|
| 159 |
+
"mrope_interleaved": false,
|
| 160 |
+
"micro_batch_size": 4,
|
| 161 |
+
"global_batch_size": 32,
|
| 162 |
+
"recompute_granularity": "full",
|
| 163 |
+
"recompute_method": "uniform",
|
| 164 |
+
"recompute_num_layers": 1,
|
| 165 |
+
"recompute_modules": [
|
| 166 |
+
"core_attn"
|
| 167 |
+
],
|
| 168 |
+
"use_cpu_initialization": false,
|
| 169 |
+
"deterministic_mode": false,
|
| 170 |
+
"train_iters": null,
|
| 171 |
+
"log_interval": 5,
|
| 172 |
+
"tensorboard_dir": "/osmosis/swift/megatron_output/Qwen3-Coder-30B-A3B-Instruct/v2-20251130-183637/runs",
|
| 173 |
+
"no_masked_softmax_fusion": false,
|
| 174 |
+
"no_bias_dropout_fusion": false,
|
| 175 |
+
"no_bias_swiglu_fusion": false,
|
| 176 |
+
"no_rope_fusion": false,
|
| 177 |
+
"no_gradient_accumulation_fusion": false,
|
| 178 |
+
"cross_entropy_loss_fusion": true,
|
| 179 |
+
"cross_entropy_fusion_impl": "native",
|
| 180 |
+
"calculate_per_token_loss": true,
|
| 181 |
+
"use_flash_attn": false,
|
| 182 |
+
"attention_backend": "flash",
|
| 183 |
+
"optimizer": "adam",
|
| 184 |
+
"optimizer_cpu_offload": false,
|
| 185 |
+
"optimizer_offload_fraction": 1.0,
|
| 186 |
+
"use_precision_aware_optimizer": false,
|
| 187 |
+
"main_grads_dtype": "fp32",
|
| 188 |
+
"main_params_dtype": "fp32",
|
| 189 |
+
"exp_avg_dtype": "fp32",
|
| 190 |
+
"exp_avg_sq_dtype": "fp32",
|
| 191 |
+
"dataloader_type": "cyclic",
|
| 192 |
+
"manual_gc": false,
|
| 193 |
+
"manual_gc_interval": 0,
|
| 194 |
+
"lr": 0.0001,
|
| 195 |
+
"lr_decay_style": "cosine",
|
| 196 |
+
"lr_decay_iters": null,
|
| 197 |
+
"lr_warmup_iters": 0,
|
| 198 |
+
"lr_warmup_fraction": 0.05,
|
| 199 |
+
"min_lr": 1e-05,
|
| 200 |
+
"weight_decay": 0.1,
|
| 201 |
+
"clip_grad": 1.0,
|
| 202 |
+
"adam_beta1": 0.9,
|
| 203 |
+
"adam_beta2": 0.95,
|
| 204 |
+
"adam_eps": 1e-08,
|
| 205 |
+
"sgd_momentum": 0.9,
|
| 206 |
+
"save": "/osmosis/swift/megatron_output/Qwen3-Coder-30B-A3B-Instruct/v2-20251130-183637",
|
| 207 |
+
"save_interval": 200,
|
| 208 |
+
"save_retain_interval": null,
|
| 209 |
+
"no_save_optim": true,
|
| 210 |
+
"no_save_rng": true,
|
| 211 |
+
"load": null,
|
| 212 |
+
"no_load_optim": false,
|
| 213 |
+
"no_load_rng": false,
|
| 214 |
+
"finetune": true,
|
| 215 |
+
"ckpt_format": "torch_dist",
|
| 216 |
+
"no_initialization": true,
|
| 217 |
+
"auto_detect_ckpt_format": true,
|
| 218 |
+
"exit_on_missing_checkpoint": true,
|
| 219 |
+
"async_save": false,
|
| 220 |
+
"use_persistent_ckpt_worker": false,
|
| 221 |
+
"ckpt_fully_parallel_load": false,
|
| 222 |
+
"ckpt_assume_constant_structure": false,
|
| 223 |
+
"distributed_backend": "nccl",
|
| 224 |
+
"local_rank": 0,
|
| 225 |
+
"use_distributed_optimizer": true,
|
| 226 |
+
"tensor_model_parallel_size": 1,
|
| 227 |
+
"pipeline_model_parallel_size": 1,
|
| 228 |
+
"decoder_first_pipeline_num_layers": null,
|
| 229 |
+
"decoder_last_pipeline_num_layers": null,
|
| 230 |
+
"sequence_parallel": true,
|
| 231 |
+
"context_parallel_size": 1,
|
| 232 |
+
"tp_comm_overlap": false,
|
| 233 |
+
"overlap_grad_reduce": false,
|
| 234 |
+
"overlap_param_gather": false,
|
| 235 |
+
"distributed_timeout_minutes": 300000,
|
| 236 |
+
"num_layers_per_virtual_pipeline_stage": null,
|
| 237 |
+
"num_virtual_stages_per_pipeline_rank": null,
|
| 238 |
+
"microbatch_group_size_per_virtual_pipeline_stage": null,
|
| 239 |
+
"pipeline_model_parallel_layout": null,
|
| 240 |
+
"num_layers": 48,
|
| 241 |
+
"hidden_size": 2048,
|
| 242 |
+
"ffn_hidden_size": null,
|
| 243 |
+
"num_attention_heads": 32,
|
| 244 |
+
"group_query_attention": true,
|
| 245 |
+
"num_query_groups": 4,
|
| 246 |
+
"max_position_embeddings": 262144,
|
| 247 |
+
"position_embedding_type": "rope",
|
| 248 |
+
"mrope_section": null,
|
| 249 |
+
"rotary_base": 10000000,
|
| 250 |
+
"rotary_percent": 1.0,
|
| 251 |
+
"rotary_interleaved": false,
|
| 252 |
+
"normalization": "RMSNorm",
|
| 253 |
+
"norm_epsilon": 1e-06,
|
| 254 |
+
"swiglu": true,
|
| 255 |
+
"untie_embeddings_and_output_weights": true,
|
| 256 |
+
"disable_bias_linear": true,
|
| 257 |
+
"add_qkv_bias": false,
|
| 258 |
+
"attention_dropout": 0.0,
|
| 259 |
+
"hidden_dropout": 0.0,
|
| 260 |
+
"kv_channels": 128,
|
| 261 |
+
"qk_layernorm": true,
|
| 262 |
+
"transformer_impl": "transformer_engine",
|
| 263 |
+
"num_experts": 128,
|
| 264 |
+
"moe_layer_freq": "1",
|
| 265 |
+
"moe_ffn_hidden_size": 768,
|
| 266 |
+
"moe_shared_expert_intermediate_size": null,
|
| 267 |
+
"moe_router_topk": 8,
|
| 268 |
+
"moe_router_num_groups": null,
|
| 269 |
+
"moe_router_group_topk": null,
|
| 270 |
+
"moe_router_pre_softmax": false,
|
| 271 |
+
"moe_router_dtype": "fp32",
|
| 272 |
+
"moe_router_score_function": "softmax",
|
| 273 |
+
"moe_router_bias_update_rate": null,
|
| 274 |
+
"moe_router_enable_expert_bias": false,
|
| 275 |
+
"moe_router_topk_scaling_factor": null,
|
| 276 |
+
"moe_router_load_balancing_type": "aux_loss",
|
| 277 |
+
"expert_model_parallel_size": 2,
|
| 278 |
+
"expert_tensor_parallel_size": 1,
|
| 279 |
+
"moe_token_dispatcher_type": null,
|
| 280 |
+
"moe_enable_deepep": false,
|
| 281 |
+
"moe_grouped_gemm": true,
|
| 282 |
+
"moe_permute_fusion": false,
|
| 283 |
+
"moe_aux_loss_coeff": 0.001,
|
| 284 |
+
"moe_z_loss_coeff": null,
|
| 285 |
+
"moe_shared_expert_overlap": true,
|
| 286 |
+
"moe_layer_recompute": false,
|
| 287 |
+
"moe_expert_capacity_factor": null,
|
| 288 |
+
"moe_pad_expert_input_to_capacity": false,
|
| 289 |
+
"moe_token_drop_policy": null,
|
| 290 |
+
"multi_latent_attention": false,
|
| 291 |
+
"q_lora_rank": null,
|
| 292 |
+
"kv_lora_rank": 32,
|
| 293 |
+
"qk_head_dim": 128,
|
| 294 |
+
"qk_pos_emb_head_dim": 64,
|
| 295 |
+
"fp8_format": null,
|
| 296 |
+
"fp8_recipe": "delayed",
|
| 297 |
+
"fp8_amax_history_len": 1024,
|
| 298 |
+
"fp8_amax_compute_algo": "max",
|
| 299 |
+
"fp8_param_gather": false,
|
| 300 |
+
"fp16": false,
|
| 301 |
+
"bf16": true,
|
| 302 |
+
"apply_query_key_layer_scaling": false,
|
| 303 |
+
"attention_softmax_in_fp32": true,
|
| 304 |
+
"log_params_norm": false,
|
| 305 |
+
"log_throughput": false,
|
| 306 |
+
"tensorboard_log_interval": 1,
|
| 307 |
+
"tensorboard_queue_size": 50,
|
| 308 |
+
"log_timers_to_tensorboard": true,
|
| 309 |
+
"no_log_learning_rate_to_tensorboard": false,
|
| 310 |
+
"log_validation_ppl_to_tensorboard": true,
|
| 311 |
+
"log_memory_to_tensorboard": true,
|
| 312 |
+
"logging_level": null,
|
| 313 |
+
"wandb_project": null,
|
| 314 |
+
"wandb_exp_name": null,
|
| 315 |
+
"wandb_save_dir": null,
|
| 316 |
+
"eval_iters": -1,
|
| 317 |
+
"eval_interval": 200,
|
| 318 |
+
"seq_length": 8192,
|
| 319 |
+
"num_workers": 8,
|
| 320 |
+
"megatron_extra_kwargs": {},
|
| 321 |
+
"add_version": true,
|
| 322 |
+
"rank": 0,
|
| 323 |
+
"global_world_size": 8,
|
| 324 |
+
"local_world_size": 8,
|
| 325 |
+
"model_suffix": "Qwen3-Coder-30B-A3B-Instruct",
|
| 326 |
+
"model_info": "ModelInfo(model_type='qwen3_coder', model_dir='/root/.cache/modelscope/models/Qwen/Qwen3-Coder-30B-A3B-Instruct', torch_dtype=torch.bfloat16, max_model_len=262144, quant_method=None, quant_bits=None, rope_scaling=None, is_moe_model=True, config=None, task_type='causal_lm', num_labels=None)",
|
| 327 |
+
"model_meta": "ModelMeta(model_type='qwen3_coder', model_groups=[ModelGroup(models=[Model(ms_model_id='Qwen/Qwen3-Coder-30B-A3B-Instruct', hf_model_id='Qwen/Qwen3-Coder-30B-A3B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8', hf_model_id='Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen3-Coder-480B-A35B-Instruct', hf_model_id='Qwen/Qwen3-Coder-480B-A35B-Instruct', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8', hf_model_id='Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8', model_path=None, ms_revision=None, hf_revision=None), Model(ms_model_id='swift/Qwen3-Coder-480B-A35B-Instruct-AWQ', hf_model_id=None, model_path=None, ms_revision=None, hf_revision=None)], ignore_patterns=None, requires=None, tags=['coding'])], template='qwen3_coder', get_function=<function get_model_tokenizer_with_flash_attn at 0x74fec2cca020>, model_arch=None, architectures=['Qwen3MoeForCausalLM'], additional_saved_files=[], torch_dtype=None, is_multimodal=False, is_reward=False, is_reranker=False, task_type=None, ignore_patterns=None, requires=['transformers>=4.51'], tags=[])",
|
| 328 |
+
"model_dir": "/root/.cache/modelscope/models/Qwen/Qwen3-Coder-30B-A3B-Instruct",
|
| 329 |
+
"hub": "<class 'swift.hub.hub.MSHub'>",
|
| 330 |
+
"megatron_model_meta": "MegatronModelMeta(megatron_model_type='gpt', model_types=['qwen2', 'qwen2_5', 'qwq', 'qwq_preview', 'qwen2_5_math', 'llama', 'llama3', 'llama3_1', 'llama3_2', 'longwriter_llama3_1', 'codefuse_codellama', 'marco_o1', 'deepseek', 'deepseek_r1_distill', 'yi', 'yi_coder', 'sus', 'skywork_o1', 'openbuddy_llama', 'openbuddy_llama3', 'megrez', 'reflection', 'numina', 'ziya', 'mengzi3', 'qwen3', 'qwen3_thinking', 'qwen3_nothinking', 'qwen2_moe', 'qwen3_moe', 'qwen3_moe_thinking', 'qwen3_coder', 'internlm3', 'mimo', 'mimo_rl', 'moonlight', 'kimi_k2', 'deepseek_moe', 'deepseek_v2', 'deepseek_v2_5', 'deepseek_r1', 'dots1', 'ernie', 'glm4_5', 'deepseek_v3_1', 'ernie_thinking'], is_multimodal=False, bridge_cls=<class 'swift.megatron.model.gpt_bridge.GPTBridge'>, model_cls=<class 'swift.megatron.model.gpt_model.GPTModel'>, get_transformer_layer_spec=None, model_provider=<function model_provider at 0x74fe4453e480>, visual_cls=None, extra_args_provider=None)",
|
| 331 |
+
"extra_args": {
|
| 332 |
+
"model_dir": "/root/.cache/modelscope/models/Qwen/Qwen3-Coder-30B-A3B-Instruct",
|
| 333 |
+
"is_multimodal": false,
|
| 334 |
+
"hf_model_type": "qwen3_coder",
|
| 335 |
+
"use_ray": false,
|
| 336 |
+
"ray_exp_name": null,
|
| 337 |
+
"device_groups": null,
|
| 338 |
+
"model": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
|
| 339 |
+
"model_type": "qwen3_coder",
|
| 340 |
+
"model_revision": null,
|
| 341 |
+
"task_type": "causal_lm",
|
| 342 |
+
"torch_dtype": "bfloat16",
|
| 343 |
+
"attn_impl": null,
|
| 344 |
+
"new_special_tokens": [],
|
| 345 |
+
"num_labels": null,
|
| 346 |
+
"problem_type": null,
|
| 347 |
+
"rope_scaling": null,
|
| 348 |
+
"device_map": null,
|
| 349 |
+
"max_memory": {},
|
| 350 |
+
"max_model_len": null,
|
| 351 |
+
"local_repo_path": null,
|
| 352 |
+
"init_strategy": null,
|
| 353 |
+
"template": "qwen3_coder",
|
| 354 |
+
"system": null,
|
| 355 |
+
"max_length": 8192,
|
| 356 |
+
"truncation_strategy": "delete",
|
| 357 |
+
"max_pixels": null,
|
| 358 |
+
"agent_template": null,
|
| 359 |
+
"norm_bbox": null,
|
| 360 |
+
"use_chat_template": true,
|
| 361 |
+
"padding_free": true,
|
| 362 |
+
"padding_side": "right",
|
| 363 |
+
"sequence_parallel_size": 1,
|
| 364 |
+
"response_prefix": null,
|
| 365 |
+
"template_backend": "swift",
|
| 366 |
+
"dataset": [
|
| 367 |
+
"data_clean.jsonl"
|
| 368 |
+
],
|
| 369 |
+
"val_dataset": [],
|
| 370 |
+
"split_dataset_ratio": 0.01,
|
| 371 |
+
"data_seed": 42,
|
| 372 |
+
"dataset_num_proc": 8,
|
| 373 |
+
"load_from_cache_file": false,
|
| 374 |
+
"dataset_shuffle": true,
|
| 375 |
+
"val_dataset_shuffle": false,
|
| 376 |
+
"streaming": false,
|
| 377 |
+
"interleave_prob": null,
|
| 378 |
+
"stopping_strategy": "first_exhausted",
|
| 379 |
+
"shuffle_buffer_size": 1000,
|
| 380 |
+
"download_mode": "reuse_dataset_if_exists",
|
| 381 |
+
"columns": {},
|
| 382 |
+
"strict": false,
|
| 383 |
+
"remove_unused_columns": true,
|
| 384 |
+
"model_name": [
|
| 385 |
+
"swift-robot"
|
| 386 |
+
],
|
| 387 |
+
"model_author": [
|
| 388 |
+
"swift"
|
| 389 |
+
],
|
| 390 |
+
"custom_dataset_info": [],
|
| 391 |
+
"quant_method": null,
|
| 392 |
+
"quant_bits": null,
|
| 393 |
+
"hqq_axis": null,
|
| 394 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 395 |
+
"bnb_4bit_quant_type": "nf4",
|
| 396 |
+
"bnb_4bit_use_double_quant": true,
|
| 397 |
+
"bnb_4bit_quant_storage": null,
|
| 398 |
+
"max_new_tokens": null,
|
| 399 |
+
"temperature": null,
|
| 400 |
+
"top_k": null,
|
| 401 |
+
"top_p": null,
|
| 402 |
+
"repetition_penalty": null,
|
| 403 |
+
"num_beams": 1,
|
| 404 |
+
"stream": false,
|
| 405 |
+
"stop_words": [],
|
| 406 |
+
"logprobs": false,
|
| 407 |
+
"top_logprobs": null,
|
| 408 |
+
"ckpt_dir": null,
|
| 409 |
+
"lora_modules": [],
|
| 410 |
+
"tuner_backend": "peft",
|
| 411 |
+
"train_type": "lora",
|
| 412 |
+
"adapters": [],
|
| 413 |
+
"external_plugins": [],
|
| 414 |
+
"model_kwargs": {},
|
| 415 |
+
"load_args": false,
|
| 416 |
+
"load_data_args": false,
|
| 417 |
+
"packing": false,
|
| 418 |
+
"packing_length": null,
|
| 419 |
+
"lazy_tokenize": false,
|
| 420 |
+
"cached_dataset": [],
|
| 421 |
+
"custom_register_path": [],
|
| 422 |
+
"use_hf": false,
|
| 423 |
+
"hub_token": null,
|
| 424 |
+
"ddp_timeout": 18000000,
|
| 425 |
+
"ddp_backend": null,
|
| 426 |
+
"ignore_args_error": false,
|
| 427 |
+
"use_swift_lora": false,
|
| 428 |
+
"freeze_llm": false,
|
| 429 |
+
"freeze_vit": true,
|
| 430 |
+
"freeze_aligner": true,
|
| 431 |
+
"freeze_parameters": [],
|
| 432 |
+
"freeze_parameters_regex": null,
|
| 433 |
+
"freeze_parameters_ratio": 0.0,
|
| 434 |
+
"trainable_parameters": [],
|
| 435 |
+
"trainable_parameters_regex": null,
|
| 436 |
+
"adapter_load": null,
|
| 437 |
+
"target_modules": [
|
| 438 |
+
"all-linear"
|
| 439 |
+
],
|
| 440 |
+
"target_regex": null,
|
| 441 |
+
"modules_to_save": [],
|
| 442 |
+
"lora_rank": 16,
|
| 443 |
+
"lora_alpha": 32,
|
| 444 |
+
"lora_dropout": 0.05,
|
| 445 |
+
"lora_bias": "none",
|
| 446 |
+
"lora_dtype": null,
|
| 447 |
+
"use_rslora": false,
|
| 448 |
+
"rlhf_type": null,
|
| 449 |
+
"ref_load": null,
|
| 450 |
+
"ref_adapter_load": null,
|
| 451 |
+
"beta": 0.1,
|
| 452 |
+
"rpo_alpha": null,
|
| 453 |
+
"reference_free": false,
|
| 454 |
+
"label_smoothing": 0.0,
|
| 455 |
+
"f_divergence_type": "reverse_kl",
|
| 456 |
+
"loss_type": null,
|
| 457 |
+
"desirable_weight": 1.0,
|
| 458 |
+
"undesirable_weight": 1.0,
|
| 459 |
+
"calculate_KL": null,
|
| 460 |
+
"center_rewards_coefficient": null,
|
| 461 |
+
"padded_vocab_size": 151936,
|
| 462 |
+
"initialize_embedding": false,
|
| 463 |
+
"mlp_padding_free": false,
|
| 464 |
+
"load_safetensors": true,
|
| 465 |
+
"save_safetensors": false,
|
| 466 |
+
"ref_model": null,
|
| 467 |
+
"ref_adapters": [],
|
| 468 |
+
"merge_lora": false,
|
| 469 |
+
"max_shard_size": "5GB",
|
| 470 |
+
"dataloader_persistent_workers": true,
|
| 471 |
+
"dataloader_prefetch_factor": 10,
|
| 472 |
+
"architectures": "Qwen3MoeForCausalLM",
|
| 473 |
+
"llm_architectures": null,
|
| 474 |
+
"max_epochs": 1,
|
| 475 |
+
"enable_dft_loss": false,
|
| 476 |
+
"enable_channel_loss": false,
|
| 477 |
+
"original_max_position_embeddings": null,
|
| 478 |
+
"partial_rotary_factor": null,
|
| 479 |
+
"use_shared_expert_gate": false,
|
| 480 |
+
"vit_gradient_checkpointing": true,
|
| 481 |
+
"vit_lr": null,
|
| 482 |
+
"aligner_lr": null,
|
| 483 |
+
"gradient_checkpointing_kwargs": null,
|
| 484 |
+
"linear_num_value_heads": null,
|
| 485 |
+
"linear_num_key_heads": null,
|
| 486 |
+
"linear_key_head_dim": null,
|
| 487 |
+
"linear_value_head_dim": null,
|
| 488 |
+
"linear_conv_kernel_dim": null,
|
| 489 |
+
"layer_types": null,
|
| 490 |
+
"mrope_interleaved": false,
|
| 491 |
+
"add_version": true
|
| 492 |
+
}
|
| 493 |
+
}
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% macro render_extra_keys(json_dict, handled_keys) %}
|
| 2 |
+
{%- if json_dict is mapping %}
|
| 3 |
+
{%- for json_key in json_dict if json_key not in handled_keys %}
|
| 4 |
+
{%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
|
| 5 |
+
{{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
|
| 6 |
+
{%- else %}
|
| 7 |
+
{{-'\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
|
| 8 |
+
{%- endif %}
|
| 9 |
+
{%- endfor %}
|
| 10 |
+
{%- endif %}
|
| 11 |
+
{% endmacro %}
|
| 12 |
+
|
| 13 |
+
{%- if messages[0]["role"] == "system" %}
|
| 14 |
+
{%- set system_message = messages[0]["content"] %}
|
| 15 |
+
{%- set loop_messages = messages[1:] %}
|
| 16 |
+
{%- else %}
|
| 17 |
+
{%- set loop_messages = messages %}
|
| 18 |
+
{%- endif %}
|
| 19 |
+
|
| 20 |
+
{%- if not tools is defined %}
|
| 21 |
+
{%- set tools = [] %}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
|
| 24 |
+
{%- if system_message is defined %}
|
| 25 |
+
{{- "<|im_start|>system\n" + system_message }}
|
| 26 |
+
{%- else %}
|
| 27 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 28 |
+
{{- "<|im_start|>system\nYou are Qwen, a helpful AI assistant that can interact with a computer to solve tasks." }}
|
| 29 |
+
{%- endif %}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 32 |
+
{{- "\n\n# Tools\n\nYou have access to the following functions:\n\n" }}
|
| 33 |
+
{{- "<tools>" }}
|
| 34 |
+
{%- for tool in tools %}
|
| 35 |
+
{%- if tool.function is defined %}
|
| 36 |
+
{%- set tool = tool.function %}
|
| 37 |
+
{%- endif %}
|
| 38 |
+
{{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
|
| 39 |
+
{%- if tool.description is defined %}
|
| 40 |
+
{{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
|
| 41 |
+
{%- endif %}
|
| 42 |
+
{{- '\n<parameters>' }}
|
| 43 |
+
{%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
|
| 44 |
+
{%- for param_name, param_fields in tool.parameters.properties|items %}
|
| 45 |
+
{{- '\n<parameter>' }}
|
| 46 |
+
{{- '\n<name>' ~ param_name ~ '</name>' }}
|
| 47 |
+
{%- if param_fields.type is defined %}
|
| 48 |
+
{{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- if param_fields.description is defined %}
|
| 51 |
+
{{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
|
| 52 |
+
{%- endif %}
|
| 53 |
+
{%- set handled_keys = ['name', 'type', 'description'] %}
|
| 54 |
+
{{- render_extra_keys(param_fields, handled_keys) }}
|
| 55 |
+
{{- '\n</parameter>' }}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{% set handled_keys = ['type', 'properties'] %}
|
| 59 |
+
{{- render_extra_keys(tool.parameters, handled_keys) }}
|
| 60 |
+
{{- '\n</parameters>' }}
|
| 61 |
+
{%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
|
| 62 |
+
{{- render_extra_keys(tool, handled_keys) }}
|
| 63 |
+
{{- '\n</function>' }}
|
| 64 |
+
{%- endfor %}
|
| 65 |
+
{{- "\n</tools>" }}
|
| 66 |
+
{{- '\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>' }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{%- if system_message is defined %}
|
| 69 |
+
{{- '<|im_end|>\n' }}
|
| 70 |
+
{%- else %}
|
| 71 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 72 |
+
{{- '<|im_end|>\n' }}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- for message in loop_messages %}
|
| 76 |
+
{%- if message.role == "assistant" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
|
| 77 |
+
{{- '<|im_start|>' + message.role }}
|
| 78 |
+
{%- if message.content is defined and message.content is string and message.content | trim | length > 0 %}
|
| 79 |
+
{{- '\n' + message.content | trim + '\n' }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for tool_call in message.tool_calls %}
|
| 82 |
+
{%- if tool_call.function is defined %}
|
| 83 |
+
{%- set tool_call = tool_call.function %}
|
| 84 |
+
{%- endif %}
|
| 85 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 86 |
+
{%- if tool_call.arguments is defined %}
|
| 87 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 88 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 89 |
+
{%- 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 %}
|
| 90 |
+
{{- args_value }}
|
| 91 |
+
{{- '\n</parameter>\n' }}
|
| 92 |
+
{%- endfor %}
|
| 93 |
+
{%- endif %}
|
| 94 |
+
{{- '</function>\n</tool_call>' }}
|
| 95 |
+
{%- endfor %}
|
| 96 |
+
{{- '<|im_end|>\n' }}
|
| 97 |
+
{%- elif message.role == "user" or message.role == "system" or message.role == "assistant" %}
|
| 98 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 99 |
+
{%- elif message.role == "tool" %}
|
| 100 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 101 |
+
{{- '<|im_start|>user\n' }}
|
| 102 |
+
{%- endif %}
|
| 103 |
+
{{- '<tool_response>\n' }}
|
| 104 |
+
{{- message.content }}
|
| 105 |
+
{{- '\n</tool_response>\n' }}
|
| 106 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 107 |
+
{{- '<|im_end|>\n' }}
|
| 108 |
+
{%- elif loop.last %}
|
| 109 |
+
{{- '<|im_end|>\n' }}
|
| 110 |
+
{%- endif %}
|
| 111 |
+
{%- else %}
|
| 112 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
|
| 113 |
+
{%- endif %}
|
| 114 |
+
{%- endfor %}
|
| 115 |
+
{%- if add_generation_prompt %}
|
| 116 |
+
{{- '<|im_start|>assistant\n' }}
|
| 117 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"decoder_sparse_step": 1,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 151645,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 2048,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 5472,
|
| 15 |
+
"max_position_embeddings": 262144,
|
| 16 |
+
"max_window_layers": 28,
|
| 17 |
+
"mlp_only_layers": [],
|
| 18 |
+
"model_type": "qwen3_moe",
|
| 19 |
+
"moe_intermediate_size": 768,
|
| 20 |
+
"norm_topk_prob": true,
|
| 21 |
+
"num_attention_heads": 32,
|
| 22 |
+
"num_experts": 128,
|
| 23 |
+
"num_experts_per_tok": 8,
|
| 24 |
+
"num_hidden_layers": 48,
|
| 25 |
+
"num_key_value_heads": 4,
|
| 26 |
+
"output_router_logits": false,
|
| 27 |
+
"pad_token_id": 151643,
|
| 28 |
+
"qkv_bias": false,
|
| 29 |
+
"rms_norm_eps": 1e-06,
|
| 30 |
+
"rope_scaling": null,
|
| 31 |
+
"rope_theta": 10000000,
|
| 32 |
+
"router_aux_loss_coef": 0.0,
|
| 33 |
+
"shared_expert_intermediate_size": 0,
|
| 34 |
+
"sliding_window": null,
|
| 35 |
+
"tie_word_embeddings": false,
|
| 36 |
+
"transformers_version": "4.57.1",
|
| 37 |
+
"use_cache": true,
|
| 38 |
+
"use_qk_norm": true,
|
| 39 |
+
"use_sliding_window": false,
|
| 40 |
+
"vocab_size": 151936
|
| 41 |
+
}
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a9168c5fd456388973968d44b949f9c65c5bac855dd58d9de16adc234e401d7
|
| 3 |
+
size 4997189144
|
model-00002-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f1c6a3ecdf880ffe7cca3c00a123da11e62d80a691e31795fc35b47c5934959
|
| 3 |
+
size 4997741584
|
model-00003-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab0ae363bc6bea7aaf364b4f9945b7b02db7b4fad441d9470d6f81ceca0b6acd
|
| 3 |
+
size 4997742176
|
model-00004-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e074f453f83a4334a41ad35277044b1662fc15049e893d5b283e149af2e7707f
|
| 3 |
+
size 4997743160
|
model-00005-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e7c00622e781299d67a25a1fbeea08042d98a84338ea0b1281b8d942edaf7cd
|
| 3 |
+
size 4997743160
|
model-00006-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:735e11fa607cb7e48757ed1404179d9084749ffd7b5532035eb3de55c2994af3
|
| 3 |
+
size 4997743160
|
model-00007-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58181abe94502c6a1b6ba07fe92e517565734022ac3dff1a0dea119ac27948f1
|
| 3 |
+
size 4997743160
|
model-00008-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d89b9ccfcbe074da0224dc5f9de917a3fb2b173a1f352bdc266c5fbc1c41f20c
|
| 3 |
+
size 4997743160
|
model-00009-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:095c74e9a1363fa0cf588ba78f95f22fe89658bf39bccb758f3f6d00d0e0ed5f
|
| 3 |
+
size 4997743160
|
model-00010-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fd5ed374b6fbdb150e04cd1ef05e4a83c0d1050c3f219e88f1e9f14f161ead8
|
| 3 |
+
size 4997743160
|
model-00011-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfb780e23d795f4902b842c369475a6062a25a5f639a7e0a4ab2ada4c5e435a5
|
| 3 |
+
size 4997743160
|
model-00012-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a052ad421b72e95a6251da679f422c6900782ca3a6c516241163dcae5c5b99a
|
| 3 |
+
size 4997743160
|
model-00013-of-00013.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:185dfb91c961791ed92762a3c294cb2d84e36f352501356b0b0a0d9a203135f3
|
| 3 |
+
size 1094216064
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|im_end|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
+
}
|
| 213 |
+
},
|
| 214 |
+
"additional_special_tokens": [
|
| 215 |
+
"<|im_start|>",
|
| 216 |
+
"<|im_end|>",
|
| 217 |
+
"<|object_ref_start|>",
|
| 218 |
+
"<|object_ref_end|>",
|
| 219 |
+
"<|box_start|>",
|
| 220 |
+
"<|box_end|>",
|
| 221 |
+
"<|quad_start|>",
|
| 222 |
+
"<|quad_end|>",
|
| 223 |
+
"<|vision_start|>",
|
| 224 |
+
"<|vision_end|>",
|
| 225 |
+
"<|vision_pad|>",
|
| 226 |
+
"<|image_pad|>",
|
| 227 |
+
"<|video_pad|>"
|
| 228 |
+
],
|
| 229 |
+
"bos_token": null,
|
| 230 |
+
"clean_up_tokenization_spaces": false,
|
| 231 |
+
"eos_token": "<|im_end|>",
|
| 232 |
+
"errors": "replace",
|
| 233 |
+
"extra_special_tokens": {},
|
| 234 |
+
"model_max_length": 1048576,
|
| 235 |
+
"pad_token": "<|endoftext|>",
|
| 236 |
+
"split_special_tokens": false,
|
| 237 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 238 |
+
"unk_token": null
|
| 239 |
+
}
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|