Upload tokenizer
Browse files- special_tokens_map.json +33 -18
- tokenizer.json +6 -1
- tokenizer_config.json +0 -4
special_tokens_map.json
CHANGED
@@ -1,23 +1,38 @@
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
17 |
],
|
18 |
-
"bos_token":
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
"unk_token": {
|
22 |
"content": "<|endoftext|>",
|
23 |
"lstrip": false,
|
@@ -25,4 +40,4 @@
|
|
25 |
"rstrip": false,
|
26 |
"single_word": false
|
27 |
}
|
28 |
-
}
|
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
+
"<|endoftext|>",
|
4 |
+
"<|im_start|>",
|
5 |
+
"<|im_end|>",
|
6 |
+
"<repo_name>",
|
7 |
+
"<reponame>",
|
8 |
+
"<file_sep>",
|
9 |
+
"<filename>",
|
10 |
+
"<gh_stars>",
|
11 |
+
"<issue_start>",
|
12 |
+
"<issue_comment>",
|
13 |
+
"<issue_closed>",
|
14 |
+
"<jupyter_start>",
|
15 |
+
"<jupyter_text>",
|
16 |
+
"<jupyter_code>",
|
17 |
+
"<jupyter_output>",
|
18 |
+
"<jupyter_script>",
|
19 |
+
"<empty_output>"
|
20 |
],
|
21 |
+
"bos_token": {
|
22 |
+
"content": "<|endoftext|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false
|
27 |
+
},
|
28 |
+
"eos_token": {
|
29 |
+
"content": "<|endoftext|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false
|
34 |
+
},
|
35 |
+
"pad_token": "<|endoftext|>",
|
36 |
"unk_token": {
|
37 |
"content": "<|endoftext|>",
|
38 |
"lstrip": false,
|
|
|
40 |
"rstrip": false,
|
41 |
"single_word": false
|
42 |
}
|
43 |
+
}
|
tokenizer.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
-
"truncation":
|
|
|
|
|
|
|
|
|
|
|
4 |
"padding": null,
|
5 |
"added_tokens": [
|
6 |
{
|
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
+
"truncation": {
|
4 |
+
"direction": "Right",
|
5 |
+
"max_length": 1024,
|
6 |
+
"strategy": "LongestFirst",
|
7 |
+
"stride": 0
|
8 |
+
},
|
9 |
"padding": null,
|
10 |
"added_tokens": [
|
11 |
{
|
tokenizer_config.json
CHANGED
@@ -161,13 +161,9 @@
|
|
161 |
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
162 |
"clean_up_tokenization_spaces": false,
|
163 |
"eos_token": "<|endoftext|>",
|
164 |
-
"max_length": 1024,
|
165 |
"model_max_length": 1000000000000000019884624838656,
|
166 |
"pad_token": "<|endoftext|>",
|
167 |
-
"stride": 0,
|
168 |
"tokenizer_class": "GPT2Tokenizer",
|
169 |
-
"truncation_side": "right",
|
170 |
-
"truncation_strategy": "longest_first",
|
171 |
"unk_token": "<|endoftext|>",
|
172 |
"vocab_size": 49152
|
173 |
}
|
|
|
161 |
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
162 |
"clean_up_tokenization_spaces": false,
|
163 |
"eos_token": "<|endoftext|>",
|
|
|
164 |
"model_max_length": 1000000000000000019884624838656,
|
165 |
"pad_token": "<|endoftext|>",
|
|
|
166 |
"tokenizer_class": "GPT2Tokenizer",
|
|
|
|
|
167 |
"unk_token": "<|endoftext|>",
|
168 |
"vocab_size": 49152
|
169 |
}
|