LearnQuestion bank

Compare weight-only INT4 (GPTQ/AWQ), FP8 weights-and-activations and KV-cache quantisation. How would you decide a quantised model is acceptable for production?

Applied LLMTechnicalMedium

Theme reported publicly: Mistral AI

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Weight-only INT4: less memory/bandwidth, faster small-batch decode; GPTQ second-order calibration, AWQ activation-aware protection
  • FP8 W8A8: faster compute-bound prefill/large batches on supporting hardware
  • KV-cache quantisation: more concurrency/longer contexts with small quality cost
  • Acceptance by task evals, not perplexity alone: long context, tool calling, multilingual, maths/code slices
  • Latency/throughput on target hardware at realistic batch sizes vs baseline
  • Keep sensitive layers/components higher precision if evals regress

In full

The three are complementary rather than interchangeable: weight-only INT4 (GPTQ/AWQ) mainly reduces memory and bandwidth, so it helps small-batch decode, with GPTQ using second-order calibration and AWQ protecting activation-salient channels; FP8 weights-and-activations is aimed at compute-bound prefill and larger batches on FP8-capable hardware; KV-cache quantisation shrinks the cache to buy more concurrency and longer contexts for a small quality cost. I would not accept a quantised model on perplexity alone. I would gate it on task evals across long-context, tool-calling, multilingual, maths and code slices, plus latency/throughput on the target hardware at realistic batch sizes, against the unquantised BF16/FP16 baseline. If a slice regresses, I would keep sensitive layers or components—such as embeddings/output head or layers with outlier activations—in higher precision and re-test. Acceptance means the quantised model meets the same task-quality bar and latency budget, not merely a lower perplexity.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Weight-only: less memory and bandwidth → faster small-batch decode; calibration methods (second-order GPTQ, activation-aware AWQ)
  • FP8 W8A8: faster compute-bound prefill/large batches on supporting hardware
  • KV quantisation: more concurrency/longer contexts, small quality cost
  • Acceptance by task evals (not just perplexity): long context, tool calling, multilingual, maths/code slices; latency on target hardware
  • Keeps sensitive layers in higher precision if needed

Common mistakes

  • Judging by perplexity only
  • assuming 4-bit is always faster at large batch