Optimal Quantization Bit-Depths for Peak Throughput

For Llama, Mistral, and Gemma, 4-bit quantization (e.g., Q4_K_M) often delivers the best throughput on consumer CPUs and edge devices, with some models like Gemma 4 31B showing up to 2x faster inference than 8-bit, while retaining around 98.9% accuracy. 8-bit quantization maintains over 99.9% accuracy with notable speed gains.

The top 3

  1. Q4_K_M: Peak Throughput's Go-To Quantization: For Llama, Mistral, and Gemma models in llama.cpp, Q4_K_M is widely recommended as the standard default for optimal throughput, delivering 2-3x faster inference speeds than FP16 with only 1-3% quality loss on consumer hardware.
  2. Q8_0: When Quality Trumps Max Speed: While Q8_0 quantization offers near-lossless quality (within 0.02-0.05 perplexity points of FP16) for Llama, Mistral, and Gemma, it typically requires double the VRAM of Q4_K_M and can result in lower overall throughput if it limits the model size or causes memory spillover to the CPU. It is often preferred for critical accuracy tasks like coding.
  3. Bigger Model, Lower Bit-Depth: The Throughput Hack: For peak throughput, selecting a larger LLM (e.g., 70B parameters) quantized to Q4_K_M often yields superior overall capability and performance compared to running a smaller model (e.g., 8B) at a higher precision like Q8_0, even with the latter's better per-token accuracy. Model size scales capability more than quantization precision.

Sources

Open the full topic