Upload tokenizer
Browse files- README.md +0 -1
- special_tokens_map.json +8 -1
- tokenizer.json +2 -2
- tokenizer_config.json +75 -65
README.md
CHANGED
@@ -8,7 +8,6 @@ library_name: transformers
|
|
8 |
tags:
|
9 |
- mergekit
|
10 |
- merge
|
11 |
-
|
12 |
---
|
13 |
# merge
|
14 |
|
|
|
8 |
tags:
|
9 |
- mergekit
|
10 |
- merge
|
|
|
11 |
---
|
12 |
# merge
|
13 |
|
special_tokens_map.json
CHANGED
@@ -7,7 +7,14 @@
|
|
7 |
"single_word": false
|
8 |
},
|
9 |
"eos_token": {
|
10 |
-
"content": "<|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
"lstrip": false,
|
12 |
"normalized": false,
|
13 |
"rstrip": false,
|
|
|
7 |
"single_word": false
|
8 |
},
|
9 |
"eos_token": {
|
10 |
+
"content": "<|im_end|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|im_end|>",
|
18 |
"lstrip": false,
|
19 |
"normalized": false,
|
20 |
"rstrip": false,
|
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:14b5e679cb69af62e14c3b98d346177bd4137d882a44f87dec9efec982b01a05
|
3 |
+
size 17209403
|
tokenizer_config.json
CHANGED
@@ -17,20 +17,20 @@
|
|
17 |
"special": true
|
18 |
},
|
19 |
"128002": {
|
20 |
-
"content": "
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
-
"special":
|
26 |
},
|
27 |
"128003": {
|
28 |
-
"content": "
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
-
"special":
|
34 |
},
|
35 |
"128004": {
|
36 |
"content": "<|finetune_right_pad_id|>",
|
@@ -89,239 +89,239 @@
|
|
89 |
"special": true
|
90 |
},
|
91 |
"128011": {
|
92 |
-
"content": "
|
93 |
"lstrip": false,
|
94 |
"normalized": false,
|
95 |
"rstrip": false,
|
96 |
"single_word": false,
|
97 |
-
"special":
|
98 |
},
|
99 |
"128012": {
|
100 |
-
"content": "
|
101 |
"lstrip": false,
|
102 |
"normalized": false,
|
103 |
"rstrip": false,
|
104 |
"single_word": false,
|
105 |
-
"special":
|
106 |
},
|
107 |
"128013": {
|
108 |
-
"content": "
|
109 |
"lstrip": false,
|
110 |
"normalized": false,
|
111 |
"rstrip": false,
|
112 |
"single_word": false,
|
113 |
-
"special":
|
114 |
},
|
115 |
"128014": {
|
116 |
-
"content": "
|
117 |
"lstrip": false,
|
118 |
"normalized": false,
|
119 |
"rstrip": false,
|
120 |
"single_word": false,
|
121 |
-
"special":
|
122 |
},
|
123 |
"128015": {
|
124 |
-
"content": "
|
125 |
"lstrip": false,
|
126 |
"normalized": false,
|
127 |
"rstrip": false,
|
128 |
"single_word": false,
|
129 |
-
"special":
|
130 |
},
|
131 |
"128016": {
|
132 |
-
"content": "
|
133 |
"lstrip": false,
|
134 |
"normalized": false,
|
135 |
"rstrip": false,
|
136 |
"single_word": false,
|
137 |
-
"special":
|
138 |
},
|
139 |
"128017": {
|
140 |
-
"content": "
|
141 |
"lstrip": false,
|
142 |
"normalized": false,
|
143 |
"rstrip": false,
|
144 |
"single_word": false,
|
145 |
-
"special":
|
146 |
},
|
147 |
"128018": {
|
148 |
-
"content": "
|
149 |
"lstrip": false,
|
150 |
"normalized": false,
|
151 |
"rstrip": false,
|
152 |
"single_word": false,
|
153 |
-
"special":
|
154 |
},
|
155 |
"128019": {
|
156 |
-
"content": "
|
157 |
"lstrip": false,
|
158 |
"normalized": false,
|
159 |
"rstrip": false,
|
160 |
"single_word": false,
|
161 |
-
"special":
|
162 |
},
|
163 |
"128020": {
|
164 |
-
"content": "
|
165 |
"lstrip": false,
|
166 |
"normalized": false,
|
167 |
"rstrip": false,
|
168 |
"single_word": false,
|
169 |
-
"special":
|
170 |
},
|
171 |
"128021": {
|
172 |
-
"content": "
|
173 |
"lstrip": false,
|
174 |
"normalized": false,
|
175 |
"rstrip": false,
|
176 |
"single_word": false,
|
177 |
-
"special":
|
178 |
},
|
179 |
"128022": {
|
180 |
-
"content": "
|
181 |
"lstrip": false,
|
182 |
"normalized": false,
|
183 |
"rstrip": false,
|
184 |
"single_word": false,
|
185 |
-
"special":
|
186 |
},
|
187 |
"128023": {
|
188 |
-
"content": "
|
189 |
"lstrip": false,
|
190 |
"normalized": false,
|
191 |
"rstrip": false,
|
192 |
"single_word": false,
|
193 |
-
"special":
|
194 |
},
|
195 |
"128024": {
|
196 |
-
"content": "
|
197 |
"lstrip": false,
|
198 |
"normalized": false,
|
199 |
"rstrip": false,
|
200 |
"single_word": false,
|
201 |
-
"special":
|
202 |
},
|
203 |
"128025": {
|
204 |
-
"content": "
|
205 |
"lstrip": false,
|
206 |
"normalized": false,
|
207 |
"rstrip": false,
|
208 |
"single_word": false,
|
209 |
-
"special":
|
210 |
},
|
211 |
"128026": {
|
212 |
-
"content": "
|
213 |
"lstrip": false,
|
214 |
"normalized": false,
|
215 |
"rstrip": false,
|
216 |
"single_word": false,
|
217 |
-
"special":
|
218 |
},
|
219 |
"128027": {
|
220 |
-
"content": "
|
221 |
"lstrip": false,
|
222 |
"normalized": false,
|
223 |
"rstrip": false,
|
224 |
"single_word": false,
|
225 |
-
"special":
|
226 |
},
|
227 |
"128028": {
|
228 |
-
"content": "
|
229 |
"lstrip": false,
|
230 |
"normalized": false,
|
231 |
"rstrip": false,
|
232 |
"single_word": false,
|
233 |
-
"special":
|
234 |
},
|
235 |
"128029": {
|
236 |
-
"content": "
|
237 |
"lstrip": false,
|
238 |
"normalized": false,
|
239 |
"rstrip": false,
|
240 |
"single_word": false,
|
241 |
-
"special":
|
242 |
},
|
243 |
"128030": {
|
244 |
-
"content": "
|
245 |
"lstrip": false,
|
246 |
"normalized": false,
|
247 |
"rstrip": false,
|
248 |
"single_word": false,
|
249 |
-
"special":
|
250 |
},
|
251 |
"128031": {
|
252 |
-
"content": "
|
253 |
"lstrip": false,
|
254 |
"normalized": false,
|
255 |
"rstrip": false,
|
256 |
"single_word": false,
|
257 |
-
"special":
|
258 |
},
|
259 |
"128032": {
|
260 |
-
"content": "
|
261 |
"lstrip": false,
|
262 |
"normalized": false,
|
263 |
"rstrip": false,
|
264 |
"single_word": false,
|
265 |
-
"special":
|
266 |
},
|
267 |
"128033": {
|
268 |
-
"content": "
|
269 |
"lstrip": false,
|
270 |
"normalized": false,
|
271 |
"rstrip": false,
|
272 |
"single_word": false,
|
273 |
-
"special":
|
274 |
},
|
275 |
"128034": {
|
276 |
-
"content": "
|
277 |
"lstrip": false,
|
278 |
"normalized": false,
|
279 |
"rstrip": false,
|
280 |
"single_word": false,
|
281 |
-
"special":
|
282 |
},
|
283 |
"128035": {
|
284 |
-
"content": "
|
285 |
"lstrip": false,
|
286 |
"normalized": false,
|
287 |
"rstrip": false,
|
288 |
"single_word": false,
|
289 |
-
"special":
|
290 |
},
|
291 |
"128036": {
|
292 |
-
"content": "
|
293 |
"lstrip": false,
|
294 |
"normalized": false,
|
295 |
"rstrip": false,
|
296 |
"single_word": false,
|
297 |
-
"special":
|
298 |
},
|
299 |
"128037": {
|
300 |
-
"content": "
|
301 |
"lstrip": false,
|
302 |
"normalized": false,
|
303 |
"rstrip": false,
|
304 |
"single_word": false,
|
305 |
-
"special":
|
306 |
},
|
307 |
"128038": {
|
308 |
-
"content": "
|
309 |
"lstrip": false,
|
310 |
"normalized": false,
|
311 |
"rstrip": false,
|
312 |
"single_word": false,
|
313 |
-
"special":
|
314 |
},
|
315 |
"128039": {
|
316 |
-
"content": "<|
|
317 |
"lstrip": false,
|
318 |
"normalized": false,
|
319 |
"rstrip": false,
|
320 |
"single_word": false,
|
321 |
-
"special":
|
322 |
},
|
323 |
"128040": {
|
324 |
-
"content": "<|
|
325 |
"lstrip": false,
|
326 |
"normalized": false,
|
327 |
"rstrip": false,
|
@@ -2050,13 +2050,23 @@
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
-
"chat_template":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2054 |
"clean_up_tokenization_spaces": true,
|
2055 |
-
"eos_token": "<|
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
2059 |
],
|
2060 |
"model_max_length": 131072,
|
|
|
2061 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2062 |
}
|
|
|
17 |
"special": true
|
18 |
},
|
19 |
"128002": {
|
20 |
+
"content": "<tool_call>",
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
+
"special": false
|
26 |
},
|
27 |
"128003": {
|
28 |
+
"content": "<tool_response>",
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
+
"special": false
|
34 |
},
|
35 |
"128004": {
|
36 |
"content": "<|finetune_right_pad_id|>",
|
|
|
89 |
"special": true
|
90 |
},
|
91 |
"128011": {
|
92 |
+
"content": "<tools>",
|
93 |
"lstrip": false,
|
94 |
"normalized": false,
|
95 |
"rstrip": false,
|
96 |
"single_word": false,
|
97 |
+
"special": false
|
98 |
},
|
99 |
"128012": {
|
100 |
+
"content": "</tools>",
|
101 |
"lstrip": false,
|
102 |
"normalized": false,
|
103 |
"rstrip": false,
|
104 |
"single_word": false,
|
105 |
+
"special": false
|
106 |
},
|
107 |
"128013": {
|
108 |
+
"content": "</tool_call>",
|
109 |
"lstrip": false,
|
110 |
"normalized": false,
|
111 |
"rstrip": false,
|
112 |
"single_word": false,
|
113 |
+
"special": false
|
114 |
},
|
115 |
"128014": {
|
116 |
+
"content": "</tool_response>",
|
117 |
"lstrip": false,
|
118 |
"normalized": false,
|
119 |
"rstrip": false,
|
120 |
"single_word": false,
|
121 |
+
"special": false
|
122 |
},
|
123 |
"128015": {
|
124 |
+
"content": "<schema>",
|
125 |
"lstrip": false,
|
126 |
"normalized": false,
|
127 |
"rstrip": false,
|
128 |
"single_word": false,
|
129 |
+
"special": false
|
130 |
},
|
131 |
"128016": {
|
132 |
+
"content": "</schema>",
|
133 |
"lstrip": false,
|
134 |
"normalized": false,
|
135 |
"rstrip": false,
|
136 |
"single_word": false,
|
137 |
+
"special": false
|
138 |
},
|
139 |
"128017": {
|
140 |
+
"content": "<scratch_pad>",
|
141 |
"lstrip": false,
|
142 |
"normalized": false,
|
143 |
"rstrip": false,
|
144 |
"single_word": false,
|
145 |
+
"special": false
|
146 |
},
|
147 |
"128018": {
|
148 |
+
"content": "</scratch_pad>",
|
149 |
"lstrip": false,
|
150 |
"normalized": false,
|
151 |
"rstrip": false,
|
152 |
"single_word": false,
|
153 |
+
"special": false
|
154 |
},
|
155 |
"128019": {
|
156 |
+
"content": "<SCRATCHPAD>",
|
157 |
"lstrip": false,
|
158 |
"normalized": false,
|
159 |
"rstrip": false,
|
160 |
"single_word": false,
|
161 |
+
"special": false
|
162 |
},
|
163 |
"128020": {
|
164 |
+
"content": "</SCRATCHPAD>",
|
165 |
"lstrip": false,
|
166 |
"normalized": false,
|
167 |
"rstrip": false,
|
168 |
"single_word": false,
|
169 |
+
"special": false
|
170 |
},
|
171 |
"128021": {
|
172 |
+
"content": "<REASONING>",
|
173 |
"lstrip": false,
|
174 |
"normalized": false,
|
175 |
"rstrip": false,
|
176 |
"single_word": false,
|
177 |
+
"special": false
|
178 |
},
|
179 |
"128022": {
|
180 |
+
"content": "</REASONING>",
|
181 |
"lstrip": false,
|
182 |
"normalized": false,
|
183 |
"rstrip": false,
|
184 |
"single_word": false,
|
185 |
+
"special": false
|
186 |
},
|
187 |
"128023": {
|
188 |
+
"content": "<INNER_MONOLOGUE>",
|
189 |
"lstrip": false,
|
190 |
"normalized": false,
|
191 |
"rstrip": false,
|
192 |
"single_word": false,
|
193 |
+
"special": false
|
194 |
},
|
195 |
"128024": {
|
196 |
+
"content": "</INNER_MONOLOGUE>",
|
197 |
"lstrip": false,
|
198 |
"normalized": false,
|
199 |
"rstrip": false,
|
200 |
"single_word": false,
|
201 |
+
"special": false
|
202 |
},
|
203 |
"128025": {
|
204 |
+
"content": "<PLAN>",
|
205 |
"lstrip": false,
|
206 |
"normalized": false,
|
207 |
"rstrip": false,
|
208 |
"single_word": false,
|
209 |
+
"special": false
|
210 |
},
|
211 |
"128026": {
|
212 |
+
"content": "</PLAN>",
|
213 |
"lstrip": false,
|
214 |
"normalized": false,
|
215 |
"rstrip": false,
|
216 |
"single_word": false,
|
217 |
+
"special": false
|
218 |
},
|
219 |
"128027": {
|
220 |
+
"content": "<EXECUTION>",
|
221 |
"lstrip": false,
|
222 |
"normalized": false,
|
223 |
"rstrip": false,
|
224 |
"single_word": false,
|
225 |
+
"special": false
|
226 |
},
|
227 |
"128028": {
|
228 |
+
"content": "</EXECUTION>",
|
229 |
"lstrip": false,
|
230 |
"normalized": false,
|
231 |
"rstrip": false,
|
232 |
"single_word": false,
|
233 |
+
"special": false
|
234 |
},
|
235 |
"128029": {
|
236 |
+
"content": "<REFLECTION>",
|
237 |
"lstrip": false,
|
238 |
"normalized": false,
|
239 |
"rstrip": false,
|
240 |
"single_word": false,
|
241 |
+
"special": false
|
242 |
},
|
243 |
"128030": {
|
244 |
+
"content": "</REFLECTION>",
|
245 |
"lstrip": false,
|
246 |
"normalized": false,
|
247 |
"rstrip": false,
|
248 |
"single_word": false,
|
249 |
+
"special": false
|
250 |
},
|
251 |
"128031": {
|
252 |
+
"content": "<THINKING>",
|
253 |
"lstrip": false,
|
254 |
"normalized": false,
|
255 |
"rstrip": false,
|
256 |
"single_word": false,
|
257 |
+
"special": false
|
258 |
},
|
259 |
"128032": {
|
260 |
+
"content": "</THINKING>",
|
261 |
"lstrip": false,
|
262 |
"normalized": false,
|
263 |
"rstrip": false,
|
264 |
"single_word": false,
|
265 |
+
"special": false
|
266 |
},
|
267 |
"128033": {
|
268 |
+
"content": "<SOLUTION>",
|
269 |
"lstrip": false,
|
270 |
"normalized": false,
|
271 |
"rstrip": false,
|
272 |
"single_word": false,
|
273 |
+
"special": false
|
274 |
},
|
275 |
"128034": {
|
276 |
+
"content": "</SOLUTION>",
|
277 |
"lstrip": false,
|
278 |
"normalized": false,
|
279 |
"rstrip": false,
|
280 |
"single_word": false,
|
281 |
+
"special": false
|
282 |
},
|
283 |
"128035": {
|
284 |
+
"content": "<EXPLANATION>",
|
285 |
"lstrip": false,
|
286 |
"normalized": false,
|
287 |
"rstrip": false,
|
288 |
"single_word": false,
|
289 |
+
"special": false
|
290 |
},
|
291 |
"128036": {
|
292 |
+
"content": "</EXPLANATION>",
|
293 |
"lstrip": false,
|
294 |
"normalized": false,
|
295 |
"rstrip": false,
|
296 |
"single_word": false,
|
297 |
+
"special": false
|
298 |
},
|
299 |
"128037": {
|
300 |
+
"content": "<UNIT_TEST>",
|
301 |
"lstrip": false,
|
302 |
"normalized": false,
|
303 |
"rstrip": false,
|
304 |
"single_word": false,
|
305 |
+
"special": false
|
306 |
},
|
307 |
"128038": {
|
308 |
+
"content": "</UNIT_TEST>",
|
309 |
"lstrip": false,
|
310 |
"normalized": false,
|
311 |
"rstrip": false,
|
312 |
"single_word": false,
|
313 |
+
"special": false
|
314 |
},
|
315 |
"128039": {
|
316 |
+
"content": "<|im_start|>",
|
317 |
"lstrip": false,
|
318 |
"normalized": false,
|
319 |
"rstrip": false,
|
320 |
"single_word": false,
|
321 |
+
"special": false
|
322 |
},
|
323 |
"128040": {
|
324 |
+
"content": "<|im_end|>",
|
325 |
"lstrip": false,
|
326 |
"normalized": false,
|
327 |
"rstrip": false,
|
|
|
2050 |
}
|
2051 |
},
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
+
"chat_template": [
|
2054 |
+
{
|
2055 |
+
"name": "default",
|
2056 |
+
"template": "{{bos_token}}{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
|
2057 |
+
},
|
2058 |
+
{
|
2059 |
+
"name": "tool_use",
|
2060 |
+
"template": "{%- macro json_to_python_type(json_spec) %}\n{%- set basic_type_map = {\n \"string\": \"str\",\n \"number\": \"float\",\n \"integer\": \"int\",\n \"boolean\": \"bool\"\n} %}\n\n{%- if basic_type_map[json_spec.type] is defined %}\n {{- basic_type_map[json_spec.type] }}\n{%- elif json_spec.type == \"array\" %}\n {{- \"list[\" + json_to_python_type(json_spec|items) + \"]\"}}\n{%- elif json_spec.type == \"object\" %}\n {%- if json_spec.additionalProperties is defined %}\n {{- \"dict[str, \" + json_to_python_type(json_spec.additionalProperties) + ']'}}\n {%- else %}\n {{- \"dict\" }}\n {%- endif %}\n{%- elif json_spec.type is iterable %}\n {{- \"Union[\" }}\n {%- for t in json_spec.type %}\n {{- json_to_python_type({\"type\": t}) }}\n {%- if not loop.last %}\n {{- \",\" }} \n {%- endif %}\n {%- endfor %}\n {{- \"]\" }}\n{%- else %}\n {{- \"Any\" }}\n{%- endif %}\n{%- endmacro %}\n\n\n{{- bos_token }}\n{{- '<|im_start|>system\n' }}\n{{- \"You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. Here are the available tools: <tools> \" }}\n{%- for tool in tools %}\n {%- if tool.function is defined %}\n {%- set tool = tool.function %}\n {%- endif %}\n {{- '{\"type\": \"function\", \"function\": ' }}\n {{- '{\"name\": \"' + tool.name + '\", ' }}\n {{- '\"description\": \"' + tool.name + '(' }}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {{- param_name + \": \" + json_to_python_type(param_fields) }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \")\" }}\n {%- if tool.return is defined %}\n {{- \" -> \" + json_to_python_type(tool.return) }}\n {%- endif %}\n {{- \" - \" + tool.description + \"\n\n\" }}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {%- if loop.first %}\n {{- \" Args:\n\" }}\n {%- endif %}\n {{- \" \" + param_name + \"(\" + json_to_python_type(param_fields) + \"): \" + param_fields.description|trim }}\n {%- endfor %}\n {%- if tool.return is defined and tool.return.description is defined %}\n {{- \"\n Returns:\n \" + tool.return.description }}\n {%- endif %}\n {{- '\"' }}\n {{- ', \"parameters\": ' }}\n {%- if tool.parameters.properties | length == 0 %}\n {{- \"{}\" }}\n {%- else %}\n {{- tool.parameters|tojson }}\n {%- endif %}\n {{- \"}\" }}\n {%- if not loop.last %}\n {{- \"\n\" }}\n {%- endif %}\n{%- endfor %}\n{{- \" </tools>\" }}\n{{- 'Use the following pydantic model json schema for each tool call you will make: {\"properties\": {\"name\": {\"title\": \"Name\", \"type\": \"string\"}, \"arguments\": {\"title\": \"Arguments\", \"type\": \"object\"}}, \"required\": [\"name\", \"arguments\"], \"title\": \"FunctionCall\", \"type\": \"object\"}}\n' }}\n{{- \"For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:\n\" }}\n{{- \"<tool_call>\n\" }}\n{{- '{\"name\": <function-name>, \"arguments\": <args-dict>}\n' }}\n{{- '</tool_call><|im_end|>\n' }}\n{%- for message in messages %}\n {%- if message.role == \"user\" or message.role == \"system\" or (message.role == \"assistant\" and message.tool_calls is not defined) %}\n {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- for tool_call in message.tool_calls %}\n {{- '\n<tool_call>\n' }} {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '{' }}\n {{- '\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\"' }}\n {{- ', '}}\n {%- if tool_call.arguments is defined %}\n {{- '\"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments|tojson }}\n {%- endif %}\n {%- endif %}\n {{- '}' }}\n {{- '\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>tool\n' }}\n {%- endif %}\n {{- '<tool_response>\n' }}\n {{- message.content }}\n {%- if not loop.last %}\n {{- '\n</tool_response>\n' }}\n {%- else %}\n {{- '\n</tool_response>' }}\n {%- endif %}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>' }}\n {%- elif loop.last %}\n {{- '<|im_end|>' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\n' }}\n{%- endif %}\n"
|
2061 |
+
}
|
2062 |
+
],
|
2063 |
"clean_up_tokenization_spaces": true,
|
2064 |
+
"eos_token": "<|im_end|>",
|
2065 |
"model_input_names": [
|
2066 |
"input_ids",
|
2067 |
"attention_mask"
|
2068 |
],
|
2069 |
"model_max_length": 131072,
|
2070 |
+
"pad_token": "<|im_end|>",
|
2071 |
"tokenizer_class": "PreTrainedTokenizerFast"
|
2072 |
}
|