Upload tokenizer
Browse files- special_tokens_map.json +28 -4
- tokenizer_config.json +1 -1
special_tokens_map.json
CHANGED
@@ -1,6 +1,30 @@
|
|
1 |
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
}
|
tokenizer_config.json
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
}
|
28 |
},
|
29 |
"bos_token": "<|endoftext|>",
|
30 |
-
"chat_template": "{% for message in messages %}{{ message.role + '\n' + message.content
|
31 |
"clean_up_tokenization_spaces": true,
|
32 |
"eos_token": "<|endoftext|>",
|
33 |
"model_max_length": 1024,
|
|
|
27 |
}
|
28 |
},
|
29 |
"bos_token": "<|endoftext|>",
|
30 |
+
"chat_template": "{% for message in messages %}{{ message.role + '\n' + message.content | replace('_', ' ') }}{{ eos_token + '\n' }}{% endfor %}{{ 'assistant\n' }}",
|
31 |
"clean_up_tokenization_spaces": true,
|
32 |
"eos_token": "<|endoftext|>",
|
33 |
"model_max_length": 1024,
|