Clemylia commited on
Commit
852a4d4
·
verified ·
1 Parent(s): 65dfd78

Create chat_template.jinja

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 -%} {{'<|im_start|>' + message.role + '
2
+ ' + message.content + '<|im_end|>
3
+ '}}{%- endfor -%}{%- if add_generation_prompt and messages[messages.length - 1].role != 'assistant' -%} {{ '<|im_start|>assistant
4
+ ' }}{%- endif -%}