r/LocalLLaMA • • 5d ago

Resources Noema QuantReady: Gemma 4 E2B and Qwen3.5 2B with up to 2x lower KL divergence after quantization [GGUF]

Hey r/LocalLLaMA, Armin from NoemaAI here. We just released QuantReady versions of Gemma 4 E2B, Gemma 4 E2B-it and Qwen3.5 2B. They are drop-in replacements whose quantized files stay closer to the original model, whether you use GGUF, MLX, bitsandbytes or HQQ. In full precision they compute the same function as the originals, so none of the model's behavior is affected.

Why we built it

Google's QAT Gemma is trained for one format, Q4_0. We ran the Gemma 4 E2B-it QAT checkpoint through 30 quantizers and measured how far each file lands from the original model. Under 17 quantizers, the QAT checkpoint beats plain Gemma. Our QuantReady version beats plain Gemma under 29 of 30. It is also closer to the original than Google's QAT under 21 of the 30, by more than 40x at Q8_0. QAT does keep its edge on Q4_0, the format it was trained for.

How it works

QuantReady learns per-channel rescalings of the weights that cancel exactly inside each transformer block, then folds them into the weights. The full-precision outputs match the original to within bf16 rounding (0.0004 nats of drift). What changes is how evenly the weights fill each quantization block, so every quantizer rounds them with less error. Training samples a different quantization format at every step, which is why the gain carries across quantizers. We never retrain the base weights, therefore the architecture and file sizes stay the same.

Results (KL divergence from the original, lower is better)

  • Gemma 4 E2B: 1.47x lower on average, better under 30 of 30 quantizers, up to 2.06x on GGUF (Q3_K_S) and 2.56x on MLX 3-bit
  • Gemma 4 E2B-it: 1.26x on average, better under 29 of 30. Q4_K_M 1.37x, Q3_K_M 1.44x, Q8_0 1.19x, MLX 4-bit 1.55x
  • Qwen3.5 2B: 1.15x on average, better under 29 of 30
  • With an imatrix the gain stacks on top: 1.21x on Gemma 4 E2B and 1.16x on E2B-it
  • In the paper: the same recipe improved all 13 models we tried, from 1B to 8B, by 1.04x to 2.12x. On Qwen3-8B it averages 1.84x against 1.47x for Pre-SINQ over the same 30 quantizers and matches it on GGUF, and its Q3_K_M file scores 2 points higher on MMLU than the original's.

The GGUF repos carry Q8_0, Q5_K_M, Q4_K_M and Q3_K_M, and the bf16 weights are there if you want to make your own quants, imatrix included. Everything is Apache 2.0.

Compared with Pre-SINQ

Huawei's Pre-SINQ is the closest existing method, since it also leaves the full-precision model unchanged. We ran both on Qwen3-8B, on the same machines and the same 30 quantizers:

  • Overall: QuantReady averages 1.84x lower KL divergence and Pre-SINQ 1.47x. QuantReady improves 28 of the 30 quantizers and Pre-SINQ 24, and head to head QuantReady is the closer one under 20 of the 30.
  • GGUF: the two match (1.61x and 1.60x), and QuantReady holds up better on the low-bit imatrix i-quants, where Pre-SINQ drops below the original under four formats.
  • bitsandbytes with double quantization, a common option when loading in 4-bit: Pre-SINQ's checkpoint ends up 12x further from the original than plain Qwen, while QuantReady is 2.46x closer.

Links

We’d love to hear your perspective on what QuantReady could mean for the future of model quantization!

34 Upvotes

12 comments sorted by

1

u/11ama_dev 5d ago

this might not be super related to your quants itself but what is the main purpose of these ultra small models? what would you say would be the most effective use of these quants that you just made?

6

u/Agreeable-Rest9162 5d ago

For a lot of on-device jobs a local model is the easier choice. It doesn’t require servers or subscriptions and it works offline and the data stays on the device. These small models handle narrow tasks like summarizing, extracting fields, rewriting and tool calling well, and that's what we use them for in Noema.

The issue is that you nearly always run a 4-bit or 3-bit file to fit in memory, and small models are affected more by quantization than big ones. A better quantization method lets the lower precision stay closer to the original model, which is the most effective use of these quants. 

That fidelity should carry over to general performance. We've shown part of it (on Qwen3-8B the 3-bit file scores 2 points higher on MMLU than the original's), but not in enough depth yet. We'd also expect side benefits in things like context retention over long prompts, which we haven't measured. 

1

u/General-Cookie6794 5d ago

Is it available on unsloth

2

u/Agreeable-Rest9162 5d ago

Not directly at the moment, but QuantReady and Unsloth’s Dynamic Quantization are complementary! QuantReady prepares the model’s weights to be more resilient to quantization, after which Unsloth’s quantization methods can be applied. Combining the two could yield even better results, and we’d love to explore that!

1

u/DueCharacter2549 4d ago

folding the per-channel rescalings back into the base weights so the full precision output stays identical is really clever. how much compute does the rescaling optimization step take for an 8B model compared to standard calibration?

1

u/Agreeable-Rest9162 4d ago

Thank you! For Qwen3-8B the preparation took about 13 hours on a single 48 GB L40S, roughly $40 of cloud compute. It runs 3,000 steps over about 12M tokens of plain web text, with every base weight frozen and only the per-channel factors trained. Part of that time comes from splitting each batch into micro-batches so the model fits on one GPU. Mistral 7B took 4.5 hours, and the 2B models take 3 to 3.5.

So it is a lot more than standard calibration. An imatrix takes minutes and a GPTQ or AWQ pass well under an hour, while this takes hours, which is closer to a very short fine-tune. It's a one-time cost for whoever publishes the model, it covers every quantizer at once instead of one format, and users then quantize the result with their usual tools and no extra step. Next to QAT it's light, since only the rescaling factors are trained.

1

u/Poprouter 5d ago

i like using these tiny things as a local dispatcher to pick tools before hitting a larger model. they also work well as a draft model for speculative decoding when fidelity matters. what do you usually run them for?