Hi
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -26,7 +26,7 @@
|
|
26 |
}
|
27 |
},
|
28 |
"bos_token": "<s>",
|
29 |
-
"chat_template": "{% for message in messages %}
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
"eos_token": "</s>",
|
32 |
"legacy": false,
|
|
|
26 |
}
|
27 |
},
|
28 |
"bos_token": "<s>",
|
29 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|user|>' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ '<|system|>' + message['content'] + eos_token }}{% elif message['role'] == 'assistant' %}{{ '<|assistant|>' + message['content'] + eos_token }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>' }}{% endif %}{% endfor %}",
|
30 |
"clean_up_tokenization_spaces": false,
|
31 |
"eos_token": "</s>",
|
32 |
"legacy": false,
|