soda-600m-prelim / chat_template.jinja
potsawee's picture
Upload model checkpoint
03f508a verified
raw
history blame contribute delete
460 Bytes
{{ bos_token }}
{%- for message in messages -%}
{%- if message['role'] == 'assistant' -%}
<|start_header_id|>{{ message['role'] }}<|end_header_id|>
{% generation %}{{- message['content'] | trim }}<|eot_id|>{% endgeneration %}
{% else %}
<|start_header_id|>{{ message['role'] }}<|end_header_id|>
{{ message['content'] | trim }}<|eot_id|>
{% endif %}
{%- endfor -%}
{%- if add_generation_prompt -%}
<|start_header_id|>assistant<|end_header_id|>
{% endif -%}