Upload chat_template.jinja with huggingface_hub
Browse files- chat_template.jinja +4 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% for msg in messages %}<|im_start|>{{ msg.role }}
|
| 2 |
+
{{ msg.content }}<|im_end|>
|
| 3 |
+
{% if loop.last and add_generation_prompt %}<|im_start|>assistant
|
| 4 |
+
{% endif %}{% endfor %}
|