Upload tokenizer
Browse files- chat_template.jinja +1 -1
- tokenizer.json +1 -1
- tokenizer_config.json +1 -1
chat_template.jinja
CHANGED
|
@@ -86,7 +86,7 @@
|
|
| 86 |
{%- elif message.role == "tool" %}
|
| 87 |
{{- '<|im_start|>tool/function_call\n' + content + '<|im_end|>\n' }}
|
| 88 |
{%- else %}
|
| 89 |
-
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>\n' }}
|
| 90 |
{%- endif %}
|
| 91 |
{%- endfor %}
|
| 92 |
{%- if add_generation_prompt %}
|
|
|
|
| 86 |
{%- elif message.role == "tool" %}
|
| 87 |
{{- '<|im_start|>tool/function_call\n' + content + '<|im_end|>\n' }}
|
| 88 |
{%- else %}
|
| 89 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>\n<|im_start|>assistant' }}
|
| 90 |
{%- endif %}
|
| 91 |
{%- endfor %}
|
| 92 |
{%- if add_generation_prompt %}
|
tokenizer.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
-
"max_length":
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
|
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
+
"max_length": 2048,
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
tokenizer_config.json
CHANGED
|
@@ -494,7 +494,7 @@
|
|
| 494 |
"clean_up_tokenization_spaces": true,
|
| 495 |
"eos_token": "<|endoftext|>",
|
| 496 |
"extra_special_tokens": {},
|
| 497 |
-
"max_length":
|
| 498 |
"model_max_length": 1000000000000000019884624838656,
|
| 499 |
"pad_token": "<|endoftext|>",
|
| 500 |
"stride": 0,
|
|
|
|
| 494 |
"clean_up_tokenization_spaces": true,
|
| 495 |
"eos_token": "<|endoftext|>",
|
| 496 |
"extra_special_tokens": {},
|
| 497 |
+
"max_length": 2048,
|
| 498 |
"model_max_length": 1000000000000000019884624838656,
|
| 499 |
"pad_token": "<|endoftext|>",
|
| 500 |
"stride": 0,
|