teknium commited on
Commit
714ffdf
1 Parent(s): 058626b

Upload 3 files

Browse files
Files changed (3) hide show
  1. special_tokens_map.json +2 -21
  2. tokenizer.json +10 -298
  3. tokenizer_config.json +11 -275
special_tokens_map.json CHANGED
@@ -1,23 +1,4 @@
1
  {
2
- "bos_token": {
3
- "content": "<|begin_of_text|>",
4
- "lstrip": false,
5
- "normalized": false,
6
- "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": "<|end_of_text|>",
18
- "lstrip": false,
19
- "normalized": false,
20
- "rstrip": false,
21
- "single_word": false
22
- }
23
  }
 
1
  {
2
+ "bos_token": "<|begin_of_text|>",
3
+ "eos_token": "<|im_end|>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  }
tokenizer.json CHANGED
@@ -50,7 +50,7 @@
50
  },
51
  {
52
  "id": 128005,
53
- "content": "<tool_response>",
54
  "single_word": false,
55
  "lstrip": false,
56
  "rstrip": false,
@@ -86,7 +86,7 @@
86
  },
87
  {
88
  "id": 128009,
89
- "content": "<|eot_id>",
90
  "single_word": false,
91
  "lstrip": false,
92
  "rstrip": false,
@@ -122,39 +122,39 @@
122
  },
123
  {
124
  "id": 128013,
125
- "content": "<|reserved_special_token_8|>",
126
  "single_word": false,
127
  "lstrip": false,
128
  "rstrip": false,
129
  "normalized": false,
130
- "special": true
131
  },
132
  {
133
  "id": 128014,
134
- "content": "<|reserved_special_token_9|>",
135
  "single_word": false,
136
  "lstrip": false,
137
  "rstrip": false,
138
  "normalized": false,
139
- "special": true
140
  },
141
  {
142
  "id": 128015,
143
- "content": "<|reserved_special_token_10|>",
144
  "single_word": false,
145
  "lstrip": false,
146
  "rstrip": false,
147
  "normalized": false,
148
- "special": true
149
  },
150
  {
151
  "id": 128016,
152
- "content": "<|reserved_special_token_11|>",
153
  "single_word": false,
154
  "lstrip": false,
155
  "rstrip": false,
156
  "normalized": false,
157
- "special": true
158
  },
