V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dunhanson
V2EX  ›  Local LLM

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

  •  
  •   dunhanson · 14 天前 · 796 次点击

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

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

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

    pVBLyUP.png

    7 条回复    2025-08-27 10:08:08 +08:00
    S1ahs3r
        1
    S1ahs3r  
       14 天前
    用 modelfile 形式,改 template 。
    https://ollama.com/library/qwen3:0.6b/blobs/ae370d884f10
    taco1wang
        2
    taco1wang  
       13 天前
    前面加个 <no_think> 就行。。
    dunhanson
        3
    dunhanson  
    OP
       13 天前
    @S1ahs3r 我看看
    dunhanson
        4
    dunhanson  
    OP
       13 天前
    @taco1wang 没啥作用
    cogear
        5
    cogear  
       13 天前
    lchynn
        6
    lchynn  
       7 天前
    提示词的最后加上(换行) /no_think 即可。
    lchynn
        7
    lchynn  
       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
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5511 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 01:22 · PVG 09:22 · LAX 18:22 · JFK 21:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.