Qwen 3.8 27B is excellent, but it defaults to overthinking things

(simonwillison.net)

84 points | by bilsbie 2 hours ago

14 comments

  • xlayn 2 minutes ago
    I have this branch of llama.cpp that among other things (like patching the template to not break the kv cache, and saving conversations to disk so you can resume quickly days after) also accept the reasoning effort flag here https://github.com/alainnothere/llama.cpp/tree/disk-cache-ev...

    I did testing and the reasoning effort can be set per message, I was not aware of the option of none mentioned by @xscott, I did testing and the thing can do it's "I'll speak 10 million words to myself to ensure I'm not missing something" and then switch to a faster model, then switch... I did a test and the thing keep coherence and follow it's train of though-kens... https://github.com/alainnothere/llama.cpp/blob/disk-cache-ev...

  • RachelF 15 minutes ago
    To me, the amazing thing is that we now have local models that rival the reasoning of high end models from about a year ago.

    I hope this trend continues.

    • refactor_master 3 minutes ago
      Unlike cloud infra in general which offers things like automatic backups, regional redundancy, and effectively unlimited scalability, it seems like the value proposition of cloud LLM gets ever shakier.

      * Many businesses don't need frontier level intelligence anyway.

      * It's completely stateless. If your local LLM machine catches fire? Nothing was lost. Buy another.

  • nharziro 30 minutes ago
    I do agree that Qwen 3.8 27B is excellent but slow and very token inefficient. My benchmark places it near opus 4.6 and codex 5.3 performance. 3.6 27B couldn't even complete the benchmark. Please see below for details:

    https://gist.github.com/nharziro/aed0c364ce2f295a493494c6f1b...

  • andy99 2 hours ago
    The big problem with overthinking on a dense model is obviously the speed hit you take. Going from Qwen 35BA3B to 27B for me is about 7-8x slower (should be ~9x?). This makes me a lot less patient for useless thinking tokens.

    I’d want to compare this to the new Muse 30B model which is super terse and has a whole different way of thinking (no “Wait,”) and in my experiments was way more token efficient to the point that the absolute tok / s didn’t really matter.

  • SwellJoe 1 hour ago
    This is true, but I think it understates the problem. I did a task I've done with a bunch of small models lately (https://github.com/swelljoe/flar/pull/17), and it did an excellent job, the best of any self-hostable model. But, it took eleven (11!) hours on my dual GPU setup. It really chewed on it, and spent a lot of time checking and re-checking. It is by far the slowest model I've used for the task. GPT 5.5 did a similar task in about 20 minutes. Most big models took about an hour or so, and most small models needed a couple of hours (but did a worse job).
    • fermuch 31 minutes ago
      xhigh tells it to overthink and re check everything. Low tells it to only do the minimum thinking necessary. I would suggest to give qwen medium which doesn't inject any thinking directives into it and also to give as much context as you can, ideally around 500k tokens or even 1M if you can. Big complex tasks like these make the model hit the compaction trigger a lot and they end up re thinking the same thing several times in my experience.
    • simonw 1 hour ago
      Was that with the default xhigh reasoning setting? I suggest trying again with reasoning set to low or turned off entirely.
      • SwellJoe 51 minutes ago
        Yes, default everything, no tuning, 8_K_XL Unsloth quantization on dual Radeon V620 GPUs (which aren't blazing, but faster than the Strix Halo).
        • syntaxing 7 minutes ago
          What speed do you get on this setup? Im tempted to use the same GPU.
  • doginasuit 30 minutes ago
    To be fair, Opus 5 overthinks things on a regular basis. I interact with the LLM almost entirely through the prompt interface vs. some agentic harness, so I have a lot of granular exposure to its reasoning. For almost every code analysis, it flags all the important issues and at least one non-issue. It suggests some impractical and unnecessary fix for the non-issue that would categorically be a regression.

    I've learned that medium effort can improve the outcome relative to higher settings. But I suspect the phenomenon is an artifact of a misguided effort to fix inherent LLM limitations. At least some of its reasoning will miss the target, and more bad reasoning is not the remedy.

  • xscott 41 minutes ago
    It won't satisfy the people who just want to drop a model into their existing toolset and run, but I think there are a lot of ways to deal with this overthinking problem.

    For instance, it's a step backward, but I put {"reasoning_effort":"none"} and led it by the nose:

       User: We're going to make <silly demo>.  Please create a plan, but do not write code yet.
    
       Agent: <short and reasonable plan>
    
       User: Now please follow that plan and write the code.  No other chat.
    
       Agent: <reasonable code in reasonable time>
    
    Maybe this can be fixed with Jinja templates or something, or maybe it's a hack to your harness, but it shows you can get the model to reason reasonably.
  • blagui 31 minutes ago
    You have 4 thinking levels.

    You can disable it. It's well known issue in Qwen, previous releases I would disable it by default.

    Also xhigh seem a new thing.

    • dofm 25 minutes ago
      Yes. Though the chat template doesn’t tell LM Studio to offer the little dropdown. You can bodge the template in the load parameters.

      Unsloth Studio / Desktop has it working really well with their version of the weights.

  • cyanydeez 1 hour ago
    --thinking-budget and --thinking-message is all you need in llamacpp to keep it progressing.

    the message can be some combination of tool calling, summarizing, etc. It's overthinking often is a bunch of recursion, so simply stopping t and redirecting is all you need to do.

    If someones building a harness for llamacpp, you can set this per message, so it's possible to dynamically control it by watching for the expansion of the thinking traces, and redirecting it.

    I use the message to tell it to use subagents, add additional logging and to use opencode's dynamic context pruning.

    As such, we'll just whisper here _skill issue_.

    • dofm 57 minutes ago
      Unfortunately in xhigh thinking it goes down rabbit holes in such an extreme depth-first way, that whenever you choose to cut it off, there is a very good chance it will not have got round to musing on even half of the prompt! It doesn’t really obviously loop in xhigh, so I am not sure if an “overthinking guard” proxy would have much to go on, but it does obsessively ruminate on edge cases. I have seen it overcomplicate simple code as a result even in my limited testing.

      Probably the better solution if you want it to be quicker but still fairly thorough appears to be to configure reasoning effort instead of thinking budget. It seems to do very well still even on the Low setting; on the Medium setting it can get stuck in loops like 3.6 does.

      I think xhigh reasoning effort was an absurd choice for a default, and so was not sorting out the chat template so LM Studio could offer the reasoning effort dropdown.

      • cyanydeez 43 minutes ago
        to the point though: most of that overthinking is useless if you have a proper redirect message. So setting arbitrary budget and getting it a good message will do the trick regardless of what type of thinking it's doing. The reason thinking seems to work is that it's just trying to find an optimum outside the local optimum, and the thinking trace helps find it.

        The only think I could think that'd be better than the --reasoning-budget would bet a budget jitter just in case it really is repeating a pattern and you want to escape it arbitrarily, otherwise yes, it could keep looping if you're always cutting at the wrong time.

        • dofm 35 minutes ago
          > The reason thinking seems to work is that it's just trying to find an optimum outside the local optimum, and the thinking trace helps find it.

          Yes, I think I finally have an intuitive sense for that. But surely on a longer prompt it is still better for the final response if the thinking has at least brushed past all of the prompt?

          One of the things I witnessed with xhigh is that while the thinking trace starts out intending an overview of the prompt, it actually can go fully down a rabbit hole off one of the first two or three bullet points even when it was seemingly intending not to.

          It’s basically a lot like me. Gets sidetracked by the interesting bits.

    • bitexploder 57 minutes ago
      Yeah, but be fair. Working with small models is a different ball game. Not all the batteries come included :)
    • bellowsgulch 46 minutes ago
      This is definitely such a cool feature that I wish cloud providers would expose.
  • deadcatfound 1 hour ago
    For agents, token efficiency is an operating cost. I’d rather have a terse model that escalates hard cases than one that overthinks every tool call.
  • kamranjon 48 minutes ago
    woohoo! A no-thinking pelican! I hope to see more, it's surprisingly good for just 2 minutes.
  • javchz 1 hour ago
    I wonder if this can be fixed with LORAs.
    • bitexploder 58 minutes ago
      I had to fix this on 35B A3B -- I have a proxy that just shuts it down if it gets to 2K thinking tokens and injects something like "We have thought enough, let's begin working." and it almost always finishes the turn then. It rarely needs more than 2K thinking tokens and if it does there is always next turn. I would need to see what 27B is actually doing, but these smaller Qwen models seem prone to this.
      • dofm 26 minutes ago
        Unfortunately in xhigh reasoning effort it will burn through 2K tokens before it has even finished its bullet point overview. It really is intense and obsessive. You might need ten times more!

        Your strategy would likely help in medium reasoning effort (because there it gets caught up in the very typical Qwen looping).

        Not seen looping in the “low” reasoning effort mode.

      • logicallee 15 minutes ago
        >I had to fix this on 35B A3B -- I have a proxy that just shuts it down if it gets to 2K thinking tokens and injects something like "We have thought enough, let's begin working." and it almost always finishes the turn then.

        that is amazing, thanks for sharing.

  • LoganDark 56 minutes ago
    I hope Apple does end up moving to HBM. Unified memory has been a huge godsend, but the low memory bandwidth is just such a killer. Even/especially on M5, where the available compute is starting to starve incredibly badly on ML workloads.
    • dofm 19 minutes ago
      AFAIK that is initially only for the iPhone?