159
  {
160
  "id": 128017,
@@ -2306,294 +2306,6 @@
2306
  "rstrip": false,
2307
  "normalized": false,
2308
  "special": true
2309
- },
2310
- {
2311
- "id": 128256,
2312
- "content": "<|eot_id|>",
2313
- "single_word": false,
2314
- "lstrip": false,
2315
- "rstrip": false,
2316
- "normalized": false,
2317
- "special": true
2318
- },
2319
- {
2320
- "id": 128257,
2321
- "content": "<|reserved_special_token_251|>",
2322
- "single_word": false,
2323
- "lstrip": false,
2324
- "rstrip": false,
2325
- "normalized": false,
2326
- "special": true
2327
- },
2328
- {
2329
- "id": 128258,
2330
- "content": "<|reserved_special_token_252|>",
2331
- "single_word": false,
2332
- "lstrip": false,
2333
- "rstrip": false,
2334
- "normalized": false,
2335
- "special": true
2336
- },
2337
- {
2338
- "id": 128259,
2339
- "content": "<|reserved_special_token_253|>",
2340
- "single_word": false,
2341
- "lstrip": false,
2342
- "rstrip": false,
2343
- "normalized": false,
2344
- "special": true
2345
- },
2346
- {
2347
- "id": 128260,
2348
- "content": "<|reserved_special_token_254|>",
2349
- "single_word": false,
2350
- "lstrip": false,
2351
- "rstrip": false,
2352
- "normalized": false,
2353
- "special": true
2354
- },
2355
- {
2356
- "id": 128261,
2357
- "content": "<|reserved_special_token_255|>",
2358
- "single_word": false,
2359
- "lstrip": false,
2360
- "rstrip": false,
2361
- "normalized": false,
2362
- "special": true
2363
- },
2364
- {
2365
- "id": 128262,
2366
- "content": "<|reserved_special_token_256|>",
2367
- "single_word": false,
2368
- "lstrip": false,
2369
- "rstrip": false,
2370
- "normalized": false,
2371
- "special": true
2372
- },
2373
- {
2374
- "id": 128263,
2375
- "content": "<|reserved_special_token_257|>",
2376
- "single_word": false,
2377
- "lstrip": false,
2378
- "rstrip": false,
2379
- "normalized": false,
2380
- "special": true
2381
- },
2382
- {
2383
- "id": 128264,
2384
- "content": "<|reserved_special_token_258|>",
2385
- "single_word": false,
2386
- "lstrip": false,
2387
- "rstrip": false,
2388
- "normalized": false,
2389
- "special": true
2390
- },
2391
- {
2392
- "id": 128265,
2393
- "content": "<|reserved_special_token_259|>",
2394
- "single_word": false,
2395
- "lstrip": false,
2396
- "rstrip": false,
2397
- "normalized": false,
2398
- "special": true
2399
- },
2400
- {
2401
- "id": 128266,
2402
- "content": "<|reserved_special_token_260|>",
2403
- "single_word": false,
2404
- "lstrip": false,
2405
- "rstrip": false,
2406
- "normalized": false,
2407
- "special": true
2408
- },
2409
- {
2410
- "id": 128267,
2411
- "content": "<|reserved_special_token_261|>",
2412
- "single_word": false,
2413
- "lstrip": false,
2414
- "rstrip": false,
2415
- "normalized": false,
2416
- "special": true
2417
- },
2418
- {
2419
- "id": 128268,
2420
- "content": "<|reserved_special_token_262|>",
2421
- "single_word": false,
2422
- "lstrip": false,
2423
- "rstrip": false,
2424
- "normalized": false,
2425
- "special": true
2426
- },
2427
- {
2428
- "id": 128269,
2429
- "content": "<|reserved_special_token_262|>",
2430
- "single_word": false,
2431
- "lstrip": false,
2432
- "rstrip": false,
2433
- "normalized": false,
2434
- "special": true
2435
- },
2436
- {
2437
- "id": 128270,
2438
- "content": "<|reserved_special_token_263|>",
2439
- "single_word": false,
2440
- "lstrip": false,
2441
- "rstrip": false,
2442
- "normalized": false,
2443
- "special": true
2444
- },
2445
- {
2446
- "id": 128271,
2447
- "content": "<|reserved_special_token_264|>",
2448
- "single_word": false,
2449
- "lstrip": false,
2450
- "rstrip": false,
2451
- "normalized": false,
2452
- "special": true
2453
- },
2454
- {
2455
- "id": 128272,
2456
- "content": "<|reserved_special_token_265|>",
2457
- "single_word": false,
2458
- "lstrip": false,
2459
- "rstrip": false,
2460
- "normalized": false,
2461
- "special": true
2462
- },
2463
- {
2464
- "id": 128273,
2465
- "content": "<|reserved_special_token_266|>",
2466
- "single_word": false,
2467
- "lstrip": false,
2468
- "rstrip": false,
2469
- "normalized": false,
2470
- "special": true
2471
- },
2472
- {
2473
- "id": 128274,
2474
- "content": "<|reserved_special_token_267|>",
2475
- "single_word": false,
2476
- "lstrip": false,
2477
- "rstrip": false,
2478
- "normalized": false,
2479
- "special": true
2480
- },
2481
- {
2482
- "id": 128275,
2483
- "content": "<|reserved_special_token_268|>",
2484
- "single_word": false,
2485
- "lstrip": false,
2486
- "rstrip": false,
2487
- "normalized": false,
2488
- "special": true
2489
- },
2490
- {
2491
- "id": 128276,
2492
- "content": "<|reserved_special_token_269|>",
2493
- "single_word": false,
2494
- "lstrip": false,
2495
- "rstrip": false,
2496
- "normalized": false,
2497
- "special": true
2498
- },
2499
- {
2500
- "id": 128277,
2501
- "content": "<|reserved_special_token_270|>",
2502
- "single_word": false,
2503
- "lstrip": false,
2504
- "rstrip": false,
2505
- "normalized": false,
2506
- "special": true
2507
- },
2508
- {
2509
- "id": 128278,
2510
- "content": "<|reserved_special_token_271|>",
2511
- "single_word": false,
2512
- "lstrip": false,
2513
- "rstrip": false,
2514
- "normalized": false,
2515
- "special": true
2516
- },
2517
- {
2518
- "id": 128279,
2519
- "content": "<|reserved_special_token_272|>",
2520
- "single_word": false,
2521
- "lstrip": false,
2522
- "rstrip": false,
2523
- "normalized": false,
2524
- "special": true
2525
- },
2526
- {
2527
- "id": 128280,
2528
- "content": "<|reserved_special_token_273|>",
2529
- "single_word": false,
2530
- "lstrip": false,
2531
- "rstrip": false,
2532
- "normalized": false,
2533
- "special": true
2534
- },
2535
- {
2536
- "id": 128281,
2537
- "content": "<|reserved_special_token_274|>",
2538
- "single_word": false,
2539
- "lstrip": false,
2540
- "rstrip": false,
2541
- "normalized": false,
2542
- "special": true
2543
- },
2544
- {
2545
- "id": 128282,
2546
- "content": "<|reserved_special_token_275|>",
2547
- "single_word": false,
2548
- "lstrip": false,
2549
- "rstrip": false,
2550
- "normalized": false,
2551
- "special": true
2552
- },
2553
- {
2554
- "id": 128283,
2555
- "content": "<|reserved_special_token_276|>",
2556
- "single_word": false,
2557
- "lstrip": false,
2558
- "rstrip": false,
2559
- "normalized": false,
2560
- "special": true
2561
- },
2562
- {
2563
- "id": 128284,
2564
- "content": "<|reserved_special_token_277|>",
2565
- "single_word": false,
2566
- "lstrip": false,
2567
- "rstrip": false,
2568
- "normalized": false,
2569
- "special": true
2570
- },
2571
- {
2572
- "id": 128285,
2573
- "content": "<|reserved_special_token_278|>",
2574
- "single_word": false,
2575
- "lstrip": false,
2576
- "rstrip": false,
2577
- "normalized": false,
2578
- "special": true
2579
- },
2580
- {
2581
- "id": 128286,
2582
- "content": "<|reserved_special_token_279|>",
2583
- "single_word": false,
2584
- "lstrip": false,
2585
- "rstrip": false,
2586
- "normalized": false,
2587
- "special": true
2588
- },
2589
- {
2590
- "id": 128287,
2591
- "content": "<|reserved_special_token_280|>",
2592
- "single_word": false,
2593
- "lstrip": false,
2594
- "rstrip": false,
2595
- "normalized": false,
2596
- "special": true
2597
  }
