初始化项目,由ModelHub XC社区提供模型
Model: standrey/listing-parser-llama31-8b-ft-v1 Source: Original Platform
This commit is contained in:
12
chat_template.jinja
Normal file
12
chat_template.jinja
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- 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' }}
|
||||
Reference in New Issue
Block a user