Abhaykoul commited on
Commit
8b993bf
1 Parent(s): 292d752
Files changed (3) hide show
  1. special_tokens_map.json +40 -17
  2. tokenizer.json +0 -1
  3. tokenizer_config.json +18 -2
special_tokens_map.json CHANGED
@@ -1,23 +1,46 @@
1
  {
2
  "additional_special_tokens": [
3
- {
4
- "content": "<|im_start|>",
5
- "lstrip": false,
6
- "normalized": false,
7
- "rstrip": false,
8
- "single_word": false
9
- },
10
- {
11
- "content": "<|im_end|>",
12
- "lstrip": false,
13
- "normalized": false,
14
- "rstrip": false,
15
- "single_word": false
16
- }
 
 
 
 
 
17
  ],
18
- "bos_token": "<|im_start|>",
19
- "eos_token": "<|im_end|>",
20
- "pad_token": "<|im_end|>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  "unk_token": {
22
  "content": "<|endoftext|>",
23
  "lstrip": false,
 
1
  {
2
  "additional_special_tokens": [
3
+ "<|endoftext|>",
4
+ "<fim_prefix>",
5
+ "<fim_middle>",
6
+ "<fim_suffix>",
7
+ "<fim_pad>",
8
+ "<filename>",
9
+ "<gh_stars>",
10
+ "<issue_start>",
11
+ "<issue_comment>",
12
+ "<issue_closed>",
13
+ "<jupyter_start>",
14
+ "<jupyter_text>",
15
+ "<jupyter_code>",
16
+ "<jupyter_output>",
17
+ "<empty_output>",
18
+ "<commit_before>",
19
+ "<commit_msg>",
20
+ "<commit_after>",
21
+ "<reponame>"
22
  ],
23
+ "bos_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "eos_token": {
31
+ "content": "<|endoftext|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "pad_token": {
38
+ "content": "<|endoftext|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
  "unk_token": {
45
  "content": "<|endoftext|>",
46
  "lstrip": false,
tokenizer.json CHANGED
@@ -224,7 +224,6 @@
224
  "end_of_word_suffix": null,
225
  "fuse_unk": false,
226
  "byte_fallback": false,
227
- "ignore_merges": false,
228
  "vocab": {
229
  "<|endoftext|>": 0,
230
  "<fim_prefix>": 1,
 
224
  "end_of_word_suffix": null,
225
  "fuse_unk": false,
226
  "byte_fallback": false,
 
227
  "vocab": {
228
  "<|endoftext|>": 0,
229
  "<fim_prefix>": 1,
tokenizer_config.json CHANGED
@@ -152,6 +152,22 @@
152
  "rstrip": false,
153
  "single_word": false,
154
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  }
156
  },
157
  "additional_special_tokens": [
@@ -176,7 +192,7 @@
176
  "<reponame>"
177
  ],
178
  "bos_token": "<|endoftext|>",
179
- "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ 'Question:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'system' %}\n{{ 'System:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Answer:\n' + message['content'] + '\n\n' }}{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ 'Answer:\n' }}{% endif %}{% endfor %}",
180
  "clean_up_tokenization_spaces": true,
181
  "eos_token": "<|endoftext|>",
182
  "model_max_length": 9223372036854775807,
@@ -185,4 +201,4 @@
185
  "tokenizer_class": "GPT2Tokenizer",
186
  "unk_token": "<|endoftext|>",
187
  "vocab_size": 49152
188
- }
 
152
  "rstrip": false,
153
  "single_word": false,
154
  "special": true
155
+ },
156
+ "49152": {
157
+ "content": "<|im_start|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": true
163
+ },
164
+ "49153": {
165
+ "content": "<|im_end|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": true
171
  }
172
  },
173
  "additional_special_tokens": [
 
192
  "<reponame>"
193
  ],
194
  "bos_token": "<|endoftext|>",
195
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\\n' + message['content'] + '<|im_end|>' + '\\n'}}{% endfor %}",
196
  "clean_up_tokenization_spaces": true,
197
  "eos_token": "<|endoftext|>",
198
  "model_max_length": 9223372036854775807,
 
201
  "tokenizer_class": "GPT2Tokenizer",
202
  "unk_token": "<|endoftext|>",
203
  "vocab_size": 49152
204
+ }