Quantization's Speed Impact: Best Throughput for Llama, Mistral, Gemma

Different quantization levels critically impact LLM inference speed; Q4_K_M often balances speed and quality best, enabling Llama 3 8B to achieve 61 tokens/second on M2 Ultra at 4.9 GB, significantly faster than Q8_0's 38 tokens/second at 8.5 GB.

The top 3

  1. 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.
  2. Architectural Edge: Which LLM Quantizes Best for Speed?: Mistral models, particularly due to Grouped Query Attention (GQA) and Sliding Window Attention (SWA), are frequently optimized for high throughput and lower latency. Gemma's architecture, especially its Mixture-of-Experts (MoE) variants like Gemma 4's 26B-A4B MoE, demonstrates superior memory efficiency and quantization tolerance, achieving dramatically faster inference (e.g., 6x faster than dense models) on suitable hardware.
  3. Hardware Showdown: CPU, GPU, or Apple Silicon for Quantized LLMs?: CPU throughput for quantized LLMs, especially 7B models, can reach 10-20 tokens/second on modern hardware, heavily influenced by memory bandwidth and optimized by engines like llama.cpp. Apple Silicon (e.g., M5 Pro) excels for larger quantized models (30B+) due to unified memory, achieving 40-60 tokens/second. Dedicated GPUs like the NVIDIA RTX 5090 offer peak speeds (150-200 tokens/second) for smaller 7B-14B models but struggle with larger models due to VRAM limitations.

Sources

Open the full topic