joaogante commited on
Commit
f5ec4f7
·
verified ·
1 Parent(s): 0f28bc4

Update non-thinking chat template

Browse files

Removes `<|channel>thought\n<channel|>` from the non-thinking chat template.

Benchmarks ran locally using the HF implementation, in non-thinking mode

BEFORE
```
Benchmark | Accuracy | Tokens per Forward
GPQA Diamond | 63.40 | 17.30
AIME2025 | 48.70 | 18.80
IFEval | 85.40 | 9.40
HumanEval | 93.30 | 24.50
GSM8K | 94.40 | 20.30
MMLU | 85.20 | 5.70
```

AFTER
```
Benchmark | Accuracy | Tokens per Forward
GPQA Diamond | 64.90 | 17.70
AIME2025 | 50.00 | 19.50
IFEval | 85.50 | 9.90
HumanEval | 92.00 | 29.90
GSM8K | 94.50 | 22.00
MMLU | 86.70 | 11.70
```

Files changed (1) hide show
  1. chat_template.jinja +0 -3
chat_template.jinja CHANGED
@@ -356,8 +356,5 @@
356
  {%- if add_generation_prompt -%}
357
  {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
358
  {{- '<|turn>model\n' -}}
359
- {%- if not enable_thinking | default(false) -%}
360
- {{- '<|channel>thought\n<channel|>' -}}
361
- {%- endif -%}
362
  {%- endif -%}
363
  {%- endif -%}
 
356
  {%- if add_generation_prompt -%}
357
  {%- if ns.prev_message_type != 'tool_response' and ns.prev_message_type != 'tool_call' -%}
358
  {{- '<|turn>model\n' -}}
 
 
 
359
  {%- endif -%}
360
  {%- endif -%}