dunhanson
V2EX  ›  Local LLM

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

  •  
  •   dunhanson · Aug 20, 2025 · 4268 views
    This topic created in 443 days ago, the information mentioned may be changed or developed.

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

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

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

    pVBLyUP.png

    7 replies  •  2025-08-27 10:08:08 +08:00
    S1ahs3r
    S1ahs3r
    Aug 20, 2025
    1
    用 modelfile 形式,改 template 。
    https://ollama.com/library/qwen3:0.6b/blobs/ae370d884f10
    taco1wang
    taco1wang
    Aug 21, 2025
    2
    前面加个 <no_think> 就行。。
    dunhanson
    dunhanson
    OP
    Aug 21, 2025
    3
    @S1ahs3r 我看看
    dunhanson
    dunhanson
    OP
    Aug 21, 2025
    4
    @taco1wang 没啥作用
    cogear
    cogear
    Aug 21, 2025
    5
    lchynn
    lchynn
    Aug 27, 2025
    6
    提示词的最后加上(换行) /no_think 即可。
    lchynn
    lchynn
    Aug 27, 2025
    7
    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1864 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:34 · PVG 09:34 · LAX 17:34 · JFK 20:34
    ♥ Do have faith in what you're doing.