V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
dunhanson
V2EX  ›  Local LLM

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

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