whizzzzkid commited on
Commit
571b4fc
1 Parent(s): a1088b6

Upload tokenizer

Browse files
added_tokens.json CHANGED
@@ -1,3 +1,5 @@
1
  {
2
- "<|end_of_text|>": 100289
 
 
3
  }
 
1
  {
2
+ "</s>": 100290,
3
+ "<s>": 100289,
4
+ "<unk>": 100291
5
  }
special_tokens_map.json CHANGED
@@ -35,28 +35,28 @@
35
  "<|extra0|>"
36
  ],
37
  "bos_token": {
38
- "content": "<|endoftext|>",
39
  "lstrip": false,
40
  "normalized": false,
41
  "rstrip": false,
42
  "single_word": false
43
  },
44
  "eos_token": {
45
- "content": "<|endoftext|>",
46
  "lstrip": false,
47
  "normalized": false,
48
  "rstrip": false,
49
  "single_word": false
50
  },
51
  "pad_token": {
52
- "content": "<|end_of_text|>",
53
  "lstrip": false,
54
  "normalized": false,
55
  "rstrip": false,
56
  "single_word": false
57
  },
58
  "unk_token": {
59
- "content": "<|endoftext|>",
60
  "lstrip": false,
61
  "normalized": false,
62
  "rstrip": false,
 
35
  "<|extra0|>"
36
  ],
37
  "bos_token": {
38
+ "content": "<s>",
39
  "lstrip": false,
40
  "normalized": false,
41
  "rstrip": false,
42
  "single_word": false
43
  },
44
  "eos_token": {
45
+ "content": "</s>",
46
  "lstrip": false,
47
  "normalized": false,
48
  "rstrip": false,
49
  "single_word": false
50
  },
51
  "pad_token": {
52
+ "content": "<|endoftext|>",
53
  "lstrip": false,
54
  "normalized": false,
55
  "rstrip": false,
56
  "single_word": false
57
  },
58
  "unk_token": {
59
+ "content": "<unk>",
60
  "lstrip": false,
61
  "normalized": false,
62
  "rstrip": false,
tokenizer.json CHANGED
@@ -302,7 +302,25 @@
302
  },
303
  {
304
  "id": 100289,
305
- "content": "<|end_of_text|>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  "single_word": false,
307
  "lstrip": false,
308
  "rstrip": false,
 
302
  },
303
  {
304
  "id": 100289,
305
+ "content": "<s>",
306
+ "single_word": false,
307
+ "lstrip": false,
308
+ "rstrip": false,
309
+ "normalized": false,
310
+ "special": true
311
+ },
312
+ {
313
+ "id": 100290,
314
+ "content": "</s>",
315
+ "single_word": false,
316
+ "lstrip": false,
317
+ "rstrip": false,
318
+ "normalized": false,
319
+ "special": true
320
+ },
321
+ {
322
+ "id": 100291,
323
+ "content": "<unk>",
324
  "single_word": false,
325
  "lstrip": false,
326
  "rstrip": false,
tokenizer_config.json CHANGED
@@ -266,7 +266,23 @@
266
  "special": true
267
  },
268
  "100289": {
269
- "content": "<|end_of_text|>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  "lstrip": false,
271
  "normalized": false,
272
  "rstrip": false,
@@ -309,12 +325,12 @@
309
  "<|reg7|>",
310
  "<|extra0|>"
311
  ],
312
- "bos_token": "<|endoftext|>",
313
  "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
314
  "clean_up_tokenization_spaces": true,
315
- "eos_token": "<|endoftext|>",
316
  "model_max_length": 2048,
317
- "pad_token": "<|end_of_text|>",
318
  "tokenizer_class": "GPT2Tokenizer",
319
- "unk_token": "<|endoftext|>"
320
  }
 
266
  "special": true
267
  },
268
  "100289": {
269
+ "content": "<s>",
270
+ "lstrip": false,
271
+ "normalized": false,
272
+ "rstrip": false,
273
+ "single_word": false,
274
+ "special": true
275
+ },
276
+ "100290": {
277
+ "content": "</s>",
278
+ "lstrip": false,
279
+ "normalized": false,
280
+ "rstrip": false,
281
+ "single_word": false,
282
+ "special": true
283
+ },
284
+ "100291": {
285
+ "content": "<unk>",
286
  "lstrip": false,
287
  "normalized": false,
288
  "rstrip": false,
 
325
  "<|reg7|>",
326
  "<|extra0|>"
327
  ],
328
+ "bos_token": "<s>",
329
  "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
330
  "clean_up_tokenization_spaces": true,
331
+ "eos_token": "</s>",
332
  "model_max_length": 2048,
333
+ "pad_token": "<|endoftext|>",
334
  "tokenizer_class": "GPT2Tokenizer",
335
+ "unk_token": "<unk>"
336
  }