How to Benchmark Generation Speed After Quantizing to Confirm the Smaller Model Is Actually Faster
Measure prefill and decode tokens per second before and after quantizing on the same prompts, and check peak memory too.
WORKFLOW TAG
Choose model precision and measure its effects on size and output.
Measure prefill and decode tokens per second before and after quantizing on the same prompts, and check peak memory too.
List the layers that break when quantized, keep them at full precision, quantize the rest, and check the mixed model on your…
Multiply parameters by bytes per weight at the target precision, add room for the KV cache and activations, and compare the total…
Check whether a few activation outliers dominate the error, and use an activation-aware method when plain rounding destroys those weights.
Check the hardware table for your target device first, pick a format that runs there, and only then compare quality and speed.
Measure perplexity on held-out text before and after quantizing, compare the two numbers, and reject a quantized model whose perplexity jumped.
Collect representative text from your real use, use it as the calibration set, and check the quantized model on held-out examples from…
Quantize the same model with both methods at the same group size, compare quality on the same test, and keep the method…
Diagnose a Mac that runs llama.cpp on CPU instead of Metal: check for a Rosetta build, confirm arm64, and push layers to…
Run faster-whisper on a plain CPU with int8 compute, no GPU needed, and measure the real-time factor of your own recordings.