aimeri's picture
Upload scripts/thrasher.jinja with huggingface_hub
100b534 verified
Raw
History Blame Contribute Delete
233 Bytes
{%- for message in messages -%}
{{- '<|im_start|>' + message['role'] + '\n' -}}
{{- message['content'] | trim -}}
{{- '<|im_end|>\n' -}}
{%- endfor -%}
{%- if add_generation_prompt -%}
{{- '<|im_start|>assistant\n' -}}
{%- endif -%}