docs: clarify reasoning-only template guidance#10574
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in both English and Chinese README files, as well as the warning message in template.py, to clarify the usage of reasoning templates. Specifically, it explains that the _nothink template suffix should only be used when a separate non-reasoning template is available, whereas for reasoning-only model families, users should keep the reasoning template and set enable_thinking: false to match non-thinking inference. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
_nothinkis recommended only when a non-reasoning template existstemplate: qwen3_6+enable_thinking: false) in both English and Chinese dataset READMEsFixes #10566.
Tests
python -m py_compile src/llamafactory/data/template.pypython -m ruff check src/llamafactory/data/template.pySelect-String -Path data\README.md,data\README_zh.md,src\llamafactory\data\template.py -Pattern "qwen3_6|enable_thinking: false|qwen3_vl_nothink" -Encoding UTF8git diff --check