Upload folder using huggingface_hub
Browse files- chat_template.jinja +4 -3
- config.json +75 -2
- merges.txt +1 -1
- tokenizer.json +2 -2
- tokenizer_config.json +248 -243
- vocab.json +0 -0
chat_template.jinja
CHANGED
|
@@ -117,13 +117,14 @@
|
|
| 117 |
{%- if tool_call.function %}
|
| 118 |
{%- set tool_call = tool_call.function %}
|
| 119 |
{%- endif %}
|
| 120 |
-
{{- '<invoke name="' + tool_call.name + '"
|
|
|
|
| 121 |
{% set _args = tool_call.arguments %}
|
| 122 |
-
{%- for k, v in _args
|
| 123 |
{{- '<parameter name="' + k + '">' }}
|
| 124 |
{{- v | tojson | string if v is not string else v }}
|
| 125 |
{{- '</parameter>' }}
|
| 126 |
-
{% endfor %}
|
| 127 |
{{- '</invoke>' ~ '\n' }}
|
| 128 |
{%- endfor -%}
|
| 129 |
|
|
|
|
| 117 |
{%- if tool_call.function %}
|
| 118 |
{%- set tool_call = tool_call.function %}
|
| 119 |
{%- endif %}
|
| 120 |
+
{{- '<invoke name="' + tool_call.name + '">\n' }}
|
| 121 |
+
{%- if tool_call.arguments is defined and tool_call.arguments is mapping -%}
|
| 122 |
{% set _args = tool_call.arguments %}
|
| 123 |
+
{%- for k, v in _args|items %}
|
| 124 |
{{- '<parameter name="' + k + '">' }}
|
| 125 |
{{- v | tojson | string if v is not string else v }}
|
| 126 |
{{- '</parameter>' }}
|
| 127 |
+
{% endfor %}{%- endif -%}
|
| 128 |
{{- '</invoke>' ~ '\n' }}
|
| 129 |
{%- endfor -%}
|
| 130 |
|
config.json
CHANGED
|
@@ -67,17 +67,88 @@
|
|
| 67 |
1,
|
| 68 |
1
|
| 69 |
],
|
|
|
|
| 70 |
"bos_token_id": null,
|
| 71 |
"eos_token_id": null,
|
|
|
|
|
|
|
| 72 |
"head_dim": 128,
|
| 73 |
"hidden_act": "silu",
|
| 74 |
"hidden_size": 3072,
|
| 75 |
"initializer_range": 0.02,
|
| 76 |
"intermediate_size": 1536,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
"layernorm_full_attention_beta": 1.0,
|
| 78 |
"layernorm_linear_attention_beta": 1.0,
|
| 79 |
"layernorm_mlp_beta": 1.0,
|
|
|
|
|
|
|
| 80 |
"max_position_embeddings": 196608,
|
|
|
|
|
|
|
| 81 |
"mlp_intermediate_size": 8192,
|
| 82 |
"model_type": "minimax",
|
| 83 |
"mtp_transformer_layers": 1,
|
|
@@ -88,6 +159,7 @@
|
|
| 88 |
"num_local_experts": 256,
|
| 89 |
"num_mtp_modules": 3,
|
| 90 |
"output_router_logits": false,
|
|
|
|
| 91 |
"qk_norm_type": "per_layer",
|
| 92 |
"quantization_config": {
|
| 93 |
"activation_scheme": "dynamic",
|
|
@@ -108,10 +180,11 @@
|
|
| 108 |
"shared_moe_mode": "sigmoid",
|
| 109 |
"sliding_window": null,
|
| 110 |
"tie_word_embeddings": false,
|
| 111 |
-
"transformers_version": "4.
|
|
|
|
| 112 |
"use_cache": true,
|
| 113 |
"use_mtp": true,
|
| 114 |
"use_qk_norm": true,
|
| 115 |
"use_routing_bias": true,
|
| 116 |
"vocab_size": 200064
|
| 117 |
-
}
|
|
|
|
| 67 |
1,
|
| 68 |
1
|
| 69 |
],
|
| 70 |
+
"block_size": 256,
|
| 71 |
"bos_token_id": null,
|
| 72 |
"eos_token_id": null,
|
| 73 |
+
"full_attn_alpha_factor": 1,
|
| 74 |
+
"full_attn_beta_factor": 1,
|
| 75 |
"head_dim": 128,
|
| 76 |
"hidden_act": "silu",
|
| 77 |
"hidden_size": 3072,
|
| 78 |
"initializer_range": 0.02,
|
| 79 |
"intermediate_size": 1536,
|
| 80 |
+
"layer_types": [
|
| 81 |
+
"full_attention",
|
| 82 |
+
"linear_attention",
|
| 83 |
+
"full_attention",
|
| 84 |
+
"linear_attention",
|
| 85 |
+
"full_attention",
|
| 86 |
+
"linear_attention",
|
| 87 |
+
"full_attention",
|
| 88 |
+
"linear_attention",
|
| 89 |
+
"full_attention",
|
| 90 |
+
"linear_attention",
|
| 91 |
+
"full_attention",
|
| 92 |
+
"linear_attention",
|
| 93 |
+
"full_attention",
|
| 94 |
+
"linear_attention",
|
| 95 |
+
"full_attention",
|
| 96 |
+
"linear_attention",
|
| 97 |
+
"full_attention",
|
| 98 |
+
"linear_attention",
|
| 99 |
+
"full_attention",
|
| 100 |
+
"linear_attention",
|
| 101 |
+
"full_attention",
|
| 102 |
+
"linear_attention",
|
| 103 |
+
"full_attention",
|
| 104 |
+
"linear_attention",
|
| 105 |
+
"full_attention",
|
| 106 |
+
"linear_attention",
|
| 107 |
+
"full_attention",
|
| 108 |
+
"linear_attention",
|
| 109 |
+
"full_attention",
|
| 110 |
+
"linear_attention",
|
| 111 |
+
"full_attention",
|
| 112 |
+
"linear_attention",
|
| 113 |
+
"full_attention",
|
| 114 |
+
"linear_attention",
|
| 115 |
+
"full_attention",
|
| 116 |
+
"linear_attention",
|
| 117 |
+
"full_attention",
|
| 118 |
+
"linear_attention",
|
| 119 |
+
"full_attention",
|
| 120 |
+
"linear_attention",
|
| 121 |
+
"full_attention",
|
| 122 |
+
"linear_attention",
|
| 123 |
+
"full_attention",
|
| 124 |
+
"linear_attention",
|
| 125 |
+
"full_attention",
|
| 126 |
+
"linear_attention",
|
| 127 |
+
"full_attention",
|
| 128 |
+
"linear_attention",
|
| 129 |
+
"full_attention",
|
| 130 |
+
"linear_attention",
|
| 131 |
+
"full_attention",
|
| 132 |
+
"linear_attention",
|
| 133 |
+
"full_attention",
|
| 134 |
+
"linear_attention",
|
| 135 |
+
"full_attention",
|
| 136 |
+
"linear_attention",
|
| 137 |
+
"full_attention",
|
| 138 |
+
"linear_attention",
|
| 139 |
+
"full_attention",
|
| 140 |
+
"linear_attention",
|
| 141 |
+
"full_attention",
|
| 142 |
+
"linear_attention"
|
| 143 |
+
],
|
| 144 |
"layernorm_full_attention_beta": 1.0,
|
| 145 |
"layernorm_linear_attention_beta": 1.0,
|
| 146 |
"layernorm_mlp_beta": 1.0,
|
| 147 |
+
"linear_attn_alpha_factor": 1,
|
| 148 |
+
"linear_attn_beta_factor": 1,
|
| 149 |
"max_position_embeddings": 196608,
|
| 150 |
+
"mlp_alpha_factor": 1,
|
| 151 |
+
"mlp_beta_factor": 1,
|
| 152 |
"mlp_intermediate_size": 8192,
|
| 153 |
"model_type": "minimax",
|
| 154 |
"mtp_transformer_layers": 1,
|
|
|
|
| 159 |
"num_local_experts": 256,
|
| 160 |
"num_mtp_modules": 3,
|
| 161 |
"output_router_logits": false,
|
| 162 |
+
"pad_token_id": 200004,
|
| 163 |
"qk_norm_type": "per_layer",
|
| 164 |
"quantization_config": {
|
| 165 |
"activation_scheme": "dynamic",
|
|
|
|
| 180 |
"shared_moe_mode": "sigmoid",
|
| 181 |
"sliding_window": null,
|
| 182 |
"tie_word_embeddings": false,
|
| 183 |
+
"transformers_version": "4.57.1",
|
| 184 |
+
"unsloth_fixed": true,
|
| 185 |
"use_cache": true,
|
| 186 |
"use_mtp": true,
|
| 187 |
"use_qk_norm": true,
|
| 188 |
"use_routing_bias": true,
|
| 189 |
"vocab_size": 200064
|
| 190 |
+
}
|
merges.txt
CHANGED
|
@@ -199742,4 +199742,4 @@ ch ile
|
|
| 199742 |
ع اÙĨ
|
| 199743 |
Ġdel ving
|
| 199744 |
Ġت ÙĥÙĪÙĬÙĨ
|
| 199745 |
-
.ch romium
|
|
|
|
| 199742 |
ع اÙĨ
|
| 199743 |
Ġdel ving
|
| 199744 |
Ġت ÙĥÙĪÙĬÙĨ
|
| 199745 |
+
.ch romium
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7b90ed7f55d905175bc26771d6d7d33b40b46742f073675bc816fedaf482ea1
|
| 3 |
+
size 15522763
|
tokenizer_config.json
CHANGED
|
@@ -1,495 +1,500 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"added_tokens_decoder": {
|
| 3 |
-
|
| 4 |
"content": "]!p~[",
|
| 5 |
"lstrip": false,
|
| 6 |
"normalized": false,
|
| 7 |
"rstrip": false,
|
| 8 |
"single_word": false,
|
| 9 |
"special": true
|
| 10 |
-
|
| 11 |
-
|
| 12 |
"content": "<fim_prefix>",
|
| 13 |
"lstrip": false,
|
| 14 |
"normalized": false,
|
| 15 |
"rstrip": false,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
| 18 |
-
|
| 19 |
-
|
| 20 |
"content": "<fim_middle>",
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
| 23 |
"rstrip": false,
|
| 24 |
"single_word": false,
|
| 25 |
"special": true
|
| 26 |
-
|
| 27 |
-
|
| 28 |
"content": "<fim_suffix>",
|
| 29 |
"lstrip": false,
|
| 30 |
"normalized": false,
|
| 31 |
"rstrip": false,
|
| 32 |
"single_word": false,
|
| 33 |
"special": true
|
| 34 |
-
|
| 35 |
-
|
| 36 |
"content": "<fim_pad>",
|
| 37 |
"lstrip": false,
|
| 38 |
"normalized": false,
|
| 39 |
"rstrip": false,
|
| 40 |
"single_word": false,
|
| 41 |
"special": true
|
| 42 |
-
|
| 43 |
-
|
| 44 |
"content": "<reponame>",
|
| 45 |
"lstrip": false,
|
| 46 |
"normalized": false,
|
| 47 |
"rstrip": false,
|
| 48 |
"single_word": false,
|
| 49 |
"special": true
|
| 50 |
-
|
| 51 |
-
|
| 52 |
"content": "<filename>",
|
| 53 |
"lstrip": false,
|
| 54 |
"normalized": false,
|
| 55 |
"rstrip": false,
|
| 56 |
"single_word": false,
|
| 57 |
"special": true
|
| 58 |
-
|
| 59 |
-
|
| 60 |
"content": "<gh_stars>",
|
| 61 |
"lstrip": false,
|
| 62 |
"normalized": false,
|
| 63 |
"rstrip": false,
|
| 64 |
"single_word": false,
|
| 65 |
"special": true
|
| 66 |
-
|
| 67 |
-
|
| 68 |
"content": "<issue_start>",
|
| 69 |
"lstrip": false,
|
| 70 |
"normalized": false,
|
| 71 |
"rstrip": false,
|
| 72 |
"single_word": false,
|
| 73 |
"special": true
|
| 74 |
-
|
| 75 |
-
|
| 76 |
"content": "<issue_comment>",
|
| 77 |
"lstrip": false,
|
| 78 |
"normalized": false,
|
| 79 |
"rstrip": false,
|
| 80 |
"single_word": false,
|
| 81 |
"special": true
|
| 82 |
-
|
| 83 |
-
|
| 84 |
"content": "<issue_closed>",
|
| 85 |
"lstrip": false,
|
| 86 |
"normalized": false,
|
| 87 |
"rstrip": false,
|
| 88 |
"single_word": false,
|
| 89 |
"special": true
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
"content": "<jupyter_text>",
|
| 101 |
"lstrip": false,
|
| 102 |
"normalized": false,
|
| 103 |
"rstrip": false,
|
| 104 |
"single_word": false,
|
| 105 |
"special": true
|
| 106 |
-
|
| 107 |
-
|
| 108 |
"content": "<jupyter_code>",
|
| 109 |
"lstrip": false,
|
| 110 |
"normalized": false,
|
| 111 |
"rstrip": false,
|
| 112 |
"single_word": false,
|
| 113 |
"special": true
|
| 114 |
-
|
| 115 |
-
|
| 116 |
"content": "<jupyter_output>",
|
| 117 |
"lstrip": false,
|
| 118 |
"normalized": false,
|
| 119 |
"rstrip": false,
|
| 120 |
"single_word": false,
|
| 121 |
"special": true
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
"content": "<commit_before>",
|
| 133 |
"lstrip": false,
|
| 134 |
"normalized": false,
|
| 135 |
"rstrip": false,
|
| 136 |
"single_word": false,
|
| 137 |
"special": true
|
| 138 |
-
|
| 139 |
-
|
| 140 |
"content": "<commit_msg>",
|
| 141 |
"lstrip": false,
|
| 142 |
"normalized": false,
|
| 143 |
"rstrip": false,
|
| 144 |
"single_word": false,
|
| 145 |
"special": true
|
| 146 |
-
|
| 147 |
-
|
| 148 |
"content": "<commit_after>",
|
| 149 |
"lstrip": false,
|
| 150 |
"normalized": false,
|
| 151 |
"rstrip": false,
|
| 152 |
"single_word": false,
|
| 153 |
"special": true
|
| 154 |
-
|
| 155 |
-
|
| 156 |
"content": "]~b]",
|
| 157 |
"lstrip": false,
|
| 158 |
"normalized": false,
|
| 159 |
"rstrip": false,
|
| 160 |
"single_word": false,
|
| 161 |
"special": true
|
| 162 |
-
|
| 163 |
-
|
| 164 |
"content": "[e~[",
|
| 165 |
"lstrip": false,
|
| 166 |
"normalized": false,
|
| 167 |
"rstrip": false,
|
| 168 |
"single_word": false,
|
| 169 |
"special": true
|
| 170 |
-
|
| 171 |
-
|
| 172 |
"content": "]!d~[",
|
| 173 |
"lstrip": false,
|
| 174 |
"normalized": false,
|
| 175 |
"rstrip": false,
|
| 176 |
"single_word": false,
|
| 177 |
"special": true
|
| 178 |
-
|
| 179 |
-
|
| 180 |
"content": "<function_call>",
|
| 181 |
"lstrip": false,
|
| 182 |
"normalized": false,
|
| 183 |
"rstrip": false,
|
| 184 |
"single_word": false,
|
| 185 |
"special": true
|
| 186 |
-
|
| 187 |
-
|
| 188 |
"content": "<code_interpreter>",
|
| 189 |
"lstrip": false,
|
| 190 |
"normalized": false,
|
| 191 |
"rstrip": false,
|
| 192 |
"single_word": false,
|
| 193 |
"special": true
|
| 194 |
-
|
| 195 |
-
|
| 196 |
"content": "]<]speech[>[",
|
| 197 |
"lstrip": false,
|
| 198 |
"normalized": false,
|
| 199 |
"rstrip": false,
|
| 200 |
"single_word": false,
|
| 201 |
"special": true
|
| 202 |
-
|
| 203 |
-
|
| 204 |
"content": "]<]image[>[",
|
| 205 |
"lstrip": false,
|
| 206 |
"normalized": false,
|
| 207 |
"rstrip": false,
|
| 208 |
"single_word": false,
|
| 209 |
"special": true
|
| 210 |
-
|
| 211 |
-
|
| 212 |
"content": "]<]video[>[",
|
| 213 |
"lstrip": false,
|
| 214 |
"normalized": false,
|
| 215 |
"rstrip": false,
|
| 216 |
"single_word": false,
|
| 217 |
"special": true
|
| 218 |
-
|
| 219 |
-
|
| 220 |
"content": "]<]start of speech[>[",
|
| 221 |
"lstrip": false,
|
| 222 |
"normalized": false,
|
| 223 |
"rstrip": false,
|
| 224 |
"single_word": false,
|
| 225 |
"special": true
|
| 226 |
-
|
| 227 |
-
|
| 228 |
"content": "]<]end of speech[>[",
|
| 229 |
"lstrip": false,
|
| 230 |
"normalized": false,
|
| 231 |
"rstrip": false,
|
| 232 |
"single_word": false,
|
| 233 |
"special": true
|
| 234 |
-
|
| 235 |
-
|
| 236 |
"content": "]<]start of image[>[",
|
| 237 |
"lstrip": false,
|
| 238 |
"normalized": false,
|
| 239 |
"rstrip": false,
|
| 240 |
"single_word": false,
|
| 241 |
"special": true
|
| 242 |
-
|
| 243 |
-
|
| 244 |
"content": "]<]end of image[>[",
|
| 245 |
"lstrip": false,
|
| 246 |
"normalized": false,
|
| 247 |
"rstrip": false,
|
| 248 |
"single_word": false,
|
| 249 |
"special": true
|
| 250 |
-
|
| 251 |
-
|
| 252 |
"content": "]<]start of video[>[",
|
| 253 |
"lstrip": false,
|
| 254 |
"normalized": false,
|
| 255 |
"rstrip": false,
|
| 256 |
"single_word": false,
|
| 257 |
"special": true
|
| 258 |
-
|
| 259 |
-
|
| 260 |
"content": "]<]end of video[>[",
|
| 261 |
"lstrip": false,
|
| 262 |
"normalized": false,
|
| 263 |
"rstrip": false,
|
| 264 |
"single_word": false,
|
| 265 |
"special": true
|
| 266 |
-
|
| 267 |
-
|
| 268 |
"content": "]<]vision pad[>[",
|
| 269 |
"lstrip": false,
|
| 270 |
"normalized": false,
|
| 271 |
"rstrip": false,
|
| 272 |
"single_word": false,
|
| 273 |
"special": true
|
| 274 |
-
|
| 275 |
-
|
| 276 |
"content": "]~!b[",
|
| 277 |
"lstrip": false,
|
| 278 |
"normalized": false,
|
| 279 |
"rstrip": false,
|
| 280 |
"single_word": false,
|
| 281 |
"special": true
|
| 282 |
-
|
| 283 |
-
|
| 284 |
"content": "<jupyter_error>",
|
| 285 |
"lstrip": false,
|
| 286 |
"normalized": false,
|
| 287 |
"rstrip": false,
|
| 288 |
"single_word": false,
|
| 289 |
"special": true
|
| 290 |
-
|
| 291 |
-
|
| 292 |
"content": "<add_file>",
|
| 293 |
-
"single_word": false,
|
| 294 |
"lstrip": false,
|
| 295 |
-
"rstrip": false,
|
| 296 |
"normalized": false,
|
|
|
|
|
|
|
| 297 |
"special": true
|
| 298 |
-
|
| 299 |
-
|
| 300 |
"content": "<delete_file>",
|
| 301 |
"lstrip": false,
|
| 302 |
"normalized": false,
|
| 303 |
"rstrip": false,
|
| 304 |
"single_word": false,
|
| 305 |
"special": true
|
| 306 |
-
|
| 307 |
-
|
| 308 |
"content": "<rename_file>",
|
| 309 |
"lstrip": false,
|
| 310 |
"normalized": false,
|
| 311 |
"rstrip": false,
|
| 312 |
"single_word": false,
|
| 313 |
"special": true
|
| 314 |
-
|
| 315 |
-
|
| 316 |
"content": "<edit_file>",
|
| 317 |
"lstrip": false,
|
| 318 |
"normalized": false,
|
| 319 |
"rstrip": false,
|
| 320 |
"single_word": false,
|
| 321 |
"special": true
|
| 322 |
-
|
| 323 |
-
|
| 324 |
"content": "<commit_message>",
|
| 325 |
"lstrip": false,
|
| 326 |
"normalized": false,
|
| 327 |
"rstrip": false,
|
| 328 |
"single_word": false,
|
| 329 |
"special": true
|
| 330 |
-
|
| 331 |
-
|
| 332 |
"content": "<empty_source_file>",
|
| 333 |
"lstrip": false,
|
| 334 |
"normalized": false,
|
| 335 |
"rstrip": false,
|
| 336 |
"single_word": false,
|
| 337 |
"special": true
|
| 338 |
-
|
| 339 |
-
|
| 340 |
"content": "<repo_struct>",
|
| 341 |
"lstrip": false,
|
| 342 |
"normalized": false,
|
| 343 |
"rstrip": false,
|
| 344 |
"single_word": false,
|
| 345 |
"special": true
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
},
|
| 436 |
"additional_special_tokens": [
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
"add_prefix_space": false,
|
| 489 |
"bos_token": "]~!b[",
|
| 490 |
"clean_up_tokenization_spaces": false,
|
| 491 |
"eos_token": "[e~[",
|
| 492 |
-
"
|
|
|
|
|
|
|
|
|
|
| 493 |
"tokenizer_class": "GPT2Tokenizer",
|
| 494 |
-
"unk_token": "]!d~["
|
| 495 |
-
}
|
|
|
|
|
|
| 1 |
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
+
"200000": {
|
| 6 |
"content": "]!p~[",
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
+
},
|
| 13 |
+
"200001": {
|
| 14 |
"content": "<fim_prefix>",
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
| 17 |
"rstrip": false,
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
+
},
|
| 21 |
+
"200002": {
|
| 22 |
"content": "<fim_middle>",
|
| 23 |
"lstrip": false,
|
| 24 |
"normalized": false,
|
| 25 |
"rstrip": false,
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
+
},
|
| 29 |
+
"200003": {
|
| 30 |
"content": "<fim_suffix>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
"special": true
|
| 36 |
+
},
|
| 37 |
+
"200004": {
|
| 38 |
"content": "<fim_pad>",
|
| 39 |
"lstrip": false,
|
| 40 |
"normalized": false,
|
| 41 |
"rstrip": false,
|
| 42 |
"single_word": false,
|
| 43 |
"special": true
|
| 44 |
+
},
|
| 45 |
+
"200005": {
|
| 46 |
"content": "<reponame>",
|
| 47 |
"lstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"rstrip": false,
|
| 50 |
"single_word": false,
|
| 51 |
"special": true
|
| 52 |
+
},
|
| 53 |
+
"200006": {
|
| 54 |
"content": "<filename>",
|
| 55 |
"lstrip": false,
|
| 56 |
"normalized": false,
|
| 57 |
"rstrip": false,
|
| 58 |
"single_word": false,
|
| 59 |
"special": true
|
| 60 |
+
},
|
| 61 |
+
"200007": {
|
| 62 |
"content": "<gh_stars>",
|
| 63 |
"lstrip": false,
|
| 64 |
"normalized": false,
|
| 65 |
"rstrip": false,
|
| 66 |
"single_word": false,
|
| 67 |
"special": true
|
| 68 |
+
},
|
| 69 |
+
"200008": {
|
| 70 |
"content": "<issue_start>",
|
| 71 |
"lstrip": false,
|
| 72 |
"normalized": false,
|
| 73 |
"rstrip": false,
|
| 74 |
"single_word": false,
|
| 75 |
"special": true
|
| 76 |
+
},
|
| 77 |
+
"200009": {
|
| 78 |
"content": "<issue_comment>",
|
| 79 |
"lstrip": false,
|
| 80 |
"normalized": false,
|
| 81 |
"rstrip": false,
|
| 82 |
"single_word": false,
|
| 83 |
"special": true
|
| 84 |
+
},
|
| 85 |
+
"200010": {
|
| 86 |
"content": "<issue_closed>",
|
| 87 |
"lstrip": false,
|
| 88 |
"normalized": false,
|
| 89 |
"rstrip": false,
|
| 90 |
"single_word": false,
|
| 91 |
"special": true
|
| 92 |
+
},
|
| 93 |
+
"200011": {
|
| 94 |
+
"content": "<jupyter_start>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"200012": {
|
| 102 |
"content": "<jupyter_text>",
|
| 103 |
"lstrip": false,
|
| 104 |
"normalized": false,
|
| 105 |
"rstrip": false,
|
| 106 |
"single_word": false,
|
| 107 |
"special": true
|
| 108 |
+
},
|
| 109 |
+
"200013": {
|
| 110 |
"content": "<jupyter_code>",
|
| 111 |
"lstrip": false,
|
| 112 |
"normalized": false,
|
| 113 |
"rstrip": false,
|
| 114 |
"single_word": false,
|
| 115 |
"special": true
|
| 116 |
+
},
|
| 117 |
+
"200014": {
|
| 118 |
"content": "<jupyter_output>",
|
| 119 |
"lstrip": false,
|
| 120 |
"normalized": false,
|
| 121 |
"rstrip": false,
|
| 122 |
"single_word": false,
|
| 123 |
"special": true
|
| 124 |
+
},
|
| 125 |
+
"200015": {
|
| 126 |
+
"content": "<empty_output>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": true
|
| 132 |
+
},
|
| 133 |
+
"200016": {
|
| 134 |
"content": "<commit_before>",
|
| 135 |
"lstrip": false,
|
| 136 |
"normalized": false,
|
| 137 |
"rstrip": false,
|
| 138 |
"single_word": false,
|
| 139 |
"special": true
|
| 140 |
+
},
|
| 141 |
+
"200017": {
|
| 142 |
"content": "<commit_msg>",
|
| 143 |
"lstrip": false,
|
| 144 |
"normalized": false,
|
| 145 |
"rstrip": false,
|
| 146 |
"single_word": false,
|
| 147 |
"special": true
|
| 148 |
+
},
|
| 149 |
+
"200018": {
|
| 150 |
"content": "<commit_after>",
|
| 151 |
"lstrip": false,
|
| 152 |
"normalized": false,
|
| 153 |
"rstrip": false,
|
| 154 |
"single_word": false,
|
| 155 |
"special": true
|
| 156 |
+
},
|
| 157 |
+
"200019": {
|
| 158 |
"content": "]~b]",
|
| 159 |
"lstrip": false,
|
| 160 |
"normalized": false,
|
| 161 |
"rstrip": false,
|
| 162 |
"single_word": false,
|
| 163 |
"special": true
|
| 164 |
+
},
|
| 165 |
+
"200020": {
|
| 166 |
"content": "[e~[",
|
| 167 |
"lstrip": false,
|
| 168 |
"normalized": false,
|
| 169 |
"rstrip": false,
|
| 170 |
"single_word": false,
|
| 171 |
"special": true
|
| 172 |
+
},
|
| 173 |
+
"200021": {
|
| 174 |
"content": "]!d~[",
|
| 175 |
"lstrip": false,
|
| 176 |
"normalized": false,
|
| 177 |
"rstrip": false,
|
| 178 |
"single_word": false,
|
| 179 |
"special": true
|
| 180 |
+
},
|
| 181 |
+
"200022": {
|
| 182 |
"content": "<function_call>",
|
| 183 |
"lstrip": false,
|
| 184 |
"normalized": false,
|
| 185 |
"rstrip": false,
|
| 186 |
"single_word": false,
|
| 187 |
"special": true
|
| 188 |
+
},
|
| 189 |
+
"200023": {
|
| 190 |
"content": "<code_interpreter>",
|
| 191 |
"lstrip": false,
|
| 192 |
"normalized": false,
|
| 193 |
"rstrip": false,
|
| 194 |
"single_word": false,
|
| 195 |
"special": true
|
| 196 |
+
},
|
| 197 |
+
"200024": {
|
| 198 |
"content": "]<]speech[>[",
|
| 199 |
"lstrip": false,
|
| 200 |
"normalized": false,
|
| 201 |
"rstrip": false,
|
| 202 |
"single_word": false,
|
| 203 |
"special": true
|
| 204 |
+
},
|
| 205 |
+
"200025": {
|
| 206 |
"content": "]<]image[>[",
|
| 207 |
"lstrip": false,
|
| 208 |
"normalized": false,
|
| 209 |
"rstrip": false,
|
| 210 |
"single_word": false,
|
| 211 |
"special": true
|
| 212 |
+
},
|
| 213 |
+
"200026": {
|
| 214 |
"content": "]<]video[>[",
|
| 215 |
"lstrip": false,
|
| 216 |
"normalized": false,
|
| 217 |
"rstrip": false,
|
| 218 |
"single_word": false,
|
| 219 |
"special": true
|
| 220 |
+
},
|
| 221 |
+
"200027": {
|
| 222 |
"content": "]<]start of speech[>[",
|
| 223 |
"lstrip": false,
|
| 224 |
"normalized": false,
|
| 225 |
"rstrip": false,
|
| 226 |
"single_word": false,
|
| 227 |
"special": true
|
| 228 |
+
},
|
| 229 |
+
"200028": {
|
| 230 |
"content": "]<]end of speech[>[",
|
| 231 |
"lstrip": false,
|
| 232 |
"normalized": false,
|
| 233 |
"rstrip": false,
|
| 234 |
"single_word": false,
|
| 235 |
"special": true
|
| 236 |
+
},
|
| 237 |
+
"200029": {
|
| 238 |
"content": "]<]start of image[>[",
|
| 239 |
"lstrip": false,
|
| 240 |
"normalized": false,
|
| 241 |
"rstrip": false,
|
| 242 |
"single_word": false,
|
| 243 |
"special": true
|
| 244 |
+
},
|
| 245 |
+
"200030": {
|
| 246 |
"content": "]<]end of image[>[",
|
| 247 |
"lstrip": false,
|
| 248 |
"normalized": false,
|
| 249 |
"rstrip": false,
|
| 250 |
"single_word": false,
|
| 251 |
"special": true
|
| 252 |
+
},
|
| 253 |
+
"200031": {
|
| 254 |
"content": "]<]start of video[>[",
|
| 255 |
"lstrip": false,
|
| 256 |
"normalized": false,
|
| 257 |
"rstrip": false,
|
| 258 |
"single_word": false,
|
| 259 |
"special": true
|
| 260 |
+
},
|
| 261 |
+
"200032": {
|
| 262 |
"content": "]<]end of video[>[",
|
| 263 |
"lstrip": false,
|
| 264 |
"normalized": false,
|
| 265 |
"rstrip": false,
|
| 266 |
"single_word": false,
|
| 267 |
"special": true
|
| 268 |
+
},
|
| 269 |
+
"200033": {
|
| 270 |
"content": "]<]vision pad[>[",
|
| 271 |
"lstrip": false,
|
| 272 |
"normalized": false,
|
| 273 |
"rstrip": false,
|
| 274 |
"single_word": false,
|
| 275 |
"special": true
|
| 276 |
+
},
|
| 277 |
+
"200034": {
|
| 278 |
"content": "]~!b[",
|
| 279 |
"lstrip": false,
|
| 280 |
"normalized": false,
|
| 281 |
"rstrip": false,
|
| 282 |
"single_word": false,
|
| 283 |
"special": true
|
| 284 |
+
},
|
| 285 |
+
"200035": {
|
| 286 |
"content": "<jupyter_error>",
|
| 287 |
"lstrip": false,
|
| 288 |
"normalized": false,
|
| 289 |
"rstrip": false,
|
| 290 |
"single_word": false,
|
| 291 |
"special": true
|
| 292 |
+
},
|
| 293 |
+
"200036": {
|
| 294 |
"content": "<add_file>",
|
|
|
|
| 295 |
"lstrip": false,
|
|
|
|
| 296 |
"normalized": false,
|
| 297 |
+
"rstrip": false,
|
| 298 |
+
"single_word": false,
|
| 299 |
"special": true
|
| 300 |
+
},
|
| 301 |
+
"200037": {
|
| 302 |
"content": "<delete_file>",
|
| 303 |
"lstrip": false,
|
| 304 |
"normalized": false,
|
| 305 |
"rstrip": false,
|
| 306 |
"single_word": false,
|
| 307 |
"special": true
|
| 308 |
+
},
|
| 309 |
+
"200038": {
|
| 310 |
"content": "<rename_file>",
|
| 311 |
"lstrip": false,
|
| 312 |
"normalized": false,
|
| 313 |
"rstrip": false,
|
| 314 |
"single_word": false,
|
| 315 |
"special": true
|
| 316 |
+
},
|
| 317 |
+
"200039": {
|
| 318 |
"content": "<edit_file>",
|
| 319 |
"lstrip": false,
|
| 320 |
"normalized": false,
|
| 321 |
"rstrip": false,
|
| 322 |
"single_word": false,
|
| 323 |
"special": true
|
| 324 |
+
},
|
| 325 |
+
"200040": {
|
| 326 |
"content": "<commit_message>",
|
| 327 |
"lstrip": false,
|
| 328 |
"normalized": false,
|
| 329 |
"rstrip": false,
|
| 330 |
"single_word": false,
|
| 331 |
"special": true
|
| 332 |
+
},
|
| 333 |
+
"200041": {
|
| 334 |
"content": "<empty_source_file>",
|
| 335 |
"lstrip": false,
|
| 336 |
"normalized": false,
|
| 337 |
"rstrip": false,
|
| 338 |
"single_word": false,
|
| 339 |
"special": true
|
| 340 |
+
},
|
| 341 |
+
"200042": {
|
| 342 |
"content": "<repo_struct>",
|
| 343 |
"lstrip": false,
|
| 344 |
"normalized": false,
|
| 345 |
"rstrip": false,
|
| 346 |
"single_word": false,
|
| 347 |
"special": true
|
| 348 |
+
},
|
| 349 |
+
"200043": {
|
| 350 |
+
"content": "<code_context>",
|
| 351 |
+
"lstrip": false,
|
| 352 |
+
"normalized": false,
|
| 353 |
+
"rstrip": false,
|
| 354 |
+
"single_word": false,
|
| 355 |
+
"special": true
|
| 356 |
+
},
|
| 357 |
+
"200044": {
|
| 358 |
+
"content": "<file_content>",
|
| 359 |
+
"lstrip": false,
|
| 360 |
+
"normalized": false,
|
| 361 |
+
"rstrip": false,
|
| 362 |
+
"single_word": false,
|
| 363 |
+
"special": true
|
| 364 |
+
},
|
| 365 |
+
"200045": {
|
| 366 |
+
"content": "<source_files>",
|
| 367 |
+
"lstrip": false,
|
| 368 |
+
"normalized": false,
|
| 369 |
+
"rstrip": false,
|
| 370 |
+
"single_word": false,
|
| 371 |
+
"special": true
|
| 372 |
+
},
|
| 373 |
+
"200046": {
|
| 374 |
+
"content": "<pr_start>",
|
| 375 |
+
"lstrip": false,
|
| 376 |
+
"normalized": false,
|
| 377 |
+
"rstrip": false,
|
| 378 |
+
"single_word": false,
|
| 379 |
+
"special": true
|
| 380 |
+
},
|
| 381 |
+
"200047": {
|
| 382 |
+
"content": "<review_comment>",
|
| 383 |
+
"lstrip": false,
|
| 384 |
+
"normalized": false,
|
| 385 |
+
"rstrip": false,
|
| 386 |
+
"single_word": false,
|
| 387 |
+
"special": true
|
| 388 |
+
},
|
| 389 |
+
"200048": {
|
| 390 |
+
"content": "<filepath>",
|
| 391 |
+
"lstrip": false,
|
| 392 |
+
"normalized": false,
|
| 393 |
+
"rstrip": false,
|
| 394 |
+
"single_word": false,
|
| 395 |
+
"special": true
|
| 396 |
+
},
|
| 397 |
+
"200049": {
|
| 398 |
+
"content": "<file_sep>",
|
| 399 |
+
"lstrip": false,
|
| 400 |
+
"normalized": false,
|
| 401 |
+
"rstrip": false,
|
| 402 |
+
"single_word": false,
|
| 403 |
+
"special": true
|
| 404 |
+
},
|
| 405 |
+
"200050": {
|
| 406 |
+
"content": "<think>",
|
| 407 |
+
"lstrip": false,
|
| 408 |
+
"normalized": false,
|
| 409 |
+
"rstrip": false,
|
| 410 |
+
"single_word": false,
|
| 411 |
+
"special": false
|
| 412 |
+
},
|
| 413 |
+
"200051": {
|
| 414 |
+
"content": "</think>",
|
| 415 |
+
"lstrip": false,
|
| 416 |
+
"normalized": false,
|
| 417 |
+
"rstrip": false,
|
| 418 |
+
"single_word": false,
|
| 419 |
+
"special": false
|
| 420 |
+
},
|
| 421 |
+
"200052": {
|
| 422 |
+
"content": "<minimax:tool_call>",
|
| 423 |
+
"lstrip": false,
|
| 424 |
+
"normalized": false,
|
| 425 |
+
"rstrip": false,
|
| 426 |
+
"single_word": false,
|
| 427 |
+
"special": false
|
| 428 |
+
},
|
| 429 |
+
"200053": {
|
| 430 |
+
"content": "</minimax:tool_call>",
|
| 431 |
+
"lstrip": false,
|
| 432 |
+
"normalized": false,
|
| 433 |
+
"rstrip": false,
|
| 434 |
+
"single_word": false,
|
| 435 |
+
"special": false
|
| 436 |
+
}
|
| 437 |
},
|
| 438 |
"additional_special_tokens": [
|
| 439 |
+
"<code_interpreter>",
|
| 440 |
+
"<commit_after>",
|
| 441 |
+
"<commit_before>",
|
| 442 |
+
"<commit_msg>",
|
| 443 |
+
"<empty_output>",
|
| 444 |
+
"<filename>",
|
| 445 |
+
"<fim_middle>",
|
| 446 |
+
"<fim_pad>",
|
| 447 |
+
"<fim_prefix>",
|
| 448 |
+
"<fim_suffix>",
|
| 449 |
+
"<function_call>",
|
| 450 |
+
"<gh_stars>",
|
| 451 |
+
"]<]speech[>[",
|
| 452 |
+
"]<]image[>[",
|
| 453 |
+
"]<]video[>[",
|
| 454 |
+
"]<]start of speech[>[",
|
| 455 |
+
"]<]end of speech[>[",
|
| 456 |
+
"]<]start of image[>[",
|
| 457 |
+
"]<]end of image[>[",
|
| 458 |
+
"]<]start of video[>[",
|
| 459 |
+
"]<]end of video[>[",
|
| 460 |
+
"]<]vision pad[>[",
|
| 461 |
+
"]~!b[",
|
| 462 |
+
"<issue_closed>",
|
| 463 |
+
"<issue_comment>",
|
| 464 |
+
"<issue_start>",
|
| 465 |
+
"<jupyter_code>",
|
| 466 |
+
"<jupyter_output>",
|
| 467 |
+
"<jupyter_start>",
|
| 468 |
+
"<jupyter_text>",
|
| 469 |
+
"<reponame>",
|
| 470 |
+
"[e~[",
|
| 471 |
+
"]!d~[",
|
| 472 |
+
"]!p~[",
|
| 473 |
+
"]~b]",
|
| 474 |
+
"<jupyter_error>",
|
| 475 |
+
"<add_file>",
|
| 476 |
+
"<delete_file>",
|
| 477 |
+
"<rename_file>",
|
| 478 |
+
"<edit_file>",
|
| 479 |
+
"<commit_message>",
|
| 480 |
+
"<empty_source_file>",
|
| 481 |
+
"<repo_struct>",
|
| 482 |
+
"<code_context>",
|
| 483 |
+
"<file_content>",
|
| 484 |
+
"<source_files>",
|
| 485 |
+
"<pr_start>",
|
| 486 |
+
"<review_comment>",
|
| 487 |
+
"<filepath>",
|
| 488 |
+
"<file_sep>"
|
| 489 |
+
],
|
|
|
|
| 490 |
"bos_token": "]~!b[",
|
| 491 |
"clean_up_tokenization_spaces": false,
|
| 492 |
"eos_token": "[e~[",
|
| 493 |
+
"extra_special_tokens": {},
|
| 494 |
+
"model_max_length": 196608,
|
| 495 |
+
"pad_token": "<fim_pad>",
|
| 496 |
+
"padding_side": "left",
|
| 497 |
"tokenizer_class": "GPT2Tokenizer",
|
| 498 |
+
"unk_token": "]!d~[",
|
| 499 |
+
"chat_template": "{# Unsloth template fixes #}\n{# ----------‑‑‑ special token variables ‑‑‑---------- #}\n{%- set toolcall_begin_token = '<minimax:tool_call>' -%}\n{%- set toolcall_end_token = '</minimax:tool_call>' -%}\n{#- Tool Rendering Functions ============================================== -#}\n{%- macro render_tool_namespace(namespace_name, tool_list) -%}\n{%- for tool in tool_list -%}\n<tool>{{ tool.function | tojson | string }}</tool>\n{% endfor -%}\n{%- endmacro -%}\n{%- macro visible_text(content) -%}\n {%- if content is string -%}\n {{ content }}\n {%- elif content is iterable and content is not mapping -%}\n {%- for item in content -%}\n {%- if item is mapping and item.type == 'text' -%}\n {{- item.text }}\n {%- elif item is string -%}\n {{- item }}\n {%- endif -%}\n {%- endfor -%}\n {%- else -%}\n {{- content }}\n {%- endif -%}\n{%- endmacro -%}\n{#- System Message Construction ============================================ -#}\n{%- macro build_system_message(system_message) -%}\n {%- if system_message and system_message.content -%}\n {{- visible_text(system_message.content) }}\n {%- else -%}\n {%- if model_identity is not defined -%}\n {%- set model_identity = \"You are a helpful assistant.\" -%}\n {%- endif -%}\n {{- model_identity }}\n {%- endif -%}\n \n {#- Handle current_date -#}\n {%- if system_message and system_message.current_date -%}\n {{- '\\n' ~ 'Current date: ' + system_message.current_date }}\n {%- endif -%}\n {#- Handle current_location -#}\n {%- if system_message and system_message.current_location -%}\n {{- '\\n' ~ 'Current location: ' + system_message.current_location }}\n {%- endif -%}\n{%- endmacro -%}\n{#- Main Template Logic ================================================= -#}\n{#- Extract system message (only first message if it's system) -#}\n{%- set system_message = none -%}\n{%- set conversation_messages = messages -%}\n{%- if messages and messages[0].role == \"system\" -%}\n {%- set system_message = messages[0] -%}\n {%- set conversation_messages = messages[1:] -%}\n{%- endif -%}\n{#- Get the last user message turn, for interleved thinking -#}\n{%- set ns = namespace(last_user_index=-1) %}\n{% for m in conversation_messages %}\n {%- if m.role == 'user' %}\n {% set ns.last_user_index = loop.index0 -%}\n {%- endif %}\n{%- endfor %}\n{#- Render system message -#}\n{{- ']~!b[' ~ ']~b]system' ~ '\\n' }}\n{{- build_system_message(system_message) }}\n{#- Render tools if available -#}\n{%- if tools -%}\n {{- '\\n\\n' ~ '# Tools' ~ '\\n' ~ 'You may call one or more tools to assist with the user query.\\nHere are the tools available in JSONSchema format:' ~ '\\n' }}\n {{- '\\n' ~ '<tools>' ~ '\\n' }}\n {{- render_tool_namespace(\"functions\", tools) }}\n {{- '</tools>' ~ '\\n\\n' }}\n{{- 'When making tool calls, use XML format to invoke tools and pass parameters:' ~ '\\n' }}\n{{- '\\n' ~ toolcall_begin_token }}\n<invoke name=\"tool-name-1\">\n<parameter name=\"param-key-1\">param-value-1</parameter>\n<parameter name=\"param-key-2\">param-value-2</parameter>\n...\n</invoke>\n{{- '\\n' ~ toolcall_end_token }}\n{%- endif -%}\n{{- '[e~[\\n' }}\n\n{#- Render messages -#}\n{%- set last_tool_call = namespace(name=none) -%}\n{%- for message in conversation_messages -%}\n {%- if message.role == 'assistant' -%}\n {#- Only render reasoning_content if no user message follows -#}\n {{- ']~b]ai' ~ '\\n' }}\n\n {%- set reasoning_content = '' %}\n {%- set content = visible_text(message.content) %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {# Unsloth template fixes - must change to for loop since llama.cpp will error out if not #}\n {%- set parts = content.split('</think>') %}\n {%- for part in parts %}\n {%- if loop.index0 == 0 -%}\n {%- set reasoning_content = part.strip('\\n') %}\n {%- set reasoning_content = (reasoning_content.split('<think>')|last) %}\n {%- set reasoning_content = reasoning_content.strip('\\n') -%}\n {%- else -%}\n {%- set content = part.strip('\\n') %}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n {%- endif %}\n {%- if reasoning_content and loop.index0 > ns.last_user_index -%}\n {{- '<think>' ~ '\\n' ~ reasoning_content ~ '\\n' ~ '</think>' ~ '\\n\\n' }}\n {%- endif -%}\n {%- if content -%}\n {{- content }}\n {%- endif -%}\n {%- if message.tool_calls -%}\n {{- '\\n' ~ toolcall_begin_token ~ '\\n' }}\n\n {%- for tool_call in message.tool_calls -%}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<invoke name=\"' + tool_call.name + '\">\\n' }}\n {%- if tool_call.arguments is defined and tool_call.arguments is mapping -%}\n {% set _args = tool_call.arguments %}\n {%- for k, v in _args|items %}\n {{- '<parameter name=\"' + k + '\">' }}\n {{- v | tojson | string if v is not string else v }}\n {{- '</parameter>' }}\n {% endfor %}{%- endif -%}\n {{- '</invoke>' ~ '\\n' }}\n {%- endfor -%}\n \n {{- toolcall_end_token}}\n {%- set last_tool_call.name = message.tool_calls[-1].name -%}\n {%- else -%}\n {%- set last_tool_call.name = none -%}\n {%- endif -%}\n {{- '[e~[' ~ '\\n' }}\n \n {%- elif message.role == 'tool' -%}\n {%- if last_tool_call.name is none -%}\n {{- raise_exception(\"Message has tool role, but there was no previous assistant message with a tool call!\") }}\n {%- endif -%}\n {%- if loop.first or (conversation_messages[loop.index0 - 1].role != 'tool') -%}\n {{- ']~b]tool' }}\n {%- endif -%}\n {%- if message.content is string -%}\n {{- '\\n<response>' }}\n {{- message.content }}\n {{- '</response>' }}\n {%- else -%}\n {%- for tr in message.content -%}\n {{- '\\n<response>' }}\n {{- tr.output if tr.output is defined else (tr.text if tr.type == 'text' and tr.text is defined else tr) }}\n {{- '\\n</response>' }}\n {%- endfor -%}\n {%- endif -%}\n {%- if loop.last or (conversation_messages[loop.index0 + 1].role != 'tool') -%}\n {{- '[e~[\\n' -}}\n {%- endif -%}\n \n {%- elif message.role == 'user' -%}\n {{- ']~b]user' ~ '\\n' }}\n {{- visible_text(message.content) }}\n {{- '[e~[' ~ '\\n' }}\n {%- endif -%}\n{%- endfor -%}\n\n{#- Generation prompt -#}\n{%- if add_generation_prompt -%}\n{{- ']~b]ai' ~ '\\n' ~ '<think>' ~ '\\n' }}\n{%- endif -%}\n{# Copyright 2025-present Unsloth. Apache 2.0 License. #}\n"
|
| 500 |
+
}
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|