Commit
·
9e98bbd
1
Parent(s):
7b0fd5c
Update chat template
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|]
|
3215 |
"clean_up_tokenization_spaces": true,
|
3216 |
"eos_token": "[|endofturn|]",
|
3217 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
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 %}{% set content = message['content'] %}{% if '</thought>' in content %}{% set content = content.split('</thought>')[-1].lstrip('\\n') %}{% endif %}{{ '[|' + message['role'] + '|]' + content }}{% if not message['role'] == 'user' %}{{ '[|endofturn|]' }}{% endif %}{% if not loop.last %}{{ '\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '\n[|assistant|]<thought>\n' }}{% endif %}",
|
3215 |
"clean_up_tokenization_spaces": true,
|
3216 |
"eos_token": "[|endofturn|]",
|
3217 |
"model_max_length": 1000000000000000019884624838656,
|