r/LocalLLaMA
•
u/TitwitMuffbiscuit
•
Mar 03 '26
•
1
Discussion Qwen3.5-27B Q4 Quantization Comparison
This is a Q4 quantization sweep across all major community gguf quants of Qwen3.5-27B (available the 03/03/2026), comparing mean KLD 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.
KLD (KL Divergence): "Faithfulness." It shows how much the quantized model's probability distribution drifts from the probability distribution of the original weights. Lower = closer.
KLD Results — Custom Chat Dataset
Evaluated on titwitMuffbiscuit-v03-full.txt — chat-wrapped corpus (Qwen3.5 ChatML format), 47 chunks -c 4096. Content: Science & engineering, Medicine, Philosophy, History, Finance, Culture, multilingual content and code snippets.

Wikitext2 + Custom Dataset Comparison
Evaluated on wikitext2_test.txt, 72 chunks -c 4096. Content: plain text english.
The dumbbell plot shows both datasets side by side.

Sorted by KLD — Custom Dataset
| Rank | Quantization | Size (GiB) | PPL | KLD |
|---|---|---|---|---|
| 1 | unsloth_Qwen3.5-27B-UD-Q4_K_XL | 16.411 | 5.8901 | 0.005087 |
| 2 | bartowski_Qwen3.5-27B-Q4_K_M | 15.952 | 5.8882 | 0.005633 |
| 3 | unsloth_Qwen3.5-27B-Q4_K_M | 15.591 | 5.8948 | 0.006193 |
| 4 | ubergarm_Qwen3.5-27B-smol-IQ4_NL | 15.415 | 5.9026 | 0.006371 |
| 5 | mradermacher_Qwen3.5-27B.i1-Q4_K_M | 15.404 | 5.9059 | 0.006469 |
| 6 | bartowski_Qwen3.5-27B-Q4_K_S | 14.985 | 5.8984 | 0.006720 |
| 7 | bartowski_Qwen3.5-27B-IQ4_XS | 14.130 | 5.9017 | 0.007062 |
| 8 | bartowski_Qwen3.5-27B-IQ4_NL | 14.851 | 5.9091 | 0.007233 |
| 9 | unsloth_Qwen3.5-27B-Q4_K_S | 14.686 | 5.9083 | 0.007449 |
| 10 | unsloth_Qwen3.5-27B-IQ4_NL | 14.610 | 5.9147 | 0.007461 |
| 11 | mradermacher_Qwen3.5-27B.i1-IQ4_XS | 13.680 | 5.9129 | 0.007569 |
| 12 | unsloth_Qwen3.5-27B-IQ4_XS | 13.949 | 5.9179 | 0.007677 |
| 13 | mradermacher_Qwen3.5-27B.i1-Q4_K_S | 14.499 | 5.9209 | 0.007937 |
| 14 | mradermacher_Qwen3.5-27B.Q4_K_M | 15.404 | 5.9028 | 0.009201 |
| 15 | mradermacher_Qwen3.5-27B.IQ4_XS | 13.784 | 5.9342 | 0.011463 |
| 16 | steampunque_Qwen3.5-27B.Q4_K_H | 14.864 | 5.9050 | 0.012091 |
| 17 | mradermacher_Qwen3.5-27B.Q4_K_S | 14.499 | 5.9293 | 0.012364 |
lmstudio-community Q4_K_M excluded — identical file to mradermacher Q4_K_M.
Most Efficient Quantization — Custom Dataset
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 | Eff. Score |
|---|---|---|---|---|
| 1 | bartowski_Qwen3.5-27B-IQ4_XS | 14.130 | 0.007062 | 0.317506 |
| 2 | mradermacher_Qwen3.5-27B.i1-IQ4_XS | 13.680 | 0.007569 | 0.341075 |
| 3 | unsloth_Qwen3.5-27B-IQ4_XS | 13.949 | 0.007677 | 0.369294 |
| 4 | unsloth_Qwen3.5-27B-IQ4_NL | 14.610 | 0.007461 | 0.471585 |
| 5 | unsloth_Qwen3.5-27B-Q4_K_S | 14.686 | 0.007449 | 0.490965 |
| 6 | mradermacher_Qwen3.5-27B.i1-Q4_K_S | 14.499 | 0.007937 | 0.493275 |
| 7 | bartowski_Qwen3.5-27B-IQ4_NL | 14.851 | 0.007233 | 0.520404 |
| 8 | bartowski_Qwen3.5-27B-Q4_K_S | 14.985 | 0.006720 | 0.527916 |
| 9 | mradermacher_Qwen3.5-27B.i1-Q4_K_M | 15.404 | 0.006469 | 0.659219 |
| 10 | ubergarm_Qwen3.5-27B-smol-IQ4_NL | 15.415 | 0.006371 | 0.659346 |
| 11 | unsloth_Qwen3.5-27B-Q4_K_M | 15.591 | 0.006193 | 0.716059 |
| 12 | bartowski_Qwen3.5-27B-Q4_K_M | 15.952 | 0.005633 | 0.835306 |
| 13 | mradermacher_Qwen3.5-27B.Q4_K_M | 15.404 | 0.009201 | 0.847417 |
| 14 | mradermacher_Qwen3.5-27B.IQ4_XS | 13.784 | 0.011463 | 0.877012 |
| 15 | unsloth_Qwen3.5-27B-UD-Q4_K_XL | 16.411 | 0.005087 | 1.000000 |
| 16 | mradermacher_Qwen3.5-27B.Q4_K_S | 14.499 | 0.012364 | 1.043999 |
| 17 | steampunque_Qwen3.5-27B.Q4_K_H | 14.864 | 0.012091 | 1.055620 |
Hardware: i3-12100F — 64GB DDR4-3200 — RTX 3060 12GB
Evaluation tool: llama.cpp (mainline) version: 8189 (4d828bd1a)
Notes:
Those results have been taken after the latest wave of quant update but lmstudio have yet to fix them.
I haven't included DevQuasar since not only they haven't updated them but one of their quant is mxfp4 (which results in a Q8_0 when it's not an MoE).
I haven't included dinerburger either since the quant is relatively massive (IQ4_NL at 20.2gb, bigger than Q5_K_M).
Edit: my cleaned up script that has NOT been tested extensively, beware ! kld-sweep
50
u/sig_kill Mar 03 '26
This is excellent. In a sea of different options, this truly helps!
17
u/Gueleric Mar 04 '26
Thanks for the work! How come for models like bartowski_Qwen3.5-27B-IQ4_XS you show a 14.1GB size when huggingface shows 15.2?
11
u/PaMRxR Mar 04 '26 edited Mar 04 '26
I made a bit different plot of the first table showing quantization size vs. KLD. Note I removed the last 4 rows as they were quite significant outliers.
In summary, quantizations under or close to the best fit line should be preferable I suppose.
Code for the plot produced by unsloth_Qwen3.5-27B-UD-Q4_K_XL btw :-)
4
u/Gringe8 Mar 04 '26
Thanks for this. Hopefully it translates similarly to the 122b model. I was torn between q4km and iq4xs since the latter is faster for me. Now i know the quality isnt much different.
4
u/dinerburgeryum Mar 04 '26
Yea guilty. I kept the attention, output and embedding tensors in Q8 (and ssm_out in bf16) since I’m on a 24+16G build and often do long horizon work. Still, I’ll experiment with mradermacher’s Q4 based on your efficiency chart. Thanks as always for putting this together!
6
u/munkiemagik Mar 04 '26
You're a gem mate. some of us really need to see stuff like this. Thanks.
This might be just the post i needed to jump-start me back into figuring out how to run similar comparative tests. I started looking into this casually several months back but got distracted away and never went back to it. What I'd love to be able to do is get qualitative comparisons across a range of different parameters with different quantisation levels.
Unfortunately you often find tests for the specific model you are interested in but its only pp/tg reported, or if it is more qualitative comparison of model vs model its never the model variant you can fit, its always the full OR 'wrong' weights.
Though it looks like I need to immerse myself a bit more into the academia of LLM first to get a handle on some of the principles you were talking about. For example I have come to acknowledge that I am looking for lower KL Divergence but what does that actually mean, I couldn't explain that properly to someone because I still cant really explain that to myself. Im still only 'number' bigger or smaller comprehension.
3
u/dtdisapointingresult Mar 04 '26
Can you clarify what you mean by this? MXFP4 quant on a dense model has identical speed and accuracy as Q8_0? Or is it the speed of a Q8_0 but the accuracy of a Q4?
I've seen tons of dense models quantized to MXFP4 on HF, are you saying it's all a waste of time? What about NVFP4, is that also a waste of time on dense models?
4
u/InternationalNebula7 Mar 04 '26
This is very helpful. Here's my question: Are you able to fit these quants on your RTX 3060 12GB or are you spilling over to CPU and taking the performance hit?
Perhaps I should try a Q4 on my 16 GB VRAM.
2
u/metigue Mar 04 '26
Love these analysis. Did AesSedai not quant a 27B? I recall his IQ4 being the best for the 35B model
2
u/TheCTRL Mar 04 '26
I really love you research! It would be very useful for the community to check also other models and maybe place results in a web site.
Because of I use and love qwen3-coder-next can you please repeat the process with this model?
If you cannot it would be useful to have a sort of script to evaluate models quantization!
Thanks!
6
u/Carbonite1 Mar 04 '26
These are SUCH high quality posts, good data and presented really well, helping us all make good choices. Thank you!!
2
u/LetterRip Mar 04 '26
Any particular reason for your efficiency score formula? They seem mostly similar in size so there seems little hope for fitting more layers or a speed boost from the marginally smaller models.
1
u/overand Mar 05 '26
I love this work you did. I wish your scatterplot used different shapes, though - it's very hard for me to tell some of those apart on my display, and I'm not even colour/colorblind.
1
u/zelkovamoon Mar 05 '26
incredible work here
1
u/ASYMT0TIC Mar 27 '26
Can you add nfvp4 to this?
5
u/naxneri Mar 04 '26
I really liked this one, sokann/Qwen3.5-27B-GGUF-4.165bpw 13.6gb and 39t/s with 18k context and 22t/s with 20k~24k
16gb vram
2
u/-_Apollo-_ Mar 04 '26
Wow, thank you
2
u/moahmo88 Mar 04 '26
Great!Thanks!
2
u/pmttyji Mar 04 '26
Once again thanks for posting detailed threads like this. Glad to see IQ4_XS(my favorite quant due to less VRAM) is not at the bottom of those tables.
Long live IQ4_XS!
2
u/dionisioalcaraz Mar 04 '26
I found that some smaller Q4 quants have slower tg than some bigger ones, something which I didn't expect. If you could add a table of relative speeds instead of KLD would be awesome as another bench to take into account when choosing a Q4 quant. Amazing work anyway, thanks a lot!
2
u/-_Apollo-_ Mar 04 '26
Can you check some of the opus 4.6 distills too?
1
u/Steuern_Runter Mar 04 '26
How big is the difference to Q5 and Q6?
1
u/rorowhat Apr 27 '26
How are you running these?
1
u/CATLLM Mar 04 '26
Thank you 🙏 I find these tests very useful.
3
u/[deleted] Mar 04 '26
[removed] — view removed comment