llama3.1B_SQL_Finetuned / chat_template.jinja
pshashid's picture
Initial commit
7bac878 verified
raw
history blame contribute delete
529 Bytes
{% for message in messages %}{% if loop.first and messages[0]["role"] == "system" %}{{ "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n" + message["content"] + "<|eot_id|>" }}{% elif message["role"] == "user" %}{{ "<|start_header_id|>user<|end_header_id|>\n\n" + message["content"] + "<|eot_id|>" }}{% elif message["role"] == "assistant" %}{{ "<|start_header_id|>assistant<|end_header_id|>\n\n" + message["content"] + "<|eot_id|>" }}{% endif %}{% endfor %}{{ "<|start_header_id|>assistant<|end_header_id|>\n\n" }}