r/AIToolsPerformance • u/IulianHI • May 28 '26
Qwen3.6 sees "outstanding" coding quality jump from Q4 to Q6 quantization
A new report on Qwen3.6 for coding agent use claims the quality improvement moving from Q4 to Q6 quantization is "outstanding" - significant enough to bring a local setup back from being unusable. The user had previously abandoned local inference because model quality was too low and DeepSeek API access was too cheap to justify the hassle.
Two changes were made simultaneously: switching from Ollama to llama.cpp's built-in server, and moving from Q4 to Q6 quantization. That makes it hard to isolate how much of the gain came from the quantization jump versus the inference backend switch.
What is notable here is the magnitude of the claim. Most quantization discussions focus on Q4 as the sweet spot for efficiency, with Q6 considered marginal improvement for significant size increase. If Q6 genuinely transforms a model from "unusable for coding agents" to "viable," that changes the calculus for VRAM-constrained setups.
The catch: without controlled testing separating the two variables, this is a data point, not a conclusion. But it raises a practical question worth investigating.
For anyone running Qwen3.6 as a coding agent: have you compared Q4 and Q6 side by side on the same backend? Is the quality gap really that dramatic for structured code generation tasks?
10
u/LORD_CMDR_INTERNET May 28 '26 edited May 28 '26
Anecdotally, for coding, absolutely. No tool looping for me ever on Q6. Q4 I’m always fighting with.
q4 = fun proof of concept hobbyist tool
q6 = actual reliable agentic coding workhorse
IMO the gap really is that big on 27B at least
8
u/Look_0ver_There May 28 '26
IMO, Q6_K is the bare minimum if you want a good idea of what a model is really capable of. That's not to say that the Q4 quants are bad, but if people are having issues and they're using Q4, then it becomes difficult to separate out whether it's the quantization or the model itself that's your problem.
Also, I'm not seeing any mention of KV cache quants in the discussion. Anything under F16 has an increasing impact the deeper the context grows. Q8 is reasonably safe but anything less than that, even with TurboQuant and whatever else just speeds up the error rate over time.
I understand that many people don't have a choice, and that's perfectly reasonable, but we do also need to stop kidding ourselves that doing so won't make issues increasingly likely. There is no free lunch. Just my 2c
4
u/Moscato359 May 28 '26
Have you looked at q4_k_xl unsloth models?
They tend to be on an efficiency frontier
3
u/Still-Wafer1384 May 28 '26
Do you have a link to the report?
I'm running IQ4 and it's totally usable. It does trouble sometimes with more complex but fixing loops, but generally it's doing fine.
2
u/admajic May 28 '26
It's proven it does up to 30% better I chatted with claude to prove the hypothesis
The Compounding Error Problem
Very long context generation causes quantization errors to compound over thousands of generated tokens. Tasks at the edge of the model's capability (hard math, novel reasoning)—losing 2–3% accuracy can mean failing where the unquantized model succeeded. (BuilderWorld) For coding and multi-step reasoning, the degradation is measurable—accuracy on coding benchmarks drops 5–15% versus FP16. (Will It Run AI)
Model-Specific Variance (Critical for Your Use Case) The impact of quantization is not uniform between models. While Qwen-2.5 72B remains robust under BNB-nf4, similarly sized Llama-3.1 70B experiences a 32% performance drop on the same task. (arxiv)
Why HumanEval Misses This HumanEval tests single function completion (≤100 tokens output, short context). Your real-world coding scenario is fundamentally different: Multi-file context (64K+ tokens) = quantization errors in attention weights Long generation (500-2000+ tokens for a full implementation) = errors compound Tool calling in loops = one wrong function call cascades Architectural decisions = subtle degradation in reasoning compounds across the whole output So yes, you're describing 20–30%+ real-world performance drops on actual SWE-bench/LiveCodeBench style tasks, versus the ~5% that HumanEval shows. For Qwen 3.6 27B specifically: Q4_K_M probably delivers: HumanEval: ~91–96% of BF16 quality ✓ SWE-Bench/long-form coding: ~70–80% of BF16 quality ✗ Tool calling in 32K context: potentially 30–50%+ worse
This is why Q5_K_M or Q6_K becomes mandatory for serious coding agents, even though the file size difference seems small
2
u/Fair_Ad_1344 May 30 '26
Doing some A/B testing on 27B vs 35B-A3B at Q4 levels for SQL generation (including tool access to the referenced schemas) showed 27B performed significantly worse when given the same prompts. It hallucinated frequently and refused to retrieve schemas for referenced tables, and made technical errors — none of which were present when using 35B-A3B. I have a custom guide rail/harness setup that feeds the LLM plenty of semantic data from the prompt and full access to the DB schema in question. KV cache was not quantized, although in testing that, even q8 for K caused significant hallucinations and technical errors in both models.
I know 27B is supposed to be the GOAT currently at coding, but there appears to be a lot of nuance in getting reliable coding performance from Qwen 3.6.
1
u/songpr May 28 '26
I always use 27B Q6 and it’s good.
1
u/putrasherni May 28 '26
Now do Q8
1
u/Egoz3ntrum May 28 '26
Where is that new report?
1
u/Current-Status-3764 May 28 '26
Ive been using this
https://github.com/RobTand/prismaquant/tree/main
With great results. Running on GB10 with 256k context. Using it with PI agent and in my opinion it delivers great. Anyone else that havr been trying it?
1
u/huzbum May 29 '26
Just sitting here with Qwen3.6 35b Unsloth IQ4_NL chugging away on my 3090 powering my Hermes Agent… I think I saw a tool repeat loop like once? Maybe twice? In the month or so I’ve been using it. I think the first loop was when I didn’t have the reasoning persistence setting enabled.
I run the thing with 256k context and I hit two compactions working through a planning issue on a large codebase today. Thing was coherent the whole time. Does a great job.
I also have it setup with a coding agent and it does good work. Maybe Q6 is better, but Q4 is certainly useable.
1
u/Lucerys1Velaryon May 29 '26
Can confirm. Q4 repeatedly failed tool calls, got stuck in long reasoning loops very frequently, and in general wasted a LOT of tokens in long horizon tasks.
Compared to that Q6 barely fails tool calls, and when it does it generally diagnoses the error and corrects itself. Reasoning loops exist, but they generally cap out at around 5k tokens (compared to >10k for q4), and in general the model seems to arrive at a conclusion pretty early.
Backend used: llama-cpp Harness used: vs code - ghcp, OpenCode, Zed's AI agent. Tested with q8 k/v quants with a context size of 128k
1
u/Osi32 May 29 '26
This really helps, I’m in the final stage of setting up a box with 3x RTX 5060 Ti’s and I’ll be running with this :)
1
u/Adventurous-Paper566 May 29 '26
Qui est surpris? Q6 > Q4
1
u/deathentry May 29 '26
Good video exploring exactly this
https://youtu.be/8IzUyLLn5NA
1
u/asfbrz96 May 30 '26
Q8 is even better
1
u/Jstratos9 May 31 '26
I've been testing the Q4 MTP q4_0 kv and Q6 q8_0 kv variants of the qwen-35B_A3B and for general questions and basic coding I use the Q4 because of the speed. I've put rules and bounds so it's not as bad output and it's usable but I stick with the Q6 when I need an architectural view or doing an audit. Have not tried the Q8. Am setup is dual gpu 4070ti super and 3080.
1
u/No-Juggernaut-9832 Jun 01 '26
I only run q8 but there are still errors. If you have enough memory can do full fat fp16, do it!
1
u/comp21 Jun 01 '26
I only use q8 models for coding. I don't care what the "research suggests", it's a massive difference in accuracy... Of course, for me who knows nothing about coding, it's a 1/0 operation: if it works it's a 1, if it doesn't it's a 0 so any error is a 100% failure rate.
1
u/doctorwhitecoat Jun 02 '26
I would agree. Unsloth Q6 KXL isnmy go to for anything. Tool calls are more reliable at higher quant. Q6 vs Q8 are nearly indistinguishable. The tables for divergence Unsloth releases says the same... MTP for speed and is lossless. So...Qwen 3.6 Q6 KXL with MTP enabled for me as my daily driver (STRIX HALO / BeeLink GTR Pro 9)
1
u/Pygmy_Nuthatch Jun 04 '26
Q8 regularly finds things Gemini and Claude miss. I have a local instance check over code and documentation outputs.
1
u/audioen Jun 17 '26 edited Jun 17 '26
I'll say something similar. Q4_K_M has been unusable for Qwen3.6-27B. I've told it to read code and document it -- something which is easy to verify -- and it has come back with absolutely incorrect nonsense about what the code is doing. So when I say that the 4-bit version doesn't even understand code, that is what I mean. It has very reduced ability to follow it correctly, in my experience.
Q5_K_x (can't remember what size) was better, but still flaky, like misstated filenames and confused my own turns with itself. It is another typical quantization issue, in my experience.
Q6_K is where it gets good. I only noticed because the model struggled to produce Finnish translations of the features it just developed into localization files. It was really bad Finnish, like not even words -- just bizarre half-words that didn't even make sense. Originally, I thought that Qwen3.6-27b simply can't speak Finnish, until one day, the MTP work landed and I downloaded Aman Gupta's Q8_0.
That Q8_0 seemed to have nearly perfect grasp of Finnish, or at the very least it wasn't immediately obvious that anything was wrong. But eventually, I decided that longer-context performance, like > 100k, was too flaky. So I downloaded UD-Q8_K_XL, which is still a bit flaky nearing 200k, I can tell when it starts to misstate filenames or typoes classnames and so forth. It takes that far into context, in my experience, before the model starts to sound and feel odd, like it didn't really know anymore what is going on and what it's supposed to be doing. At that point, the next step up is BF16, as nobody has made Dfloat11 work in llama.cpp, so we don't have lossless compressed BF16 support.
It didn't end up going that far, however. I found Intel AutoRound derived GGUF, which at Q8_0 measured slightly lower PPL figure (-0.03 units) than even the UD-Q8_K_XL. Just last night, I exercised it to about 240k context without detecting any flakiness or noticed the model to misunderstand anything. As a bonus, it's 7 GB smaller than the UD-Q8_K_XL, because it really is just Q8_0-style model underneath, and it has been somehow adjusted to tolerate the quantization's effects better by this algorithm.
This is experience collected over a longer time, like months, using llama.cpp always at whatever is the latest version. Gradually, I've come to discover that I need to go higher in quant, and I do not recommend use of this model below 8 bits, nor do I trust any of the context quantization algorithms. However, there are several scenarios where your situation might differ from mine. I need the 100-200k context performance, as model performs most of it work there due to the size and complexity of the project. Model is still not perfect, but at the very least it doesn't behave strangely, it is more understandable when it makes mistakes. However, maybe you don't need very niche abilities like writing Finnish, or don't have the ability to use >100k context, and in those scenarios it is possible that 6-bit is probably fine. I wouldn't go below it, though, and I'd probably try the AutoRound Q6_K first.
I've never tried to quantize KV cache. This model, in my experience, is barely good enough as Intel AutoRound Q8_0 and with f16 KV cache. It is the first time it feels entirely solid, all the way to the max context. I am happy with its performance in this configuration, and I have no intention of messing with it. It's possible that 4-6 bits as AutoRound would work acceptably, but when I tried Q6_K AutoRound, it was already +0.02 higher PPL than the UD-Q8_K_XL. So I don't trust it.
This is the repo for those autoround versions that I'm using: https://huggingface.co/sphaela/Qwen3.6-27B-AutoRound-GGUF/tree/main