Add default chat template to tokenizer_config.json (#5)
Browse files- Add default chat template to tokenizer_config.json (061c529b9d4847038daa0eac736548fbed917346)
Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>
- tokenizer_config.json +4 -3
tokenizer_config.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
5 |
}
|
|
|
1 |
{
|
2 |
+
"model_max_length": 2048,
|
3 |
+
"padding_side": "left",
|
4 |
+
"truncation_side": "left",
|
5 |
+
"chat_template": "{{ eos_token }}{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ 'User: ' + message['content']}}{% else %}{{ 'Bot: ' + message['content']}}{% endif %}{{ message['text'] }}{{ bos_token }}{% endfor %}Bot:"
|
6 |
}
|