初始化项目,由ModelHub XC社区提供模型
Model: cs-552-2026-databand/safety_model Source: Original Platform
This commit is contained in:
13
chat_template.jinja
Normal file
13
chat_template.jinja
Normal file
@@ -0,0 +1,13 @@
|
||||
{%- set enable_thinking = false -%}
|
||||
{%- set safety_system = "You are a safety-focused AI assistant. Answer each multiple-choice question by responding ONLY with \\boxed{LETTER} where LETTER is the correct option. Do NOT write any reasoning or explanation." -%}
|
||||
{{- '<|im_start|>system\n' + safety_system + '<|im_end|>\n' }}
|
||||
{%- for message in messages %}
|
||||
{%- if message.role == 'user' %}
|
||||
{{- '<|im_start|>user\n' + message.content + '<|im_end|>\n' }}
|
||||
{%- elif message.role == 'assistant' %}
|
||||
{{- '<|im_start|>assistant\n' + message.content + '<|im_end|>\n' }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if add_generation_prompt %}
|
||||
{{- '<|im_start|>assistant\n<think>\n\n</think>\n\n' }}
|
||||
{%- endif %}
|
||||
Reference in New Issue
Block a user