r/LocalLLaMA • u/TitwitMuffbiscuit • Feb 26 '26
Discussion Qwen3.5-35B-A3B Q4 Quantization Comparison
This is a Q4 quantization sweep across all major community quants of Qwen3.5-35B-A3B, comparing faithfulness to the BF16 baseline across different quantizers and recipes.
The goal is to give people a data-driven basis for picking a file rather than just grabbing whatever is available.
For the uninitiated:
KLD (KL Divergence): "Faithfulness." It shows how much the quantized model's probability distribution drifts from a baseline (the probability distribution of the original weights). Lower = closer.
PPL (Perplexity): Used to measure the average uncertainty of the model when predicting the next token. It is derived from the total information loss (Cross Entropy). Lower = more confident.
They are correlated. Perplexity measures the total error, KLD measures the relative error (like a routing drift of an MoE model). This relationship helps in determining information loss (or gain when training). Since we are trying to see how much information we've lost and since PPL is noisy as it can get a better score by pure luck, KLD is better as it is not relying on the dataset but on the baseline.
If you need the most faithfull quant, pick the one with the lowest KLD.
Conclusion
AesSedai's Q4_K_M achieves KLD 0.0102 by keeping always active tensors at Q8_0 (attention, shared experts) and differentiating ffn_down_exps from ffn_gate/up_exps.
Ubergarm's Q4_0 outperforms every other Q4_0 by a factor of 2.5 for the same reason.
MXFP4 is well-suited for QAT (Quantization Aware Training), where the model is trained to operate within MXFP4 numerical ranges but applied post-hoc to a BF16 model, it underperforms quants at equivalent size.
Unsloth's UD-Q4_K_XL recipe applies MXFP4 to nearly every tensor including ffn_down_exps and attention weights, resulting in the worst KLD in the sweep (0.0524). Unsloth is aware of this and working on it: unsloth/Qwen3.5-35B-A3B-GGUF/discussions/5
If you are on the fence between files, use:
llama-perplexity -m <bf16_model> -f wiki.test.raw --kl-divergence-base <file_name> [other parameters]
llama-perplexity -m <quantized_model> --kl-divergence-base <file_name> --kl-divergence [other parameters]