2598
  ],
2599
  "normalizer": null,
 
50
  },
51
  {
52
  "id": 128005,
53
+ "content": "<|tool_response|>",
54
  "single_word": false,
55
  "lstrip": false,
56
  "rstrip": false,
 
86
  },
87
  {
88
  "id": 128009,
89
+ "content": "<|eot_id|>",
90
  "single_word": false,
91
  "lstrip": false,
92
  "rstrip": false,
 
122
  },
123
  {
124
  "id": 128013,
125
+ "content": "<schema>",
126
  "single_word": false,
127
  "lstrip": false,
128
  "rstrip": false,
129
  "normalized": false,
130
+ "special": false
131
  },
132
  {
133
  "id": 128014,
134
+ "content": "</schema>",
135
  "single_word": false,
136
  "lstrip": false,
137
  "rstrip": false,
138
  "normalized": false,
139
+ "special": false
140
  },
141
  {
142
  "id": 128015,
143
+ "content": "<scratch_pad>",
144
  "single_word": false,
145
  "lstrip": false,
146
  "rstrip": false,
147
  "normalized": false,
148
+ "special": false
149
  },
150
  {
151
  "id": 128016,
152
+ "content": "</scratch_pad>",
153
  "single_word": false,
154
  "lstrip": false,
155
  "rstrip": false,
156
  "normalized": false,
157
+ "special": false
158
  },
159
  {
160
  "id": 128017,
 
2306
  "rstrip": false,
2307
  "normalized": false,
2308
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2309
  }
