Skip to content

Quantization Formats — Which to Use When

You pay roughly 40% throughput for GGUF's portability. NF4 is for training (QLoRA), not serving — it was the slowest option measured and doubles disk usage.

Head-to-head RTX 3090 measurements, Llama-2-13B, sorted by perplexity (oobabooga.github.io):

Format Perplexity (wikitext) VRAM (GB) Size (GB) Prompt proc. (3200 tok) tok/s
EXL2 4.900b 4.30752 9.31 7.86 1.76 s 52.1
EXL2 4.650b 4.32136 9.03 7.48 1.74 s 56.5
AWQ 4bit-32g 4.32522 10.57 7.62 3.60 s 39.5
GGUF Q4_K_M 4.33326 8.99 7.50 3.73 s 30.8
GPTQ 4bit-32g 4.33805 8.70 7.63 1.86 s 42.4
Q4_K_S 4.34246 8.55 7.07 3.68 s 35.3
AWQ 4bit-128g 4.34761 9.62 6.92 3.59 s 40.6
GPTQ 4bit-128g 4.35793 7.94 6.92 1.85 s 51.9
bnb load_in_4bit 4.36427 8.19 24.83 3.01 s 23.1
EXL2 4.000b 4.37648 7.88 6.50 1.71 s 56.8

Reading of that table, which is the most useful comparative data available:

  • GGUF Q4_K_M — the default for local/desktop use. Best portability (llama.cpp, Ollama, LM Studio, CPU/AMD/Apple/Vulkan all supported), good quality, smallest VRAM of the popular 4-bit options at ~9 GB for a 13B. Costs ~30 tok/s vs ~52 for EXL2 at the same quality — i.e. you pay roughly 40% throughput for portability. Note Q4_K_M is a real 4.8-bit average, not 4.0. Saves ~72% VRAM vs FP16 (willitrunai.com).
  • GGUF Q8_0 / Q5_K_M — use Q5/Q6 when the model is small enough that VRAM is free, or for reasoning/coding tasks where 4-bit degradation is visible. Q8_0 is effectively lossless for most eval suites but costs 2× the memory of Q4. Practical ladder: Q4_K_M default → Q5_K_M if VRAM allows → Q8_0 only when you're chasing the last point of quality. Comparison of Q4_K_M vs Q5_K_M vs Q8_0 with decision criteria at bmdpat.com; K/I-quant format choice at kaitchup.substack.com; an independent unified evaluation of llama.cpp quants on Llama-3.1-8B at arXiv:2601.14277; GGUF quant behaviour on a low-power ARM board (RK3588) at turingpi.com.
  • AWQ (activation-aware weight quant, GPU-only, NVIDIA-first) — best when you're serving via vLLM/HF Transformers and want a sweet spot of quality and size; 32g groups beat 128g on both perplexity and size but need supported kernels.
  • GPTQ — the legacy option; still fine, still widely available, but AWQ generally matches or beats it at the same size. Note it was the fastest prompt-processor in the 2023 test at 1.85 s, ahead of llama.cpp's 3.73 s at the time.
  • EXL2 / EXL3 (ExLlama, vLLM/TabbyAPI/llama.cpp-TE) — the speed king at ~52–57 tok/s for a 13B on a 3090, roughly double GGUF's 30.8, with equal-or-better perplexity. Choose EXL3 for maximum throughput on NVIDIA cards where you control the stack. EXL3 4.00 bpw used 5.79 GiB at 0.02479 KLD vs GGUF Q4_K_M's 6.62 GiB at 0.03985 — better quality and smaller (atomic.chat), though one benchmark found llama.cpp ~12% faster than ExLlamaV3 (LinkedIn/K. Stoykov), so measure on your own model. EXL2's weak point is long context — it only recently caught up with flash attention and context shifting.
  • FP8 (weights and KV) — the pragmatic "large model on a small card" option. FP8 weights ≈ 1 byte/param, FP8 KV cache halves KV memory with a small quality cost. Best supported on Hopper/Ada/Blackwell where FP8 tensor cores exist.
  • bitsandbytes NF4 (load_in_4bit) — use it for fine-tuning (QLoRA) and quick experimentation, not as your serving format. It was the slowest option measured (23.1 tok/s) and, despite being "4-bit", the load_in_4bit checkpoint was 24.8 GB on disk — double the true 4-bit files — because HF stores the FP16 original alongside. QLoRA itself is well-validated: 4-bit NormalFloat + double quantization matches 16-bit full fine-tuning quality (arXiv:2305.14314, HF blog).

Rule of thumb: Q4_K_M if you want it to run everywhere, EXL3 if you want it to run fast, AWQ/GPTQ if you're inside a vLLM production stack, FP8 if you need a big model in limited VRAM, NF4 only for training.

Sources

Date: 2026-10-09