初始化项目,由ModelHub XC社区提供模型

Model: cs-552-2026-thinking-tokens/math_model
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-23 13:56:18 +08:00
commit e0f3a5029e
16 changed files with 2868 additions and 0 deletions

19
chat_template.jinja Normal file
View File

@@ -0,0 +1,19 @@
{%- set enable_thinking = true %}
{%- set boxed_instruction = "You are a mathematical reasoning model. Solve the problem carefully. Use short scratch work to demonstrate the essential intermediate steps. Answer before the token budget (4096 in total) is exhausted. Return the final answer in exact form whenever possible. Put only the final answer inside a LaTeX \\boxed{} expression. Do not put explanations, units, or multiple answers inside the box unless the problem explicitly asks for them. " %}
{%- if messages|length > 0 and messages[0]['role'] == 'system' %}
{%- set system_message = boxed_instruction + "\n\n" + messages[0]['content'] %}
{%- set loop_messages = messages[1:] %}
{%- else %}
{%- set system_message = boxed_instruction %}
{%- set loop_messages = messages %}
{%- endif %}
{{- '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}
{%- for message in loop_messages %}
{{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}
{%- endfor %}
{%- if add_generation_prompt %}
{{- '<|im_start|>assistant\n' }}
{%- if not enable_thinking %}
{{- '<think>\n\n</think>\n\n' }}
{%- endif %}
{%- endif %}