lvwerra HF Staff commited on
Commit
1621d0d
·
verified ·
1 Parent(s): 3c4420a

Upload tokenizer

Browse files
Files changed (4) hide show
  1. README.md +199 -0
  2. chat_template.jinja +4 -0
  3. tokenizer.json +481 -0
  4. tokenizer_config.json +11 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
chat_template.jinja ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {% for message in messages %}<|im_start|>{% if message['role'] == 'system' %}<|system|>{% elif message['role'] == 'user' %}<|user|>{% elif message['role'] == 'assistant' %}<|assistant|>{% endif %}
2
+ {{ message['content'] }}<|im_end|>
3
+ {% endfor %}{% if add_generation_prompt %}<|im_start|><|assistant|>
4
+ {% endif %}
tokenizer.json ADDED
@@ -0,0 +1,481 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 98,
8
+ "content": "<|pad|>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 99,
17
+ "content": "<|unk|>",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 100,
26
+ "content": "<|begin_of_text|>",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 101,
35
+ "content": "<|end_of_text|>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 102,
44
+ "content": "<|im_start|>",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 103,
53
+ "content": "<|im_end|>",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ },
60
+ {
61
+ "id": 104,
62
+ "content": "<|system|>",
63
+ "single_word": false,
64
+ "lstrip": false,
65
+ "rstrip": false,
66
+ "normalized": false,
67
+ "special": true
68
+ },
69
+ {
70
+ "id": 105,
71
+ "content": "<|user|>",
72
+ "single_word": false,
73
+ "lstrip": false,
74
+ "rstrip": false,
75
+ "normalized": false,
76
+ "special": true
77
+ },
78
+ {
79
+ "id": 106,
80
+ "content": "<|assistant|>",
81
+ "single_word": false,
82
+ "lstrip": false,
83
+ "rstrip": false,
84
+ "normalized": false,
85
+ "special": true
86
+ },
87
+ {
88
+ "id": 107,
89
+ "content": "<|tool_call|>",
90
+ "single_word": false,
91
+ "lstrip": false,
92
+ "rstrip": false,
93
+ "normalized": false,
94
+ "special": true
95
+ },
96
+ {
97
+ "id": 108,
98
+ "content": "<|tool_response|>",
99
+ "single_word": false,
100
+ "lstrip": false,
101
+ "rstrip": false,
102
+ "normalized": false,
103
+ "special": true
104
+ },
105
+ {
106
+ "id": 109,
107
+ "content": "<think>",
108
+ "single_word": false,
109
+ "lstrip": false,
110
+ "rstrip": false,
111
+ "normalized": false,
112
+ "special": true
113
+ },
114
+ {
115
+ "id": 110,
116
+ "content": "</think>",
117
+ "single_word": false,
118
+ "lstrip": false,
119
+ "rstrip": false,
120
+ "normalized": false,
121
+ "special": true
122
+ },
123
+ {
124
+ "id": 111,
125
+ "content": "<|reserved_0|>",
126
+ "single_word": false,
127
+ "lstrip": false,
128
+ "rstrip": false,
129
+ "normalized": false,
130
+ "special": true
131
+ },
132
+ {
133
+ "id": 112,
134
+ "content": "<|reserved_1|>",
135
+ "single_word": false,
136
+ "lstrip": false,
137
+ "rstrip": false,
138
+ "normalized": false,
139
+ "special": true
140
+ },
141
+ {
142
+ "id": 113,
143
+ "content": "<|reserved_2|>",
144
+ "single_word": false,
145
+ "lstrip": false,
146
+ "rstrip": false,
147
+ "normalized": false,
148
+ "special": true
149
+ },
150
+ {
151
+ "id": 114,
152
+ "content": "<|reserved_3|>",
153
+ "single_word": false,
154
+ "lstrip": false,
155
+ "rstrip": false,
156
+ "normalized": false,
157
+ "special": true
158
+ },
159
+ {
160
+ "id": 115,
161
+ "content": "<|reserved_4|>",
162
+ "single_word": false,
163
+ "lstrip": false,
164
+ "rstrip": false,
165
+ "normalized": false,
166
+ "special": true
167
+ },
168
+ {
169
+ "id": 116,
170
+ "content": "<|reserved_5|>",
171
+ "single_word": false,
172
+ "lstrip": false,
173
+ "rstrip": false,
174
+ "normalized": false,
175
+ "special": true
176
+ },
177
+ {
178
+ "id": 117,
179
+ "content": "<|reserved_6|>",
180
+ "single_word": false,
181
+ "lstrip": false,
182
+ "rstrip": false,
183
+ "normalized": false,
184
+ "special": true
185
+ },
186
+ {
187
+ "id": 118,
188
+ "content": "<|reserved_7|>",
189
+ "single_word": false,
190
+ "lstrip": false,
191
+ "rstrip": false,
192
+ "normalized": false,
193
+ "special": true
194
+ },
195
+ {
196
+ "id": 119,
197
+ "content": "<|reserved_8|>",
198
+ "single_word": false,
199
+ "lstrip": false,
200
+ "rstrip": false,
201
+ "normalized": false,
202
+ "special": true
203
+ },
204
+ {
205
+ "id": 120,
206
+ "content": "<|reserved_9|>",
207
+ "single_word": false,
208
+ "lstrip": false,
209
+ "rstrip": false,
210
+ "normalized": false,
211
+ "special": true
212
+ },
213
+ {
214
+ "id": 121,
215
+ "content": "<|reserved_10|>",
216
+ "single_word": false,
217
+ "lstrip": false,
218
+ "rstrip": false,
219
+ "normalized": false,
220
+ "special": true
221
+ },
222
+ {
223
+ "id": 122,
224
+ "content": "<|reserved_11|>",
225
+ "single_word": false,
226
+ "lstrip": false,
227
+ "rstrip": false,
228
+ "normalized": false,
229
+ "special": true
230
+ },
231
+ {
232
+ "id": 123,
233
+ "content": "<|reserved_12|>",
234
+ "single_word": false,
235
+ "lstrip": false,
236
+ "rstrip": false,
237
+ "normalized": false,
238
+ "special": true
239
+ },
240
+ {
241
+ "id": 124,
242
+ "content": "<|reserved_13|>",
243
+ "single_word": false,
244
+ "lstrip": false,
245
+ "rstrip": false,
246
+ "normalized": false,
247
+ "special": true
248
+ },
249
+ {
250
+ "id": 125,
251
+ "content": "<|reserved_14|>",
252
+ "single_word": false,
253
+ "lstrip": false,
254
+ "rstrip": false,
255
+ "normalized": false,
256
+ "special": true
257
+ },
258
+ {
259
+ "id": 126,
260
+ "content": "<|reserved_15|>",
261
+ "single_word": false,
262
+ "lstrip": false,
263
+ "rstrip": false,
264
+ "normalized": false,
265
+ "special": true
266
+ },
267
+ {
268
+ "id": 127,
269
+ "content": "<|reserved_16|>",
270
+ "single_word": false,
271
+ "lstrip": false,
272
+ "rstrip": false,
273
+ "normalized": false,
274
+ "special": true
275
+ }
276
+ ],
277
+ "normalizer": {
278
+ "type": "Sequence",
279
+ "normalizers": [
280
+ {
281
+ "type": "Replace",
282
+ "pattern": {
283
+ "Regex": "\\r\\n"
284
+ },
285
+ "content": "\n"
286
+ },
287
+ {
288
+ "type": "Replace",
289
+ "pattern": {
290
+ "Regex": "\\r"
291
+ },
292
+ "content": "\n"
293
+ },
294
+ {
295
+ "type": "Replace",
296
+ "pattern": {
297
+ "String": " "
298
+ },
299
+ "content": " "
300
+ }
301
+ ]
302
+ },
303
+ "pre_tokenizer": {
304
+ "type": "Split",
305
+ "pattern": {
306
+ "Regex": "[\\s\\S]"
307
+ },
308
+ "behavior": "Isolated",
309
+ "invert": false
310
+ },
311
+ "post_processor": {
312
+ "type": "TemplateProcessing",
313
+ "single": [
314
+ {
315
+ "Sequence": {
316
+ "id": "A",
317
+ "type_id": 0
318
+ }
319
+ }
320
+ ],
321
+ "pair": [
322
+ {
323
+ "Sequence": {
324
+ "id": "A",
325
+ "type_id": 0
326
+ }
327
+ },
328
+ {
329
+ "Sequence": {
330
+ "id": "B",
331
+ "type_id": 1
332
+ }
333
+ }
334
+ ],
335
+ "special_tokens": {}
336
+ },
337
+ "decoder": {
338
+ "type": "Fuse"
339
+ },
340
+ "model": {
341
+ "type": "BPE",
342
+ "dropout": null,
343
+ "unk_token": "<|unk|>",
344
+ "continuing_subword_prefix": null,
345
+ "end_of_word_suffix": null,
346
+ "fuse_unk": false,
347
+ "byte_fallback": false,
348
+ "ignore_merges": false,
349
+ "vocab": {
350
+ " ": 0,
351
+ "!": 1,
352
+ "\"": 2,
353
+ "#": 3,
354
+ "$": 4,
355
+ "%": 5,
356
+ "&": 6,
357
+ "'": 7,
358
+ "(": 8,
359
+ ")": 9,
360
+ "*": 10,
361
+ "+": 11,
362
+ ",": 12,
363
+ "-": 13,
364
+ ".": 14,
365
+ "/": 15,
366
+ "0": 16,
367
+ "1": 17,
368
+ "2": 18,
369
+ "3": 19,
370
+ "4": 20,
371
+ "5": 21,
372
+ "6": 22,
373
+ "7": 23,
374
+ "8": 24,
375
+ "9": 25,
376
+ ":": 26,
377
+ ";": 27,
378
+ "<": 28,
379
+ "=": 29,
380
+ ">": 30,
381
+ "?": 31,
382
+ "@": 32,
383
+ "A": 33,
384
+ "B": 34,
385
+ "C": 35,
386
+ "D": 36,
387
+ "E": 37,
388
+ "F": 38,
389
+ "G": 39,
390
+ "H": 40,
391
+ "I": 41,
392
+ "J": 42,
393
+ "K": 43,
394
+ "L": 44,
395
+ "M": 45,
396
+ "N": 46,
397
+ "O": 47,
398
+ "P": 48,
399
+ "Q": 49,
400
+ "R": 50,
401
+ "S": 51,
402
+ "T": 52,
403
+ "U": 53,
404
+ "V": 54,
405
+ "W": 55,
406
+ "X": 56,
407
+ "Y": 57,
408
+ "Z": 58,
409
+ "[": 59,
410
+ "\\": 60,
411
+ "]": 61,
412
+ "^": 62,
413
+ "_": 63,
414
+ "`": 64,
415
+ "a": 65,
416
+ "b": 66,
417
+ "c": 67,
418
+ "d": 68,
419
+ "e": 69,
420
+ "f": 70,
421
+ "g": 71,
422
+ "h": 72,
423
+ "i": 73,
424
+ "j": 74,
425
+ "k": 75,
426
+ "l": 76,
427
+ "m": 77,
428
+ "n": 78,
429
+ "o": 79,
430
+ "p": 80,
431
+ "q": 81,
432
+ "r": 82,
433
+ "s": 83,
434
+ "t": 84,
435
+ "u": 85,
436
+ "v": 86,
437
+ "w": 87,
438
+ "x": 88,
439
+ "y": 89,
440
+ "z": 90,
441
+ "{": 91,
442
+ "|": 92,
443
+ "}": 93,
444
+ "~": 94,
445
+ "\n": 95,
446
+ "\t": 96,
447
+ "\r": 97,
448
+ "<|pad|>": 98,
449
+ "<|unk|>": 99,
450
+ "<|begin_of_text|>": 100,
451
+ "<|end_of_text|>": 101,
452
+ "<|im_start|>": 102,
453
+ "<|im_end|>": 103,
454
+ "<|system|>": 104,
455
+ "<|user|>": 105,
456
+ "<|assistant|>": 106,
457
+ "<|tool_call|>": 107,
458
+ "<|tool_response|>": 108,
459
+ "<think>": 109,
460
+ "</think>": 110,
461
+ "<|reserved_0|>": 111,
462
+ "<|reserved_1|>": 112,
463
+ "<|reserved_2|>": 113,
464
+ "<|reserved_3|>": 114,
465
+ "<|reserved_4|>": 115,
466
+ "<|reserved_5|>": 116,
467
+ "<|reserved_6|>": 117,
468
+ "<|reserved_7|>": 118,
469
+ "<|reserved_8|>": 119,
470
+ "<|reserved_9|>": 120,
471
+ "<|reserved_10|>": 121,
472
+ "<|reserved_11|>": 122,
473
+ "<|reserved_12|>": 123,
474
+ "<|reserved_13|>": 124,
475
+ "<|reserved_14|>": 125,
476
+ "<|reserved_15|>": 126,
477
+ "<|reserved_16|>": 127
478
+ },
479
+ "merges": []
480
+ }
481
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|end_of_text|>",
6
+ "is_local": true,
7
+ "model_max_length": 1000000000000000019884624838656,
8
+ "pad_token": "<|pad|>",
9
+ "tokenizer_class": "TokenizersBackend",
10
+ "unk_token": "<|unk|>"
11
+ }