AI ollama 运行的 qwen3:8b 如何关闭思考模式?

15 天前
 dunhanson

最近在搞 n8n 工作流,结合 mcp playwright ,做网站监控

但是消耗的 token 太多了,网站网页很多冗余的代码,一下就几万的 token 没了

所以想着还是用下本地模型

809 次点击
所在节点    Local LLM
7 条回复
S1ahs3r
15 天前
用 modelfile 形式,改 template 。
https://ollama.com/library/qwen3:0.6b/blobs/ae370d884f10
taco1wang
14 天前
前面加个 <no_think> 就行。。
dunhanson
14 天前
@S1ahs3r 我看看
dunhanson
14 天前
@taco1wang 没啥作用
cogear
14 天前
lchynn
8 天前
提示词的最后加上(换行) /no_think 即可。
lchynn
8 天前
Specifically, you can add /think and /no_think to user prompts or system messages to switch the model's thinking mode from turn to turn. The model will follow the most recent instruction in multi-turn conversations.

https://huggingface.co/Qwen/Qwen3-8B

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1153748

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX