huaj1ng commited on
Commit
309e1c1
·
verified ·
1 Parent(s): ea3eb3a

Fix thinking bug in jinja template

Browse files

Without the `\n` after `<think>`, the think content will be mixed into normal conversational text.
This is the practice aligning with jinja template usages in comparable projects, for example:
- https://huggingface.co/Qwen/Qwen3.6-35B-A3B/blob/main/chat_template.jinja#L152
- https://huggingface.co/unsloth/Qwen3.6-35B-A3B/blob/main/chat_template.jinja#L155

Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -149,6 +149,6 @@
149
  {%- if enable_thinking is defined and enable_thinking is false %}
150
  {{- '<think>\n\n</think>\n\n' }}
151
  {%- else %}
152
- {{- '<think>' }}
153
  {%- endif %}
154
  {%- endif %}
 
149
  {%- if enable_thinking is defined and enable_thinking is false %}
150
  {{- '<think>\n\n</think>\n\n' }}
151
  {%- else %}
152
+ {{- '<think>\n' }}
153
  {%- endif %}
154
  {%- endif %}
Free AI Image Generator No sign-up. Instant results. Open Now