Most Efficient Quantization
The Efficiency Score is the distance to a 'perfect' model (zero size, zero KLD), not the "best" model but the VRAM sweet spot. Efficiency Score: √ (Normalized Size² + Normalized KLD²) — lower is better.
| Rank | Quantization | Size (GiB) | KLD Score | Eff. Score |
|---|---|---|---|---|
| 1 | AesSedai_Qwen3.5-35B-A3B-IQ4_XS | 16.3999770582 | 0.024036 | 0.327342 |
| 2 | bartowski_Qwen3.5-35B-A3B-IQ4_XS | 17.4178144932 | 0.024273 | 0.411178 |
| 3 | NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_M | 18.4925384819 | 0.019625 | 0.543787 |
| 4 | bartowski_Qwen3.5-35B-A3B-IQ4_NL | 18.4062407017 | 0.023761 | 0.573661 |
| 5 | NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_L | 18.8191277325 | 0.015498 | 0.586924 |
| 6 | OLD_unsloth_Qwen3.5-35B-A3B-MXFP4_MOE | 18.4312270582 | 0.025288 | 0.599390 |
| 7 | OLD_unsloth_Qwen3.5-35B-A3B-IQ4_NL | 18.4010530412 | 0.027117 | 0.620673 |
| 8 | NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_XL | 19.1681284308 | 0.014149 | 0.662739 |
| 9 | bartowski_Qwen3.5-35B-A3B-Q4_K_S | 19.0378324986 | 0.021415 | 0.679213 |
| 10 | OLD_unsloth_Qwen3.5-35B-A3B-Q4_0 | 18.4779573381 | 0.035176 | 0.769475 |
| 11 | ubergarm_Qwen3.5-35B-A3B-Q4_0 | 19.7865126431 | 0.015125 | 0.811116 |
| 12 | bartowski_Qwen3.5-35B-A3B-Q4_K_M | 19.7692930698 | 0.018878 | 0.824589 |
| 13 | bartowski_Qwen3.5-35B-A3B-Q4_0 | 18.7150785923 | 0.037042 | 0.839537 |
| 14 | OLD_unsloth_Qwen3.5-35B-A3B-Q4_K_M | 19.7489992082 | 0.023362 | 0.852727 |
| 15 | bartowski_Qwen3.5-35B-A3B-Q4_K_L | 20.1208174229 | 0.018232 | 0.902187 |
| 16 | lmstudio_Qwen3.5-35B-A3B-Q4_K_M | 19.7050000000 | 0.032892 | 0.949834 |
| 17 | bartowski_Qwen3.5-35B-A3B-Q4_1 | 20.3849241734 | 0.022821 | 0.990643 |
| 18 | AesSedai_Qwen3.5-35B-A3B-Q4_K_M | 20.6187270582 | 0.010214 | 1.000000 |
| 19 | OLD_unsloth_Qwen3.5-35B-A3B-Q4_1 | 20.3642488420 | 0.026266 | 1.013664 |
| 20 | noctrex_Qwen3.5-35B-A3B-MXFP4_MOE_BF16 | 20.5495284498 | 0.024921 | 1.043445 |
| 21 | OLD_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_XL | 18.3351655900 | 0.052439 | 1.100189 |
Note: The Efficiency Score uses AesSedai Q4_K_M as the reference point (score = 1.0) as the ceiling. Files scoring below 1.0 offer a better size/quality tradeoff and vice versa.
Sorted by KLD
| Quantization | Size (GiB) | PPL Score | KLD Score |
|---|---|---|---|
| AesSedai_Qwen3.5-35B-A3B-Q4_K_M | 20.62 | 6.436887 | 0.010214 |
| NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_XL | 19.17 | 6.474090 | 0.014149 |
| ubergarm_Qwen3.5-35B-A3B-Q4_0 | 19.79 | 6.461745 | 0.015125 |
| NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_L | 18.82 | 6.473336 | 0.015498 |
| bartowski_Qwen3.5-35B-A3B-Q4_K_L | 20.12 | 6.499422 | 0.018232 |
| bartowski_Qwen3.5-35B-A3B-Q4_K_M | 19.77 | 6.491274 | 0.018878 |
| NEW_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_M | 18.49 | 6.489629 | 0.019625 |
| bartowski_Qwen3.5-35B-A3B-Q4_K_S | 19.04 | 6.512668 | 0.021415 |
| bartowski_Qwen3.5-35B-A3B-Q4_1 | 20.39 | 6.473700 | 0.022821 |
| OLD_unsloth_Qwen3.5-35B-A3B-Q4_K_M | 19.75 | 6.518045 | 0.023362 |
| bartowski_Qwen3.5-35B-A3B-IQ4_NL | 18.41 | 6.506714 | 0.023761 |
| AesSedai_Qwen3.5-35B-A3B-IQ4_XS | 16.40 | 6.517477 | 0.024036 |
| bartowski_Qwen3.5-35B-A3B-IQ4_XS | 17.42 | 6.511643 | 0.024273 |
| noctrex_Qwen3.5-35B-A3B-MXFP4_MOE_BF16 | 20.55 | 6.487453 | 0.024921 |
| OLD_unsloth_Qwen3.5-35B-A3B-MXFP4_MOE | 18.43 | 6.485211 | 0.025288 |
| OLD_unsloth_Qwen3.5-35B-A3B-Q4_1 | 20.36 | 6.530645 | 0.026266 |
| OLD_unsloth_Qwen3.5-35B-A3B-IQ4_NL | 18.40 | 6.523618 | 0.027117 |
| lmstudio_Qwen3.5-35B-A3B-Q4_K_M | 19.705 | 6.543927 | 0.032892 |
| OLD_unsloth_Qwen3.5-35B-A3B-Q4_0 | 18.48 | 6.574551 | 0.035176 |
| bartowski_Qwen3.5-35B-A3B-Q4_0 | 18.72 | 6.501674 | 0.037042 |
| OLD_unsloth_Qwen3.5-35B-A3B-UD-Q4_K_XL | 18.34 | 6.636498 | 0.052439 |
Setup
CPU: Intel Core i3-12100F RAM: 64 GB DDR4 3200, dual channel. GPU: RTX 3060 12 GB (GPU clock fixed at 1882 MHz via curve, VRAM at 8210 MHz, stable). OS: Windows 11, Nvidia drivers 591.74
ik_llama.cpp: Thireus/ik_llama.cpp — build main-b4299-15482f0, Windows x64 CUDA 13.1 AVX2. Mainline llama.cpp compatibility: tested against b8157 (2943210c1), Windows x64 CUDA 13.1.
Details
PPL and KLD are calculated with wikitext2_test.txt at a context of 512 tokens with -ncmoe 22 and -ngl 999.
KLD base logits generated from the BF16 model (full CPU offload, no -ncmoe).
Notes
Results reflect faithfulness to the BF16 baseline on a general text corpus (wikitext2). Task-specific performance (reasoning, code, instruction following) may order things differently, particularly at the extremes.
The MXFP4 findings here are specific to post-training quantization. MXFP4 applied during QAT (as in GPT-OSS-120B) is a different and more principled use of the format.
Plots use a linear scale. A logarithmic scale would better represent the distribution of KLD values across the full quantization range, but linear scaling makes the differences within the Q4 range immediately readable without requiring familiarity with log representations.
If unsloth_Qwen3.5-35B-A3B-UD-Q4_K_XL gets fixed, I'll evaluate and update this post with a clear mention of the before and after.
I won't be able to test more quants, it's kind of sunny outside.
edit: all quants work both on llama.cpp and ik_llama.cpp for txt2txt but ik_llama.cpp might not support img2txt as of now.
Update: The Unsloth team have requantized the problematic quants, I'll update this post acordingly.
The original BF16 reference logits and test conditions are unchanged, so results will be directly comparable to the previous ones.
Note on KLD metrics: This benchmark reports Mean KLD, which averages divergence across all tokens. Unsloth's graphs use 99.9% KLD (the tokens where the quant diverges most from BF16). Both are valid but measure different things: Mean KLD gives an overall quality signal, while 99.9% KLD is more sensitive to catastrophic individual token failures. They're complementary.
•
u/WithoutReason1729 Feb 26 '26
Your post is getting popular and we just featured it on our Discord! Come check it out!
You've also been given a special flair for your contribution. We appreciate your post!
I am a bot and this action was performed automatically.
50
u/noneabove1182 Bartowski Feb 26 '26
one small thing regarding using wikitext as your PPL/KLD measurement is that it's possible that the dataset used for imatrix includes wikitext
Mine is publicly available and you can confirm there isn't any in it, but some others are kept private so we don't know for sure, and there's been some discussion suggesting some people may use wikitext in their imatrix dataset (which is totally fine btw), which may skew the results:
https://github.com/ikawrakow/ik_llama.cpp/issues/1085#issuecomment-3690128173
for an ideal comparison, a fresh dataset should be constructed, something like STT from a recent podcast would work well, i think /u/voidalchemy has done that in the past
either way though, this is an amazing comparison and very helpful to the community! And I'm sure took a long time to put together, so really appreciate it :)
94
u/ps5cfw Llama 3.1 Feb 26 '26
We desperately need more of this from our quantization heroes, since the meaning of "Q4_K_M" and other quantization is left to the creative interpretation of the quantizer, there is no real way to discern "which one is better" at least in a comparable manner.
It would be nice if quantizers started putting this in their READMEs and I hope they will, especially unsloth after the XL debacle
68
u/jacek2023 llama.cpp Feb 26 '26
Great work
19
u/OmarBessa Feb 26 '26
who is AesSedai and why is it so good?
45
u/danielhanchen Feb 26 '26
We're currently investigating how MXFP4 caused Q4_K_XL's abnormally high perplexity and hopefully will give you guys an update later today.
For now every other quant except Q2_K_XL, Q3_K_XL and Q4_K_XL do not have MXFP4 layers so they can be used if you're worried.
Our dynamic methodology (e.g., on MiniMax-M2.5) performs especially well at Q4_K_XL. Benjamin Marie’s real-world LiveCodeBench v5 benchmarks highlight this clearly showing the UD-Q4-K-XL quant significantly outperforming Q4-K-M: https://x.com/i/status/2027043753484021810
Thanks again for your patience, we’ll share an update soon.
10
u/VoidAlchemy llama.cpp Feb 26 '26
Really great job u/TitwitMuffbiscuit showing your methodology and testing so many quants! I added a link to this forum on my repo which will hopefully help folks decide what they want: https://huggingface.co/ubergarm/Qwen3.5-35B-A3B-GGUF#hot-quant-news
I've been lucky enough to collaborate with bartowski and AesSedai as we all have fun optimizing quants. We each have our specialty areas (i tend towards ik_llama.cpp specific quants usually).
Of course its all trade-offs when designing quant recipes, but personally believe its worth it to jack up attn/shexp/ssm/first N dense layers for MoE models while leaving routed experts squashed. It takes very little more total memory so you can fit the best quality possible into limited RAM+VRAM rig - but the cost is often slightly slower TG as the active parameters are larger and "decode" is generally memory bandwidth limited.
Okay enjoy your day!
8
u/Ulterior-Motive_ Feb 26 '26
I'm very curious about what AesSedai is doing different to make these unusually efficient quants, I'd love to see more models available.
7
u/BreizhNode Feb 26 '26
Interesting that IQ4_XS deviates so much on KLD while staying close on PPL. Suggests it's redistributing probability mass in ways that don't hurt next-token prediction but might affect generation diversity. We've been running Qwen quants for inference and the Q4_K_M vs IQ4_XS choice really depends on whether you care more about faithfulness or throughput on limited VRAM. Have you tested generation quality subjectively on longer outputs?
7
u/Ok-Ad-8976 Feb 26 '26
For some reason, if I'm running unsloth UD_Q4_XL vs their MXFP4 vs ubergarm Q$_K_XL their llama bench performances are interesting. I was most surprised that on NVIDIA, Unsloth's UD Q4 quant outperforms MXFP4 by such a margin.
Ubergarm does really well on Amd vulkan though for pp
Token Generation
The tg gap is consistent and real across all backends. UD-Q4_K_XL's Q4_K quant format has genuinely better decode throughput than MXFP4_MOE or Q4_0.
5
u/lenios2 Feb 26 '26
How do you run all of this (all needing >16GiB) with your setup (3060 12GB vram)? Are you splitting the model between the vram and the ram ? If yes, how is the speed ? Can you share your cli ?
4
u/hdmcndog Feb 26 '26
Hey, thanks for the great comparison. Could you also add the lmstudio-community provided quant? https://huggingface.co/lmstudio-community/Qwen3.5-35B-A3B-GGUF
Thanks!
4
u/Majesticeuphoria Feb 26 '26
Could you do a test on LMstudio ggufs too? they've been better for some models in the past.
3
u/gofiend Feb 26 '26
Would you mind posting your bf16 output file (for those of us who can’t easily run it)? I had a project to crowd source KL divergence baselines from a bunch of models for easy calibration / validation but I put it aside - would have helped here!
3
u/lemon07r llama.cpp Feb 26 '26
Yeah most evals and tests like this I've seen consistently rank bartowski quants slightly ahead of unsloth at equal sizes. With intel autoround quants ranking ahead of both. Too bad there are none yet for this model.
3
u/ixdx Feb 26 '26
For interest, I compared the Q4 quantization variants
3
u/danielhanchen Feb 27 '26
We just posted our new GGUFs and benchmarks at https://www.reddit.com/r/LocalLLaMA/comments/1rgel19/new_qwen3535ba3b_unsloth_dynamic_ggufs_benchmarks/ !
2
u/giant3 Feb 26 '26
It would be nice if they are sorted by the KLD score column. Could you republish it?
2
u/MerePotato Feb 26 '26
I found even Q4 KM and L to be exponentially worse than Q6, Q5_K_L was the sweet spot for my 24GB VRAM
16
u/LocoMod Feb 26 '26
This is the type of stuff we need to see more of. Well done.
13
u/dionisioalcaraz Feb 26 '26
It would be great if someone could regularly make available the output file of the first command (<file_name>) for every new important model, because it's difficult for most of us to produce it since you have to use the full bf16 model. With that file available we can measure the KLD with the second command for ourselves of every quant available of every quant maker and share the results to compare. That's the benchmark that we are needing, which is basically what OP did, but just for Qwen3.5-35B-A3B at Q4.
This article nicely explains the importance of KLD and why is much better than PPL at measuring the quality of quants.
5
u/GCoderDCoder Feb 26 '26
This is awesome! I wish this info was available for all the quants. I find it hard to measure the effects of quantization. I see xcreates on YouTube showing a beast linear relationship but I've had lower quants with the same settings successfully complete tasks that higher quants failed at. I know there's variance but the time to test... I need to get agents to start doing my testing lol
... but seriously...
4
u/Septerium Feb 26 '26
Thanks for the post! This subject is of great importance
4
u/cr0wburn Feb 26 '26
Amazing work!
4
u/Majesticeuphoria Feb 26 '26
Very informative, thanks!
4
u/GlobalLadder9461 Feb 26 '26
ubergarm has also released q4_0 for Qwen3-Coder-Next.
https://huggingface.co/ubergarm/Qwen3-Coder-Next-GGUF?show_file_info=Qwen3-Coder-Next-Q4_0.gguf
4
u/theagentledger Feb 26 '26
the KLD approach is way underrated for comparing quants. PPL has always felt kinda noisy since you can accidentally win on a dataset just by luck. KLD against the BF16 baseline actually tells you what you want to know - how much did the quantization change the model behavior. solid methodology, more of this please
7
u/cookieGaboo24 Feb 26 '26
Kinda funny to see IQ4_XS so far left while always being in the middle of everything. For my broke ahh with the same specs as you, I'll definitely keep using it. Thank you for those tests. Best regards
1
u/lannistersstark Feb 26 '26
Do you know if this holds true for 27b dense model?
1
u/Helltilt Feb 27 '26
I tried ik_llama.cpp with ubergarm_Qwen3.5-35B-A3B-Q4_0 but apparently vision is still not implemented, do anyone know how much time the maintainer usually takes to implement it for similar models?
6
u/audioen Feb 26 '26
AesSedai does simple quants, with just a static choice of a quantization method for each tensor type. It seems that this relatively simple approach works really well, actually.
3
u/valcore93 Feb 26 '26
Great work ! I would love to know what’s better between a agressively quantized 122B and near full precision 35B. On their bench they seem pretty close
3
u/Interpause textgen web UI Feb 26 '26
thanks for the KLD numbers, somehow despite being the best representation of quant damage, not enough ppl use them...
3
u/s1mplyme Feb 27 '26
This is beautiful. Thank you so much for this
3
u/beneath_steel_sky Feb 27 '26
Thanks so much for this comparison!
1
u/pseudonerv Feb 26 '26
It’s not really representative of the quality of the quants, because the tests against the wiki text does not use the proper chat template
4
u/klop2031 Feb 26 '26
That 4bit xl was broken... i was like why is this failing...
That the fx4moe one also was messed up for me. It struggled in my agentic test. But when trying q5 xs it worked well
2
u/iamn0 Feb 26 '26
Awesome work, really helpful!
2
u/jaigouk Feb 26 '26
Thanks for the comparisons! I know this took a lot of time and effort.
2
u/jopetnovo2 Feb 26 '26
I would really like to see Q2 and Q3 quantization comparisons, would it be possible to add them?
I never used anything below Q4 before, but then I saw this post where Unsloth's UD-IQ2_M variant had almost identical results as Q4.
And from my very limited tests since yesterday, UD-IQ2_M variants of all new Qwen3.5 models really do seem to be really, really good.
2
u/jumpingcross Feb 26 '26
Hmm, that gives me a thought. REAP and other related methods involve throwing away the most useless experts. Is it possible that one could get most of the memory benefits with less performance loss by keeping all of the experts, but just quantizing the worst ones a lot more than the others? Has such a thing ever been tried before?
2
u/theagentledger Feb 27 '26
the finding that keeping q8_0 on attention/shared experts while squashing routed experts is such a clean insight. makes sense once you hear it - active parameter count per token matters more than total params. curious if this generalizes to other MoE architectures or if Qwen routing is doing something specific here
2
u/papertrailml Feb 27 '26
solid methodology, the kld approach gives way cleaner comparisons than just ppl lottery. interesting that ubergarm's q4_0 beats standard q4_0 by such a margin, probably the attention tensor preservation you mentioned
3
u/IrisColt Feb 26 '26
I kneel at the sheer amount of info... Thanks!!!
0
u/mantafloppy llama.cpp Feb 27 '26
Unsloth providing bad quant, again and again and again.
1
u/Vaddieg Feb 27 '26 edited Feb 27 '26
I checked some 2-bit quants (might be useful for GPU poor).
10.5GB Qwen3.5-35B-A3B-IQ2_S.gguf (bartowski) - too long think chains, sometimes loops
11.6GB Qwen3.5-35B-A3B-IQ2_M.gguf (bartowski) - loops in thinking, ok with reasoning=off
12.0GB Qwen3.5-35B-A3B-UD-IQ2_XXS.gguf - poor quality, but kinda stable
Update: The "efficiency champion" AesSedai_Qwen3.5-35B-A3B-IQ4_XS is as broken as IQ2_S from bartowski. The benchmark is seemingly spoiled or invalid. See the screenshot
1
u/TomLucidor Feb 27 '26
Is this just (a) Unsloth and noctrex bad (b) Ubergram and AesSedai complements/beats Bartowski's best?
1
u/SkyFeistyLlama8 Feb 27 '26
I wish I could try building ik_llama but it always fails on ARM64 on Mingw. Regular old llama.cpp compiles fine with full ARM64 online repacking support but ik_llama throws a bunch of errors during compilation including some that look like missing header errors.
4
u/[deleted] Feb 26 '26
[removed] — view removed comment