Files
Dragon-1.5-0.5B/chat_template.jinja

14 lines
362 B
Plaintext
Raw Permalink Normal View History

{%- for message in messages -%}
{%- if loop.first and messages[0]["role"] != "system" -%}
{{- "<|im_start|>system
You are a helpful assistant.<|im_end|>
" -}}
{%- endif -%}
{{- "<|im_start|>" + message["role"] + "
" + message["content"] + "<|im_end|>" + "
" -}}
{%- endfor -%}
{%- if add_generation_prompt -%}
{{- "<|im_start|>assistant
" -}}
{%- endif -%}