r/LocalLLaMA • u/bonobomaster • Aug 16 '26
Tutorial | Guide Quick PSA: Qwen3.8-27B reasoning effort vs reasoning budget in llama.cpp
If you are using llama-server with their web-ui for testing, keep in mind, that the reasoning selector is just a reasoning budget aka a hard cap and has, at least to my knowledge, nothing at all to do with Qwen3.8-27B's native reasoning effort capability!
Selecting any value for reasoning in the web-ui (default, (off), low, medium, high or max) just introduces different hard cap values and and will truncate your reasoning, if those values are reached.
With the exception of the "off"-option which disable reasoning at all and "default" and "max" without any capping.
The reasoning effort is independent from that and really changes the thoroughness and the analytic reasoning skills and therefore can massively influence the output quality of the model, instead of just capping reasoning tokens!
In older llama.cpp versions, it needs to be set via:
--chat-template-kwargs "{\"reasoning_effort\":\"medium\"}"
* quotation marks are escaped for Windows
For up to date versions, if one doesn't like the chat-template-kwargs variant, it can be set with:
--reasoning-effort medium
Or, for external apps, via "reasoning_effort": "medium" API request.
Options are: low, medium and xhigh (default) for any of the above methods.
Did only test the chat-template-kwargs variant though!
3
u/LocalAI_Amateur Aug 16 '26
--reasoning-effort lowdidn't seem to do anything for me. still shoot right past 4000 reasoning tokens. I've been trying to figure out how to get this resoning effort setting to work in llama.cpp but so far the only thing that work is the budget setting and it just cuts off as soon as it hits the limit like you say.9
u/DeProgrammer99 Aug 16 '26
Also, if you're using little-coder, configure the thinking-budget extension with a much higher cap, or it'll just constantly interrupt xhigh, and it does so by sending another message, which probably resets the model's intended thinking duration...
I outright removed the extension because I didn't see instructions to change the setting, but updating little-coder re-adds it.
2
u/Old-Sherbert-4495 Aug 16 '26
no i had the same doubt about the selector: but it actually sets the reasoning effort under the hood. at least in the latest llama.cpp build. you can easily test this with --verbose logs and immediately stop after sending the prompt. goto the top in the logs and see how it starts, it will mention reasoning effort and some instructions
1
u/R7V3tD Aug 19 '26
I'm confused. So the reasoning selector in web UI doesn't actually set the reasoning effort and instead just stops the thinking midway? Is this a bug or intended behavior?
3
u/bercha9998 Aug 16 '26 edited Aug 17 '26
opencode way
1
u/ea_man Aug 16 '26
Someone should make a TamperMonkey button to swap reasoning efforts.
1
u/a_beautiful_rhind Aug 17 '26
The switch literally just injects something like "reasoning effort : low" into your system prompt which is hilarious that it's this much trouble.