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 tested…
What’s that about the template breaking the kv cache?
Qwen 3.8 27B is excellent, but it defaults to overthinking things
41–50 of 411 posts
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#42The 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 tha…
I love reading Glimmer's "thoughts". Why use many word when few do trick?
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#43Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#44Thinking is good.
You just don't see it in proprietary harnesses because it's literally cryptographically hidden from you.
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#45Earlier quoted context omitted.
What’s that about the template breaking the kv cache?
this is my understanding, the default template keeps the thinking part but only for the last message, so the harness has to play along with the template and strip and add to keep the conversation matching what's there on the llama.cpp cache, but if the harness sends the thinking in every turn, then you break what llama.cpp expects, the conversation doesn't match anymore what you have on cache and it reprocesses again…
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#46I 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.
AFAIK that is initially only for the iPhone?
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#47Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#48Earlier quoted context omitted.
this is my understanding, the default template keeps the thinking part but only for the last message, so the harness has to play along with the template and strip and add to keep the conversation matching what's there on the llama.cpp cache, but if the harness sends the thinking in every turn, then you break what llama.cpp expects, the conversation doesn't match anymore what you have on cache and it reprocesses again…
Oh, interesting. I want to say there’s a “preserve thinking” option in mainline llama.cpp, but I’m seeing mixed results in my searches and my in-flight internet is not good enough to dig into it properly. Good to hear you have a solution though, because that is likely something I’ll run into as well.
Re: Qwen 3.8 27B is excellent, but it defaults to overthinking things
#49Earlier quoted context omitted.
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.
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.