Views
No views yet
chat_template.jinja differs from Google's Gemma 4 Canonical Chat Template
(2026-07-09) by one intentional change; everything else is untouched.enable_thinking is false. The model
may then open a thinking channel on its own, and a quantized model sometimes writes the
literal word thought into the answer. This patch gives the tool_response branch the
same suppression:1{%- elif ns.prev_message_type == 'tool_response' -%}
2 {%- if enable_thinking -%}
3 {{- '<|channel>thought\n' -}}
4 {%- else -%}
5 {{- '<|channel>thought\n<channel|>' -}}
6 {%- endif -%}
7{%- endif -%}chat_template.jinja with the one from the
base model repo; the weights are unaffected.