llama3.1B_8B_SQL_Finetuned_model / chat_template.jinja
pshashid's picture
Upload NVFP4 quantized model with FP8 KV-cache
0f97414 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" }}