v7.24-base / chat_template.jinja
diffuznik's picture
Upload folder using huggingface_hub
cc9178f verified
Raw
History Blame Contribute Delete
313 Bytes
{%- for message in messages %}
{{- '<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>
' }}
{%- endfor %}
{%- if add_generation_prompt %}
{{- '<|im_start|>assistant
' }}
{%- if enable_thinking is defined and enable_thinking is false %}
{{- '<think>
</think>
' }}
{%- endif %}
{%- endif %}