Files
listing-parser-llama31-8b-f…/chat_template.jinja
ModelHub XC 66d6316861 初始化项目,由ModelHub XC社区提供模型
Model: standrey/listing-parser-llama31-8b-ft-v1
Source: Original Platform
2026-05-26 00:46:17 +08:00

12 lines
500 B
Django/Jinja

{{- bos_token }}
{%- for message in messages %}
{%- if message['role'] == 'assistant' %}
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
{%- generation %}
{{- message['content'] | trim + '<|eot_id|>' }}
{%- endgeneration %}
{%- else %}
{{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' + message['content'] | trim + '<|eot_id|>' }}
{%- endif %}
{%- endfor %}
{{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}