2310
  ],
2311
  "normalizer": null,
tokenizer_config.json CHANGED
@@ -73,7 +73,7 @@
73
  "special": false
74
  },
75
  "128009": {
76
- "content": "<|eot_id>",
77
  "lstrip": false,
78
  "normalized": false,
79
  "rstrip": false,
@@ -105,36 +105,36 @@
105
  "special": false
106
  },
107
  "128013": {
108
- "content": "<|reserved_special_token_8|>",
109
  "lstrip": false,
110
  "normalized": false,
111
  "rstrip": false,
112
  "single_word": false,
113
- "special": true
114
  },
115
  "128014": {
116
- "content": "<|reserved_special_token_9|>",
117
  "lstrip": false,
118
  "normalized": false,
119
  "rstrip": false,
120
  "single_word": false,
121
- "special": true
122
  },
123
  "128015": {
124
- "content": "<|reserved_special_token_10|>",
125
  "lstrip": false,
126
  "normalized": false,
127
  "rstrip": false,
128
  "single_word": false,
129
- "special": true
130
  },
131
  "128016": {
132
- "content": "<|reserved_special_token_11|>",
133
  "lstrip": false,
134
  "normalized": false,
135
  "rstrip": false,
136
  "single_word": false,
137
- "special": true
138
  },
