main
json 572 lines 25.9 KB
Raw
1 {
2 "model_id": "moonshotai/Kimi-K3",
3 "vocab_size": 163840,
4 "all_stop_token_ids": [163585, 163586],
5 "cases": {
6 "auto": {
7 "grammar": {
8 "format": {
9 "type": "sequence",
10 "elements": [
11 {
12 "type": "optional",
13 "content": {
14 "type": "const_string",
15 "value": "<|open|>response<|sep|>"
16 }
17 },
18 {
19 "type": "tag",
20 "begin": "",
21 "content": {
22 "type": "any_text",
23 "excludes": [
24 "<|open|>",
25 "<|close|>",
26 "<|end_of_msg|>"
27 ],
28 "max_tokens": null,
29 "max_chars": null
30 },
31 "end": "<|close|>response<|sep|>"
32 },
33 {
34 "type": "optional",
35 "content": {
36 "type": "tag",
37 "begin": "<|open|>tools<|sep|>",
38 "content": {
39 "type": "tags_with_separator",
40 "tags": [
41 {
42 "type": "tag",
43 "begin": "<|open|>call tool=\"get_weather\" index=\"",
44 "content": {
45 "type": "sequence",
46 "elements": [
47 {
48 "type": "regex",
49 "pattern": "[1-9][0-9]*"
50 },
51 {
52 "type": "const_string",
53 "value": "\"<|sep|>"
54 },
55 {
56 "type": "or",
57 "elements": [
58 {
59 "type": "tag",
60 "begin": "<|open|>argument key=\"location\" type=\"string\"<|sep|>",
61 "content": {
62 "type": "any_text",
63 "excludes": [
64 "<|close|>argument<|sep|>",
65 "<|close|>call<|sep|>"
66 ],
67 "max_tokens": null,
68 "max_chars": null
69 },
70 "end": "<|close|>argument<|sep|>"
71 },
72 {
73 "type": "tag",
74 "begin": "<|open|>json type=\"object\"<|sep|>",
75 "content": {
76 "type": "json_schema",
77 "json_schema": {
78 "type": "object",
79 "properties": {
80 "location": {
81 "type": "string"
82 }
83 },
84 "required": [
85 "location"
86 ]
87 },
88 "style": "json",
89 "any_order": false,
90 "max_whitespace_cnt": null,
91 "excludes": []
92 },
93 "end": "<|close|>json<|sep|>"
94 }
95 ]
96 }
97 ]
98 },
99 "end": "<|close|>call<|sep|>"
100 },
101 {
102 "type": "tag",
103 "begin": "<|open|>call tool=\"add\" index=\"",
104 "content": {
105 "type": "sequence",
106 "elements": [
107 {
108 "type": "regex",
109 "pattern": "[1-9][0-9]*"
110 },
111 {
112 "type": "const_string",
113 "value": "\"<|sep|>"
114 },
115 {
116 "type": "or",
117 "elements": [
118 {
119 "type": "sequence",
120 "elements": [
121 {
122 "type": "tag",
123 "begin": "<|open|>argument key=\"y\" type=\"number\"<|sep|>",
124 "content": {
125 "type": "json_schema",
126 "json_schema": {
127 "type": "number"
128 },
129 "style": "json",
130 "any_order": false,
131 "max_whitespace_cnt": null,
132 "excludes": []
133 },
134 "end": "<|close|>argument<|sep|>"
135 },
136 {
137 "type": "tag",
138 "begin": "<|open|>argument key=\"x\" type=\"number\"<|sep|>",
139 "content": {
140 "type": "json_schema",
141 "json_schema": {
142 "type": "number"
143 },
144 "style": "json",
145 "any_order": false,
146 "max_whitespace_cnt": null,
147 "excludes": []
148 },
149 "end": "<|close|>argument<|sep|>"
150 },
151 {
152 "type": "tag",
153 "begin": "<|open|>argument key=\"items\" type=\"array\"<|sep|>",
154 "content": {
155 "type": "json_schema",
156 "json_schema": {
157 "type": "array",
158 "items": {
159 "type": "string"
160 }
161 },
162 "style": "json",
163 "any_order": false,
164 "max_whitespace_cnt": null,
165 "excludes": []
166 },
167 "end": "<|close|>argument<|sep|>"
168 }
169 ]
170 },
171 {
172 "type": "tag",
173 "begin": "<|open|>json type=\"object\"<|sep|>",
174 "content": {
175 "type": "json_schema",
176 "json_schema": {
177 "type": "object",
178 "properties": {
179 "y": {
180 "type": "number"
181 },
182 "x": {
183 "type": "number"
184 },
185 "items": {
186 "type": "array",
187 "items": {
188 "type": "string"
189 }
190 }
191 },
192 "required": [
193 "y",
194 "x",
195 "items"
196 ]
197 },
198 "style": "json",
199 "any_order": false,
200 "max_whitespace_cnt": null,
201 "excludes": []
202 },
203 "end": "<|close|>json<|sep|>"
204 }
205 ]
206 }
207 ]
208 },
209 "end": "<|close|>call<|sep|>"
210 }
211 ],
212 "separator": "",
213 "at_least_one": true,
214 "stop_after_first": false
215 },
216 "end": "<|close|>tools<|sep|>"
217 }
218 },
219 {
220 "type": "optional",
221 "content": {
222 "type": "const_string",
223 "value": "<|close|>message<|sep|>"
224 }
225 }
226 ]
227 },
228 "coverage": "final_output_only"
229 },
230 "completion": "Need call the weather and add tools.<|close|>think<|sep|><|open|>response<|sep|>I will call the tools.<|close|>response<|sep|><|open|>tools<|sep|><|open|>call tool=\"get_weather\" index=\"1\"<|sep|><|open|>argument key=\"location\" type=\"string\"<|sep|>Shanghai<|close|>argument<|sep|><|close|>call<|sep|><|open|>call tool=\"add\" index=\"2\"<|sep|><|open|>argument key=\"y\" type=\"number\"<|sep|>1.0<|close|>argument<|sep|><|open|>argument key=\"x\" type=\"number\"<|sep|>2<|close|>argument<|sep|><|open|>argument key=\"items\" type=\"array\"<|sep|>[\"left\",\"right\"]<|close|>argument<|sep|><|close|>call<|sep|><|close|>tools<|sep|><|close|>message<|sep|>",
231 "generation_token_ids": [20082, 2390, 276, 10666, 316, 1239, 7697, 13, 163588, 39964, 163589, 163587, 12092, 163589, 40, 748, 2390, 276, 7697, 13, 163588, 12092, 163589, 163587, 25385, 163589, 163587, 10257, 4453, 878, 618, 21055, 2800, 1, 4002, 878, 16, 1, 163589, 163587, 47185, 2355, 878, 5791, 1, 1798, 878, 2033, 1, 163589, 2797, 31231, 163588, 47185, 163589, 163588, 10257, 163589, 163587, 10257, 4453, 878, 1210, 1, 4002, 878, 17, 1, 163589, 163587, 47185, 2355, 878, 88, 1, 1798, 878, 10006, 1, 163589, 16, 13, 15, 163588, 47185, 163589, 163587, 47185, 2355, 878, 87, 1, 1798, 878, 10006, 1, 163589, 17, 163588, 47185, 163589, 163587, 47185, 2355, 878, 7989, 1, 1798, 878, 4392, 1, 163589, 3530, 3794, 3923, 2277, 3956, 163588, 47185, 163589, 163588, 10257, 163589, 163588, 25385, 163589, 163588, 2778, 163589, 163586]
232 },
233 "required": {
234 "grammar": {
235 "format": {
236 "type": "sequence",
237 "elements": [
238 {
239 "type": "optional",
240 "content": {
241 "type": "const_string",
242 "value": "<|open|>response<|sep|>"
243 }
244 },
245 {
246 "type": "tag",
247 "begin": "",
248 "content": {
249 "type": "any_text",
250 "excludes": [
251 "<|open|>",
252 "<|close|>",
253 "<|end_of_msg|>"
254 ],
255 "max_tokens": null,
256 "max_chars": null
257 },
258 "end": "<|close|>response<|sep|>"
259 },
260 {
261 "type": "tag",
262 "begin": "<|open|>tools<|sep|>",
263 "content": {
264 "type": "tags_with_separator",
265 "tags": [
266 {
267 "type": "tag",
268 "begin": "<|open|>call tool=\"get_weather\" index=\"",
269 "content": {
270 "type": "sequence",
271 "elements": [
272 {
273 "type": "regex",
274 "pattern": "[1-9][0-9]*"
275 },
276 {
277 "type": "const_string",
278 "value": "\"<|sep|>"
279 },
280 {
281 "type": "or",
282 "elements": [
283 {
284 "type": "tag",
285 "begin": "<|open|>argument key=\"location\" type=\"string\"<|sep|>",
286 "content": {
287 "type": "any_text",
288 "excludes": [
289 "<|close|>argument<|sep|>",
290 "<|close|>call<|sep|>"
291 ],
292 "max_tokens": null,
293 "max_chars": null
294 },
295 "end": "<|close|>argument<|sep|>"
296 },
297 {
298 "type": "tag",
299 "begin": "<|open|>json type=\"object\"<|sep|>",
300 "content": {
301 "type": "json_schema",
302 "json_schema": {
303 "type": "object",
304 "properties": {
305 "location": {
306 "type": "string"
307 }
308 },
309 "required": [
310 "location"
311 ]
312 },
313 "style": "json",
314 "any_order": false,
315 "max_whitespace_cnt": null,
316 "excludes": []
317 },
318 "end": "<|close|>json<|sep|>"
319 }
320 ]
321 }
322 ]
323 },
324 "end": "<|close|>call<|sep|>"
325 },
326 {
327 "type": "tag",
328 "begin": "<|open|>call tool=\"add\" index=\"",
329 "content": {
330 "type": "sequence",
331 "elements": [
332 {
333 "type": "regex",
334 "pattern": "[1-9][0-9]*"
335 },
336 {
337 "type": "const_string",
338 "value": "\"<|sep|>"
339 },
340 {
341 "type": "or",
342 "elements": [
343 {
344 "type": "sequence",
345 "elements": [
346 {
347 "type": "tag",
348 "begin": "<|open|>argument key=\"y\" type=\"number\"<|sep|>",
349 "content": {
350 "type": "json_schema",
351 "json_schema": {
352 "type": "number"
353 },
354 "style": "json",
355 "any_order": false,
356 "max_whitespace_cnt": null,
357 "excludes": []
358 },
359 "end": "<|close|>argument<|sep|>"
360 },
361 {
362 "type": "tag",
363 "begin": "<|open|>argument key=\"x\" type=\"number\"<|sep|>",
364 "content": {
365 "type": "json_schema",
366 "json_schema": {
367 "type": "number"
368 },
369 "style": "json",
370 "any_order": false,
371 "max_whitespace_cnt": null,
372 "excludes": []
373 },
374 "end": "<|close|>argument<|sep|>"
375 },
376 {
377 "type": "tag",
378 "begin": "<|open|>argument key=\"items\" type=\"array\"<|sep|>",
379 "content": {
380 "type": "json_schema",
381 "json_schema": {
382 "type": "array",
383 "items": {
384 "type": "string"
385 }
386 },
387 "style": "json",
388 "any_order": false,
389 "max_whitespace_cnt": null,
390 "excludes": []
391 },
392 "end": "<|close|>argument<|sep|>"
393 }
394 ]
395 },
396 {
397 "type": "tag",
398 "begin": "<|open|>json type=\"object\"<|sep|>",
399 "content": {
400 "type": "json_schema",
401 "json_schema": {
402 "type": "object",
403 "properties": {
404 "y": {
405 "type": "number"
406 },
407 "x": {
408 "type": "number"
409 },
410 "items": {
411 "type": "array",
412 "items": {
413 "type": "string"
414 }
415 }
416 },
417 "required": [
418 "y",
419 "x",
420 "items"
421 ]
422 },
423 "style": "json",
424 "any_order": false,
425 "max_whitespace_cnt": null,
426 "excludes": []
427 },
428 "end": "<|close|>json<|sep|>"
429 }
430 ]
431 }
432 ]
433 },
434 "end": "<|close|>call<|sep|>"
435 }
436 ],
437 "separator": "",
438 "at_least_one": true,
439 "stop_after_first": false
440 },
441 "end": "<|close|>tools<|sep|>"
442 },
443 {
444 "type": "optional",
445 "content": {
446 "type": "const_string",
447 "value": "<|close|>message<|sep|>"
448 }
449 }
450 ]
451 },
452 "coverage": "final_output_only"
453 },
454 "completion": "Need call the weather and add tools.<|close|>think<|sep|><|open|>response<|sep|><|close|>response<|sep|><|open|>tools<|sep|><|open|>call tool=\"get_weather\" index=\"1\"<|sep|><|open|>argument key=\"location\" type=\"string\"<|sep|>Shanghai<|close|>argument<|sep|><|close|>call<|sep|><|open|>call tool=\"add\" index=\"2\"<|sep|><|open|>argument key=\"y\" type=\"number\"<|sep|>1.0<|close|>argument<|sep|><|open|>argument key=\"x\" type=\"number\"<|sep|>2<|close|>argument<|sep|><|open|>argument key=\"items\" type=\"array\"<|sep|>[\"left\",\"right\"]<|close|>argument<|sep|><|close|>call<|sep|><|close|>tools<|sep|><|close|>message<|sep|>",
455 "generation_token_ids": [20082, 2390, 276, 10666, 316, 1239, 7697, 13, 163588, 39964, 163589, 163587, 12092, 163589, 163588, 12092, 163589, 163587, 25385, 163589, 163587, 10257, 4453, 878, 618, 21055, 2800, 1, 4002, 878, 16, 1, 163589, 163587, 47185, 2355, 878, 5791, 1, 1798, 878, 2033, 1, 163589, 2797, 31231, 163588, 47185, 163589, 163588, 10257, 163589, 163587, 10257, 4453, 878, 1210, 1, 4002, 878, 17, 1, 163589, 163587, 47185, 2355, 878, 88, 1, 1798, 878, 10006, 1, 163589, 16, 13, 15, 163588, 47185, 163589, 163587, 47185, 2355, 878, 87, 1, 1798, 878, 10006, 1, 163589, 17, 163588, 47185, 163589, 163587, 47185, 2355, 878, 7989, 1, 1798, 878, 4392, 1, 163589, 3530, 3794, 3923, 2277, 3956, 163588, 47185, 163589, 163588, 10257, 163589, 163588, 25385, 163589, 163588, 2778, 163589, 163586]
456 },
457 "named": {
458 "grammar": {
459 "format": {
460 "type": "sequence",
461 "elements": [
462 {
463 "type": "optional",
464 "content": {
465 "type": "const_string",
466 "value": "<|open|>response<|sep|>"
467 }
468 },
469 {
470 "type": "tag",
471 "begin": "",
472 "content": {
473 "type": "any_text",
474 "excludes": [
475 "<|open|>",
476 "<|close|>",
477 "<|end_of_msg|>"
478 ],
479 "max_tokens": null,
480 "max_chars": null
481 },
482 "end": "<|close|>response<|sep|>"
483 },
484 {
485 "type": "tag",
486 "begin": "<|open|>tools<|sep|>",
487 "content": {
488 "type": "tags_with_separator",
489 "tags": [
490 {
491 "type": "tag",
492 "begin": "<|open|>call tool=\"get_weather\" index=\"",
493 "content": {
494 "type": "sequence",
495 "elements": [
496 {
497 "type": "regex",
498 "pattern": "[1-9][0-9]*"
499 },
500 {
501 "type": "const_string",
502 "value": "\"<|sep|>"
503 },
504 {
505 "type": "or",
506 "elements": [
507 {
508 "type": "tag",
509 "begin": "<|open|>argument key=\"location\" type=\"string\"<|sep|>",
510 "content": {
511 "type": "any_text",
512 "excludes": [
513 "<|close|>argument<|sep|>",
514 "<|close|>call<|sep|>"
515 ],
516 "max_tokens": null,
517 "max_chars": null
518 },
519 "end": "<|close|>argument<|sep|>"
520 },
521 {
522 "type": "tag",
523 "begin": "<|open|>json type=\"object\"<|sep|>",
524 "content": {
525 "type": "json_schema",
526 "json_schema": {
527 "type": "object",
528 "properties": {
529 "location": {
530 "type": "string"
531 }
532 },
533 "required": [
534 "location"
535 ]
536 },
537 "style": "json",
538 "any_order": false,
539 "max_whitespace_cnt": null,
540 "excludes": []
541 },
542 "end": "<|close|>json<|sep|>"
543 }
544 ]
545 }
546 ]
547 },
548 "end": "<|close|>call<|sep|>"
549 }
550 ],
551 "separator": "",
552 "at_least_one": true,
553 "stop_after_first": false
554 },
555 "end": "<|close|>tools<|sep|>"
556 },
557 {
558 "type": "optional",
559 "content": {
560 "type": "const_string",
561 "value": "<|close|>message<|sep|>"
562 }
563 }
564 ]
565 },
566 "coverage": "final_output_only"
567 },
568 "completion": "Need call the weather and add tools.<|close|>think<|sep|><|open|>response<|sep|><|close|>response<|sep|><|open|>tools<|sep|><|open|>call tool=\"get_weather\" index=\"1\"<|sep|><|open|>argument key=\"location\" type=\"string\"<|sep|>Shanghai<|close|>argument<|sep|><|close|>call<|sep|><|close|>tools<|sep|><|close|>message<|sep|>",
569 "generation_token_ids": [20082, 2390, 276, 10666, 316, 1239, 7697, 13, 163588, 39964, 163589, 163587, 12092, 163589, 163588, 12092, 163589, 163587, 25385, 163589, 163587, 10257, 4453, 878, 618, 21055, 2800, 1, 4002, 878, 16, 1, 163589, 163587, 47185, 2355, 878, 5791, 1, 1798, 878, 2033, 1, 163589, 2797, 31231, 163588, 47185, 163589, 163588, 10257, 163589, 163588, 25385, 163589, 163588, 2778, 163589, 163586]
570 }
571 }
572 }