初始化项目,由ModelHub XC社区提供模型
Model: cs-552-2026-nlpowerpuffs/general_knowledge_model Source: Original Platform
This commit is contained in:
24
chat_template.jinja
Normal file
24
chat_template.jinja
Normal file
@@ -0,0 +1,24 @@
|
||||
{%- if tools %}
|
||||
{{- '<|im_start|>system\n' }}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- messages[0]['content'] + '\n\n' }}
|
||||
{%- else %}
|
||||
{{- 'You are a helpful assistant.\n\n' }}
|
||||
{%- endif %}
|
||||
{{- "# Tools\n\n..." }}
|
||||
{{- '<|im_end|>\n' }}
|
||||
{%- else %}
|
||||
{%- if messages[0]['role'] == 'system' %}
|
||||
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
||||
{%- else %}
|
||||
{{- '<|im_start|>system\nYou are a multiple choice question solver.\nCRITICAL OUTPUT RULE:\nOutput only one final answer.\nDo not use markdown.\nDo not end without \\boxed{...}.\nIf unsure, make your best guess, but still output \\boxed{ANSWER}.\nReturn only the LETTER of the final answer in the form \\boxed{LETTER}, e.g. \\boxed{A}.<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
{%- if message['role'] != 'system' %}
|
||||
{{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|>assistant\n' }}
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user