139
  "128017": {
140
  "content": "<|reserved_special_token_12|>",
@@ -2047,275 +2047,11 @@
2047
  "rstrip": false,
2048
  "single_word": false,
2049
  "special": true
2050
- },
2051
- "128256": {
2052
- "content": "<|eot_id|>",
2053
- "lstrip": false,
2054
- "normalized": false,
2055
- "rstrip": false,
2056
- "single_word": false,
2057
- "special": true
2058
- },
2059
- "128257": {
2060
- "content": "<|reserved_special_token_251|>",
2061
- "single_word": false,
2062
- "lstrip": false,
2063
- "rstrip": false,
2064
- "normalized": false,
2065
- "special": true
2066
- },
2067
- "128258": {
2068
- "content": "<|reserved_special_token_252|>",
2069
- "single_word": false,
2070
- "lstrip": false,
2071
- "rstrip": false,
2072
- "normalized": false,
2073
- "special": true
2074
- },
2075
- "128259": {
2076
- "content": "<|reserved_special_token_253|>",
2077
- "single_word": false,
2078
- "lstrip": false,
2079
- "rstrip": false,
2080
- "normalized": false,
2081
- "special": true
2082
- },
2083
- "128260": {
2084
- "content": "<|reserved_special_token_254|>",
2085
- "single_word": false,
2086
- "lstrip": false,
2087
- "rstrip": false,
2088
- "normalized": false,
2089
- "special": true
2090
- },
2091
- "128261": {
2092
- "content": "<|reserved_special_token_255|>",
2093
- "single_word": false,
2094
- "lstrip": false,
2095
- "rstrip": false,
2096
- "normalized": false,
2097
- "special": true
2098
- },
2099
- "128262": {
2100
- "content": "<|reserved_special_token_256|>",
2101
- "single_word": false,
2102
- "lstrip": false,
2103
- "rstrip": false,
2104
- "normalized": false,
2105
- "special": true
2106
- },
2107
- "128263": {
2108
- "content": "<|reserved_special_token_257|>",
2109
- "single_word": false,
2110
- "lstrip": false,
2111
- "rstrip": false,
2112
- "normalized": false,
2113
- "special": true
2114
- },
2115
- "128264": {
2116
- "content": "<|reserved_special_token_258|>",
2117
- "single_word": false,
2118
- "lstrip": false,
2119
- "rstrip": false,
2120
- "normalized": false,
2121
- "special": true
2122
- },
2123
- "128265": {
2124
- "content": "<|reserved_special_token_259|>",
2125
- "single_word": false,
2126
- "lstrip": false,
2127
- "rstrip": false,
2128
- "normalized": false,
2129
- "special": true
2130
- },
2131
- "128266": {
2132
- "content": "<|reserved_special_token_260|>",
2133
- "single_word": false,
2134
- "lstrip": false,
2135
- "rstrip": false,
2136
- "normalized": false,
2137
- "special": true
2138
- },
2139
- "128267": {
2140
- "content": "<|reserved_special_token_261|>",
2141
- "single_word": false,
2142
- "lstrip": false,
2143
- "rstrip": false,
2144
- "normalized": false,
2145
- "special": true
2146
- },
2147
- "128268": {
2148
- "content": "<|reserved_special_token_262|>",
2149
- "single_word": false,
2150
- "lstrip": false,
2151
- "rstrip": false,
2152
- "normalized": false,
2153
- "special": true
2154
- },
2155
- "128269": {
2156
- "content": "<|reserved_special_token_263|>",
2157
- "single_word": false,
2158
- "lstrip": false,
2159
- "rstrip": false,
2160
- "normalized": false,
2161
- "special": true
2162
- },
2163
- "128270": {
2164
- "content": "<|reserved_special_token_264|>",
2165
- "single_word": false,
2166
- "lstrip": false,
2167
- "rstrip": false,
2168
- "normalized": false,
2169
- "special": true
2170
- },
2171
- "128271": {
2172
- "content": "<|reserved_special_token_265|>",
2173
- "single_word": false,
2174
- "lstrip": false,
2175
- "rstrip": false,
2176
- "normalized": false,
2177
- "special": true
2178
- },
2179
- "128272": {
2180
- "content": "<|reserved_special_token_266|>",
2181
- "single_word": false,
2182
- "lstrip": false,
2183
- "rstrip": false,
2184
- "normalized": false,
2185
- "special": true
2186
- },
2187
- "128273": {
2188
- "content": "<|reserved_special_token_267|>",
2189
- "single_word": false,
2190
- "lstrip": false,
2191
- "rstrip": false,
2192
- "normalized": false,
2193
- "special": true
2194
- },
2195
- "128274": {
2196
- "content": "<|reserved_special_token_268|>",
2197
- "single_word": false,
2198
- "lstrip": false,
2199
- "rstrip": false,
2200
- "normalized": false,
2201
- "special": true
2202
- },
2203
- "128275": {
2204
- "content": "<|reserved_special_token_269|>",
2205
- "single_word": false,
2206
- "lstrip": false,
2207
- "rstrip": false,
2208
- "normalized": false,
2209
- "special": true
2210
- },
2211
- "128276": {
2212
- "content": "<|reserved_special_token_270|>",
2213
- "single_word": false,
2214
- "lstrip": false,
2215
- "rstrip": false,
2216
- "normalized": false,
2217
- "special": true
2218
- },
2219
- "128277": {
2220
- "content": "<|reserved_special_token_271|>",
2221
- "single_word": false,
2222
- "lstrip": false,
2223
- "rstrip": false,
2224
- "normalized": false,
2225
- "special": true
2226
- },
2227
- "128278": {
2228
- "content": "<|reserved_special_token_272|>",
2229
- "single_word": false,
2230
- "lstrip": false,
2231
- "rstrip": false,
2232
- "normalized": false,
2233
- "special": true
2234
- },
2235
- "128279": {
2236
- "content": "<|reserved_special_token_273|>",
2237
- "single_word": false,
2238
- "lstrip": false,
2239
- "rstrip": false,
2240
- "normalized": false,
2241
- "special": true
2242
- },
2243
- "128280": {
2244
- "content": "<|reserved_special_token_274|>",
2245
- "single_word": false,
2246
- "lstrip": false,
2247
- "rstrip": false,
2248
- "normalized": false,
2249
- "special": true
2250
- },
2251
- "128281": {
2252
- "content": "<|reserved_special_token_275|>",
2253
- "single_word": false,
2254
- "lstrip": false,
2255
- "rstrip": false,
2256
- "normalized": false,
2257
- "special": true
2258
- },
2259
- "128282": {
2260
- "content": "<|reserved_special_token_276|>",
2261
- "single_word": false,
2262
- "lstrip": false,
2263
- "rstrip": false,
2264
- "normalized": false,
2265
- "special": true
2266
- },
2267
- "128283": {
2268
- "content": "<|reserved_special_token_277|>",
2269
- "single_word": false,
2270
- "lstrip": false,
2271
- "rstrip": false,
2272
- "normalized": false,
2273
- "special": true
2274
- },
2275
- "128284": {
2276
- "content": "<|reserved_special_token_278|>",
2277
- "single_word": false,
2278
- "lstrip": false,
2279
- "rstrip": false,
2280
- "normalized": false,
2281
- "special": true
2282
- },
2283
- "128285": {
2284
- "content": "<|reserved_special_token_279|>",
2285
- "single_word": false,
2286
- "lstrip": false,
2287
- "rstrip": false,
2288
- "normalized": false,
2289
- "special": true
2290
- },
2291
- "128286": {
2292
- "content": "<|reserved_special_token_280|>",
2293
- "single_word": false,
2294
- "lstrip": false,
2295
- "rstrip": false,
2296
- "normalized": false,
2297
- "special": true
2298
- },
2299
- "128287": {
2300
- "content": "<|reserved_special_token_281|>",
2301
- "single_word": false,
2302
- "lstrip": false,
2303
- "rstrip": false,
2304
- "normalized": false,
2305
- "special": true
2306
  }
