Upload tokenizer
Browse files- tokenizer.json +6 -1
- tokenizer_config.json +1 -1
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": 2048,
|
| 6 |
+
"strategy": "LongestFirst",
|
| 7 |
+
"stride": 0
|
| 8 |
+
},
|
| 9 |
"padding": null,
|
| 10 |
"added_tokens": [
|
| 11 |
{
|
tokenizer_config.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
| 45 |
},
|
| 46 |
"additional_special_tokens": [],
|
| 47 |
"bos_token": "<s>",
|
| 48 |
-
"chat_template": "{% for message in messages %}
|
| 49 |
"clean_up_tokenization_spaces": false,
|
| 50 |
"eos_token": "<|im_end|>",
|
| 51 |
"legacy": true,
|
|
|
|
| 45 |
},
|
| 46 |
"additional_special_tokens": [],
|
| 47 |
"bos_token": "<s>",
|
| 48 |
+
"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 %}",
|
| 49 |
"clean_up_tokenization_spaces": false,
|
| 50 |
"eos_token": "<|im_end|>",
|
| 51 |
"legacy": true,
|