知识卡片
思考开关按模板行为解释
本章add_thinking=True不预先插入闭合的空think区段;False则插入空区段以转入直接回答。开关含义来自具体模板协议,不能仅按名字猜测字符串操作;它也不是对内部推理是否真实发生的观测。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
when add_thinking=True, no "\n<think>\n\n</think>\n\n" tokens are inserted (where \n is anewline character), and when add_thinking=False, these tokens are added. This is intentional because the non-base Qwen3 0.6B model is a hybrid that supports both reasoning ("thinking") and standard modes.
参考来源
- 位置:《Build a Reasoning Model (From Scratch)》第09章《附录C Qwen3模型源码》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Build a Reasoning Model (From Scratch)/_epub-src/OEBPS/Text/appendix-c.html)
- 结论依据:摘录中关于思考开关按模板行为解释的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:when add_thinking=True, no "\n<think>\n\n</think>\n\n" tokens are inserted (where \n is anewline character), and when add_thinking=False, these tokens are added. This is intentional because the non-base Qwen3 0.6B model is a hybrid that supports both reasoning ("thinking") and standard modes.