2307
  },
2308
  "bos_token": "<|begin_of_text|>",
2309
- "chat_template": [
2310
- {
2311
- "name": "default",
2312
- "template": "{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
2313
- },
2314
- {
2315
- "name": "tool_use",
2316
- "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{{- \"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\": {\"arguments\": {\"title\": \"Arguments\", \"type\": \"object\"}, \"name\": {\"title\": \"Name\", \"type\": \"string\"}}, \"required\": [\"arguments\", \"name\"], \"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{{- '{\"arguments\": <args-dict>, \"name\": <function-name>}\n' }}\n{{- '</tool_call><|im_end|>' }}\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<tool_call>\\n' }}\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 {{- '{ ' }}\n {%- if tool_call.arguments is defined %}\n {{- '\"arguments\": ' }}\n {{- tool_call.arguments|tojson }}\n {{- ', '}}\n {%- endif %}\n {{- '\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\"}' }}\n {{- '\\n</tool_call> ' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if not message.name is defined %}\n {{- raise_exception(\"Tool response dicts require a 'name' key indicating the name of the called function!\") }}\n {%- endif %}\n {{- '<|im_start|>' + message.role + '\\n<tool_response>\\n' }}\n {{- '{\"name\": \"' }}\n {{- message.name }}\n {{- '\", \"content\": ' }}\n {{- message.content|tojson + '}' }}\n {{- '\\n</tool_response> <|im_end|>\\n' }} \n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n"
2317
- }
2318
- ],
2319
  "eos_token": "<|im_end|>",
2320
  "model_input_names": [
2321
  "input_ids",
 
73
  "special": false
74
  },
75
  "128009": {
76
+ "content": "<|eot_id|>",
77
  "lstrip": false,
78
  "normalized": false,
79
  "rstrip": false,
 
105
  "special": false
106
  },
107
  "128013": {
108
+ "content": "<schema>",
109
  "lstrip": false,
110
  "normalized": false,
111
  "rstrip": false,
112
  "single_word": false,
113
+ "special": false
114
  },
115
  "128014": {
116
+ "content": "</schema>",
117
  "lstrip": false,
118
  "normalized": false,
119
  "rstrip": false,
120
  "single_word": false,
121
+ "special": false
122
  },
123
  "128015": {
124
+ "content": "<scratch_pad>",
125
  "lstrip": false,
126
  "normalized": false,
127
  "rstrip": false,
128
  "single_word": false,
129
+ "special": false
130
  },
131
  "128016": {
132
+ "content": "</scratch_pad>",
133
  "lstrip": false,
134
  "normalized": false,
135
  "rstrip": false,
136
  "single_word": false,
137
+ "special": false
138
  },
139
  "128017": {
140
  "content": "<|reserved_special_token_12|>",
 
2047
  "rstrip": false,
2048
  "single_word": false,
2049
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
2053
+ "chat_template": "{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
2054
+ "clean_up_tokenization_spaces": true,
 
 
 
 
 
 
 
 
2055
  "eos_token": "<|im_end|>",
2056
  "model_input_names": [
2057
  "input_ids",