das-extraction-lm / chat_template.jinja
parthsarin's picture
Upload tokenizer
5a1398a verified
raw
history blame contribute delete
239 Bytes
{{ bos_token }}{% for message in messages %}
<|start_header_id|>{{ message['role'] }}<|end_header_id|>
{{ message['content'] }}<|eot_id|>{% endfor %}{% if add_generation_prompt %}
<|start_header_id|>assistant<|end_header_id|>
{% endif %}