rubenweg commited on
Commit
7292866
·
verified ·
1 Parent(s): 8d69c6b

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
+ {{ bos_token }}{% for message in messages %}{% if message['role'] == 'assistant' %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}<start_of_turn>{{ role }}
2
+ {{ message['content'] | trim }}<end_of_turn>
3
+ {% endfor %}{% if add_generation_prompt %}<start_of_turn>model
4
+ {% endif %}