turns out we need to add [|endofturn|] by ourselves
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -3211,7 +3211,7 @@
|
|
3211 |
"PI:USER"
|
3212 |
],
|
3213 |
"bos_token": "[BOS]",
|
3214 |
-
"chat_template": "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}[|system|][|endofturn|]{% endif %}
|
3215 |
"clean_up_tokenization_spaces": true,
|
3216 |
"eos_token": "[|endofturn|]",
|
3217 |
"extra_special_tokens": {},
|
|
|
3211 |
"PI:USER"
|
3212 |
],
|
3213 |
"bos_token": "[BOS]",
|
3214 |
+
"chat_template": "{% for message in messages %}{% if loop.first and message['role'] != 'system' %}{{ '[|system|][|endofturn|]\n' }}{% endif %}{{ '[|' + message['role'] + '|]' + message['content'] }}{% if message['role'] == 'user' %}{{ '\n' }}{% else %}{{ '[|endofturn|]\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '[|assistant|][|endofturn|]' }}{% endif %}{% if add_reasoning_prompt %}{{ '[|reasoning|][|endofturn|]' }}{% endif %}",
|
3215 |
"clean_up_tokenization_spaces": true,
|
3216 |
"eos_token": "[|endofturn|]",
|
3217 |
"extra_special_tokens": {},
|