aedmark commited on
Commit
0f73c7c
·
verified ·
1 Parent(s): b49fc0f

Create template

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