CoolFace
Modelpublic

magiccodingman/Qwen3-4B-Thinking-2507-Unsloth-MagicQuant-Hybrid-GGUF

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
2likes179downloads
Model Card

MagicQuant GGUF Hybrids - Qwen3 4B Thinking 2507

(DEPRECIATED - Part of MagicQuant v1.0 which had significant flaws. Please utilize v2.0 which is production ready)

MagicQuant is an automated quantization, benchmarking, and evolutionary hybrid-GGUF search system for LLMs.

Each release includes models optimized to outperform standard baseline quants (Q8, Q6, Q5, Q4). If a baseline GGUF exists in this repo, the evolutionary engine couldn’t beat it. If a baseline is missing, it’s because a hybrid configuration outperformed it so completely that including the baseline would've been pointless.

These hybrid GGUFs are built to be as small, fast, and low-drift as possible while preserving model capability.

To dive deeper into how MagicQuant works, see the main repo: MagicQuant on GitHub (by MagicCodingMan)

Notes:

  • —The HuggingFace hardware compatibility where it shows the bits is usually wrong. It doesn't understand hybrid mixes, so don't trust it.
  • —Naming scheme can be found on the MagicQuant Wiki.
  • —(tips) Less precision loss means less brain damage. More TPS means faster! Smaller is always better right?

Precision Loss Guide

  • —0–0.1% → God-tier, scientifically exact
  • —0.1–1% → True near-lossless, agent-ready
  • —1–3% → Minimal loss, great for personal use
  • —3–5% → Borderline, but still functional
  • —5%+ → Toys, not tools, outside MagicQuant’s scope

Learn more about precision loss here.

Table - File Size + TPS + Avg Precision Loss

model_namefile_size_gbbench_tpsavg_prec_loss
mxfp4_moe-O-Q6K-EQKUD-Q8_03.90369.090.0989%
mxfp4_moe-Q-Q5K-EKOUD-Q6K3.03394.060.1278%
iq4_nl-EQKOUD-Q6K3.08413.990.1740%
mxfp4_moe-QK-IQ4NL-O-MXFP4-EUD-Q6K2.84430.230.3832%
Q5_K2.69375.720.5973%
Q4_K_M2.33366.541.6668%
mxfp4_moe-QKU-IQ4NL-O-MXFP4-D-Q5K-E-Q6K2.30412.132.2740%
IQ4_NL2.23450.752.4657%
mxfp4_moe-EQOU-IQ4NL-KD-Q6K2.37472.252.5049%

Table - PPL Columns

model_namegengen_ercodecode_ermathmath_er
mxfp4_moe-O-Q6K-EQKUD-Q8_010.00810.24501.59360.01286.90010.1413
mxfp4_moe-Q-Q5K-EKOUD-Q6K9.99570.24411.59220.01276.90360.1412
iq4_nl-EQKOUD-Q6K9.96870.24311.59270.01276.89240.1409
mxfp4_moe-QK-IQ4NL-O-MXFP4-EUD-Q6K10.08580.24601.59490.01266.90320.1403
Q5_K10.09930.24731.59780.01286.92560.1413
Q4_K_M10.32390.25361.60930.01296.94230.1412
mxfp4_moe-QKU-IQ4NL-O-MXFP4-D-Q5K-E-Q6K10.41640.25691.61430.01306.98250.1423
IQ4_NL10.37180.25481.61250.01297.06060.1452
mxfp4_moe-EQOU-IQ4NL-KD-Q6K10.37800.25471.61780.01327.04150.1443

Table - Precision Loss Columns

model_nameloss_generalloss_codeloss_math
mxfp4_moe-O-Q6K-EQKUD-Q8_00.02500.11940.1524
mxfp4_moe-Q-Q5K-EKOUD-Q6K0.14880.03140.2032
iq4_nl-EQKOUD-Q6K0.41860.06280.0406
mxfp4_moe-QK-IQ4NL-O-MXFP4-EUD-Q6K0.75120.20100.1974
Q5_K0.88610.38320.5225
Q4_K_M3.12971.10570.7649
mxfp4_moe-QKU-IQ4NL-O-MXFP4-D-Q5K-E-Q6K4.05371.41991.3484
IQ4_NL3.60821.30682.4820
mxfp4_moe-EQOU-IQ4NL-KD-Q6K3.67011.63982.2048

Baseline Models (Reference)

Table - File Size + TPS + Avg Precision Loss

model_namefile_size_gbbench_tpsavg_prec_loss
BF167.50249.860.0000%
Q8_03.99360.780.1028%
Q6_K3.08404.720.1740%
Q5_K2.69375.720.5973%
Q4KM2.33366.541.6668%
IQ4_NL2.23450.752.4657%
MXFP4_MOE2.00466.667.9498%

Table - PPL Columns

model_namegengen_ercodecode_ermathmath_er
BF1610.01060.24511.59170.01276.88960.1410
Q8_010.01740.24541.59310.01286.90010.1413
Q6_K9.96870.24311.59270.01276.89240.1409
Q5_K10.09930.24731.59780.01286.92560.1413
Q4KM10.32390.25361.60930.01296.94230.1412
IQ4_NL10.37180.25481.61250.01297.06060.1452
MXFP4_MOE10.94650.26591.66450.01387.57350.1563

Table - Precision Loss Columns

model_nameloss_generalloss_codeloss_math
BF160.00000.00000.0000
Q8_00.06790.08800.1524
Q6_K0.41860.06280.0406
Q5_K0.88610.38320.5225
Q4KM3.12971.10570.7649
IQ4_NL3.60821.30682.4820
MXFP4_MOE9.34914.57379.9266

Support

I’m a solo developer working full time for myself to achieve my dream, pouring nights and weekends into open protocols and tools that I hope make the world a little better. If you chip in, you're helping me keep the lights on while I keep shipping.

Click here to see ways to support - BTC, Paypal, GitHub sponsors.

Or, just drop a like on the repo :)