Upload chat_template.jinja with huggingface_hub
Browse files- chat_template.jinja +15 -0
chat_template.jinja
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- for message in messages %}
|
| 2 |
+
{%- if message.role == 'user' %}
|
| 3 |
+
{{- '<|im_start|>' + message.role + '
|
| 4 |
+
' + message.content + '
|
| 5 |
+
Please give a step-by-step answer and use a \boxed command to denote the final answer.' + '<|im_end|>' + '
|
| 6 |
+
' }}
|
| 7 |
+
{%- else %}
|
| 8 |
+
{{- '<|im_start|>' + message.role + '
|
| 9 |
+
' + message.content + '<|im_end|>' + '
|
| 10 |
+
' }}{%- endif %}
|
| 11 |
+
{%- endfor %}
|
| 12 |
+
{%- if add_generation_prompt %}
|
| 13 |
+
{{- '<|im_start|>assistant
|
| 14 |
+
' }}
|
| 15 |
+
{%- endif %}
|