recipe-v3 surgery qwen3_5_0_8b
Browse files- .gitattributes +1 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/config.json +112 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/merges.txt +0 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/model.safetensors +3 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/preprocessor_config.json +21 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/rtpurbo_probe.json +216 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/tokenizer.json +3 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/tokenizer_config.json +305 -0
- qwen3_5_0_8b_stage2_v3/vllm_compat/vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -40,3 +40,4 @@ stage1_v2_qwen3_5_2b/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
| 40 |
stage2_posttuned_2b/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
stage1_v2_qwen3_5_9b/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 42 |
stage2_recipe_AB_lowlr_topk64/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 40 |
stage2_posttuned_2b/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
stage1_v2_qwen3_5_9b/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 42 |
stage2_recipe_AB_lowlr_topk64/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
qwen3_5_0_8b_stage2_v3/vllm_compat/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
qwen3_5_0_8b_stage2_v3/vllm_compat/config.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5RTPurboForConditionalGeneration"
|
| 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": 1024,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 3584,
|
| 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 |
+
],
|
| 45 |
+
"linear_conv_kernel_dim": 4,
|
| 46 |
+
"linear_key_head_dim": 128,
|
| 47 |
+
"linear_num_key_heads": 16,
|
| 48 |
+
"linear_num_value_heads": 16,
|
| 49 |
+
"linear_value_head_dim": 128,
|
| 50 |
+
"max_position_embeddings": 262144,
|
| 51 |
+
"mlp_only_layers": [],
|
| 52 |
+
"model_type": "qwen3_5_text",
|
| 53 |
+
"mtp_num_hidden_layers": 1,
|
| 54 |
+
"mtp_use_dedicated_embeddings": false,
|
| 55 |
+
"num_attention_heads": 8,
|
| 56 |
+
"num_hidden_layers": 24,
|
| 57 |
+
"num_key_value_heads": 2,
|
| 58 |
+
"rms_norm_eps": 1e-06,
|
| 59 |
+
"tie_word_embeddings": true,
|
| 60 |
+
"use_cache": true,
|
| 61 |
+
"vocab_size": 248320,
|
| 62 |
+
"mamba_ssm_dtype": "float32",
|
| 63 |
+
"rope_parameters": {
|
| 64 |
+
"mrope_interleaved": true,
|
| 65 |
+
"mrope_section": [
|
| 66 |
+
11,
|
| 67 |
+
11,
|
| 68 |
+
10
|
| 69 |
+
],
|
| 70 |
+
"rope_type": "default",
|
| 71 |
+
"rope_theta": 10000000,
|
| 72 |
+
"partial_rotary_factor": 0.25
|
| 73 |
+
},
|
| 74 |
+
"rtpurbo": {
|
| 75 |
+
"probe": "rtpurbo_probe.json",
|
| 76 |
+
"d_idx": 16,
|
| 77 |
+
"top_p": 0.9,
|
| 78 |
+
"sliding_window": 8192,
|
| 79 |
+
"sink_tokens": 4
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"tie_word_embeddings": true,
|
| 83 |
+
"transformers_version": "4.57.0.dev0",
|
| 84 |
+
"video_token_id": 248057,
|
| 85 |
+
"vision_config": {
|
| 86 |
+
"deepstack_visual_indexes": [],
|
| 87 |
+
"depth": 12,
|
| 88 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 89 |
+
"hidden_size": 768,
|
| 90 |
+
"in_channels": 3,
|
| 91 |
+
"initializer_range": 0.02,
|
| 92 |
+
"intermediate_size": 3072,
|
| 93 |
+
"model_type": "qwen3_5",
|
| 94 |
+
"num_heads": 12,
|
| 95 |
+
"num_position_embeddings": 2304,
|
| 96 |
+
"out_hidden_size": 1024,
|
| 97 |
+
"patch_size": 16,
|
| 98 |
+
"spatial_merge_size": 2,
|
| 99 |
+
"temporal_patch_size": 2
|
| 100 |
+
},
|
| 101 |
+
"vision_end_token_id": 248054,
|
| 102 |
+
"vision_start_token_id": 248053,
|
| 103 |
+
"rtpurbo": {
|
| 104 |
+
"probe": "rtpurbo_probe.json",
|
| 105 |
+
"d_idx": 16,
|
| 106 |
+
"top_p": 0.9,
|
| 107 |
+
"sliding_window": 8192,
|
| 108 |
+
"sink_tokens": 4
|
| 109 |
+
},
|
| 110 |
+
"image_token_index": 248056,
|
| 111 |
+
"video_token_index": 248057
|
| 112 |
+
}
|
qwen3_5_0_8b_stage2_v3/vllm_compat/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
qwen3_5_0_8b_stage2_v3/vllm_compat/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b8eb0d3e1be2e8aba628e496fa5b7f641d6fe2a585ace6bd9ed8b4952f4bc37
|
| 3 |
+
size 2214706936
|
qwen3_5_0_8b_stage2_v3/vllm_compat/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_0_8b_stage2_v3/vllm_compat/rtpurbo_probe.json
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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_ratio": 0.15,
|
| 5 |
+
"seq_len": 8192,
|
| 6 |
+
"metric": "paper-eq3-dual-needle",
|
| 7 |
+
"scores_per_layer": {
|
| 8 |
+
"3": [
|
| 9 |
+
0.043960558250546455,
|
| 10 |
+
0.06019238196313381,
|
| 11 |
+
0.05945444852113724,
|
| 12 |
+
0.038522521033883095,
|
| 13 |
+
0.13700569234788418,
|
| 14 |
+
0.2907649129629135,
|
| 15 |
+
0.06711127422749996,
|
| 16 |
+
0.7123810350894928
|
| 17 |
+
],
|
| 18 |
+
"7": [
|
| 19 |
+
0.25685806944966316,
|
| 20 |
+
0.6186904758214951,
|
| 21 |
+
0.6990050226449966,
|
| 22 |
+
0.43191761523485184,
|
| 23 |
+
0.3340361565351486,
|
| 24 |
+
0.14855612814426422,
|
| 25 |
+
0.45559217035770416,
|
| 26 |
+
0.8960697948932648
|
| 27 |
+
],
|
| 28 |
+
"11": [
|
| 29 |
+
0.7097475081682205,
|
| 30 |
+
0.9297644346952438,
|
| 31 |
+
0.7679087370634079,
|
| 32 |
+
0.7514904737472534,
|
| 33 |
+
0.7363232672214508,
|
| 34 |
+
0.6188521236181259,
|
| 35 |
+
0.5390062108635902,
|
| 36 |
+
0.6664538383483887
|
| 37 |
+
],
|
| 38 |
+
"15": [
|
| 39 |
+
0.803602010011673,
|
| 40 |
+
0.7498220503330231,
|
| 41 |
+
0.8691308349370956,
|
| 42 |
+
0.7138915210962296,
|
| 43 |
+
0.7989241629838943,
|
| 44 |
+
0.9293279498815536,
|
| 45 |
+
0.8808692842721939,
|
| 46 |
+
0.967314675450325
|
| 47 |
+
],
|
| 48 |
+
"19": [
|
| 49 |
+
0.7650252133607864,
|
| 50 |
+
0.7258462756872177,
|
| 51 |
+
0.7558876872062683,
|
| 52 |
+
0.7533579021692276,
|
| 53 |
+
0.23464467376470566,
|
| 54 |
+
0.8185513019561768,
|
| 55 |
+
0.7895273864269257,
|
| 56 |
+
0.8132371604442596
|
| 57 |
+
],
|
| 58 |
+
"23": [
|
| 59 |
+
0.7483757436275482,
|
| 60 |
+
0.6677568256855011,
|
| 61 |
+
0.04398694448173046,
|
| 62 |
+
0.6030583083629608,
|
| 63 |
+
0.5555272251367569,
|
| 64 |
+
0.7038092166185379,
|
| 65 |
+
0.18131048604846,
|
| 66 |
+
0.6224684566259384
|
| 67 |
+
]
|
| 68 |
+
},
|
| 69 |
+
"layers": {
|
| 70 |
+
"3": {
|
| 71 |
+
"retrieval": [
|
| 72 |
+
7
|
| 73 |
+
],
|
| 74 |
+
"local": [
|
| 75 |
+
0,
|
| 76 |
+
1,
|
| 77 |
+
2,
|
| 78 |
+
3,
|
| 79 |
+
4,
|
| 80 |
+
5,
|
| 81 |
+
6
|
| 82 |
+
],
|
| 83 |
+
"scores": [
|
| 84 |
+
0.043961,
|
| 85 |
+
0.060192,
|
| 86 |
+
0.059454,
|
| 87 |
+
0.038523,
|
| 88 |
+
0.137006,
|
| 89 |
+
0.290765,
|
| 90 |
+
0.067111,
|
| 91 |
+
0.712381
|
| 92 |
+
]
|
| 93 |
+
},
|
| 94 |
+
"7": {
|
| 95 |
+
"retrieval": [
|
| 96 |
+
7
|
| 97 |
+
],
|
| 98 |
+
"local": [
|
| 99 |
+
0,
|
| 100 |
+
1,
|
| 101 |
+
2,
|
| 102 |
+
3,
|
| 103 |
+
4,
|
| 104 |
+
5,
|
| 105 |
+
6
|
| 106 |
+
],
|
| 107 |
+
"scores": [
|
| 108 |
+
0.256858,
|
| 109 |
+
0.61869,
|
| 110 |
+
0.699005,
|
| 111 |
+
0.431918,
|
| 112 |
+
0.334036,
|
| 113 |
+
0.148556,
|
| 114 |
+
0.455592,
|
| 115 |
+
0.89607
|
| 116 |
+
]
|
| 117 |
+
},
|
| 118 |
+
"11": {
|
| 119 |
+
"retrieval": [
|
| 120 |
+
1
|
| 121 |
+
],
|
| 122 |
+
"local": [
|
| 123 |
+
0,
|
| 124 |
+
2,
|
| 125 |
+
3,
|
| 126 |
+
4,
|
| 127 |
+
5,
|
| 128 |
+
6,
|
| 129 |
+
7
|
| 130 |
+
],
|
| 131 |
+
"scores": [
|
| 132 |
+
0.709748,
|
| 133 |
+
0.929764,
|
| 134 |
+
0.767909,
|
| 135 |
+
0.75149,
|
| 136 |
+
0.736323,
|
| 137 |
+
0.618852,
|
| 138 |
+
0.539006,
|
| 139 |
+
0.666454
|
| 140 |
+
]
|
| 141 |
+
},
|
| 142 |
+
"15": {
|
| 143 |
+
"retrieval": [
|
| 144 |
+
5,
|
| 145 |
+
7
|
| 146 |
+
],
|
| 147 |
+
"local": [
|
| 148 |
+
0,
|
| 149 |
+
1,
|
| 150 |
+
2,
|
| 151 |
+
3,
|
| 152 |
+
4,
|
| 153 |
+
6
|
| 154 |
+
],
|
| 155 |
+
"scores": [
|
| 156 |
+
0.803602,
|
| 157 |
+
0.749822,
|
| 158 |
+
0.869131,
|
| 159 |
+
0.713892,
|
| 160 |
+
0.798924,
|
| 161 |
+
0.929328,
|
| 162 |
+
0.880869,
|
| 163 |
+
0.967315
|
| 164 |
+
]
|
| 165 |
+
},
|
| 166 |
+
"19": {
|
| 167 |
+
"retrieval": [
|
| 168 |
+
5
|
| 169 |
+
],
|
| 170 |
+
"local": [
|
| 171 |
+
0,
|
| 172 |
+
1,
|
| 173 |
+
2,
|
| 174 |
+
3,
|
| 175 |
+
4,
|
| 176 |
+
6,
|
| 177 |
+
7
|
| 178 |
+
],
|
| 179 |
+
"scores": [
|
| 180 |
+
0.765025,
|
| 181 |
+
0.725846,
|
| 182 |
+
0.755888,
|
| 183 |
+
0.753358,
|
| 184 |
+
0.234645,
|
| 185 |
+
0.818551,
|
| 186 |
+
0.789527,
|
| 187 |
+
0.813237
|
| 188 |
+
]
|
| 189 |
+
},
|
| 190 |
+
"23": {
|
| 191 |
+
"retrieval": [
|
| 192 |
+
0
|
| 193 |
+
],
|
| 194 |
+
"local": [
|
| 195 |
+
1,
|
| 196 |
+
2,
|
| 197 |
+
3,
|
| 198 |
+
4,
|
| 199 |
+
5,
|
| 200 |
+
6,
|
| 201 |
+
7
|
| 202 |
+
],
|
| 203 |
+
"scores": [
|
| 204 |
+
0.748376,
|
| 205 |
+
0.667757,
|
| 206 |
+
0.043987,
|
| 207 |
+
0.603058,
|
| 208 |
+
0.555527,
|
| 209 |
+
0.703809,
|
| 210 |
+
0.18131,
|
| 211 |
+
0.622468
|
| 212 |
+
]
|
| 213 |
+
}
|
| 214 |
+
},
|
| 215 |
+
"retrieval_fraction": 0.14583333333333334
|
| 216 |
+
}
|
qwen3_5_0_8b_stage2_v3/vllm_compat/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42
|
| 3 |
+
size 12807982
|
qwen3_5_0_8b_stage2_v3/vllm_compat/tokenizer_config.json
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 true %}\n {{- '<think>\\n' }}\n {%- else %}\n {{- '<think>\\n\\n</think>\\n\\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_0_8b_stage2_v3/vllm_compat/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|