manueldeprada HF Staff commited on
Commit
35f78b3
·
verified ·
1 Parent(s): 5709ad2

Upload chat_template.jinja with huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +4 -0
chat_template.jinja ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {%- for message in messages -%}
2
+ {{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' -}}
3
+ {%- endfor -%}
4
+ {%- if add_generation_prompt -%}{{- '<|im_start|>assistant\n' -}}{%- endif -%}