Unseen1980 commited on
Commit
ceb9938
·
verified ·
1 Parent(s): 2f429db

instruct chat_template.jinja

Browse files
Files changed (1) hide show
  1. hf/instruct/chat_template.jinja +4 -0
hf/instruct/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 %}{{ '<|im_start|>assistant
4
+ ' }}{% endif %}