初始化项目,由ModelHub XC社区提供模型
Model: cs-552-2026-the-transformers/general_knowledge_model Source: Original Platform
This commit is contained in:
13
checkpoint-7136/chat_template.jinja
Normal file
13
checkpoint-7136/chat_template.jinja
Normal file
@@ -0,0 +1,13 @@
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{%- set loop_messages = messages[1:] %}
|
||||
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
||||
{%- else %}
|
||||
{%- set loop_messages = messages %}
|
||||
{{- '<|im_start|>system\n' + "You are a knowledgeable assistant. For multiple-choice questions, write ONLY the letter of the correct answer inside \\boxed{}." + '<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- for message in loop_messages %}
|
||||
{{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}
|
||||
{%- endfor %}
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|>assistant\n' }}
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user