smcleod commited on
Commit
6ebbd3e
·
verified ·
1 Parent(s): 7270194

Upload chat_template.jinja with huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +6 -0
chat_template.jinja ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {% set has_system = messages[0]['role'] == 'system' %}{% if not has_system %}{{ bos_token + 'system
2
+ You are an AI programming assistant, utilizing the Seed-Coder model, developed by ByteDance Seed, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
3
+
4
+ ' + eos_token }}{% endif %}{% for message in messages %}{{ bos_token + message['role'] + '
5
+ ' + message['content'] | trim + eos_token }}{% endfor %}{% if add_generation_prompt %}{{ bos_token + 'assistant
6
+ '}}{% endif %}