Skip to content
Inference Academy

LLM quantization interview questions

LLM quantisation interview questions with model answers: weight-only vs weight-and-activation, INT4, FP8 and FP4, GPTQ vs AWQ, outliers, why it speeds up decode, and how to validate quality.

5 questions·Model answers and follow-upsFree
Share

Quantisation questions test whether you can connect a number format to a speed-up through the roofline, and whether you know how to prove quality did not drop. "We used 4-bit and it was fine" is not an answer; "we used AWQ INT4 weights, decode got 2.5 times faster because it is memory-bound, and our task evaluation moved by less than its noise" is.

Question 1

Why does quantisation make LLM inference faster?

Model answer

It depends on the phase:

  • Decode is memory-bound, so its time is roughly bytes of weights read divided by bandwidth. Storing weights in 4 bits instead of 16 cuts those bytes by about 4 times, so decode can approach a 3 to 4 times speed-up for a single stream, minus dequantisation overhead.
  • Prefill is compute-bound, so weight-only quantisation barely helps it, and dequantising can even make it slower. To speed up prefill you need the matmul itself to run in lower precision, which means quantising activations too (for example FP8 or INT8 on both inputs) so the tensor cores run at their higher low-precision rate, typically twice the BF16 rate.

Quantisation also frees memory, which you can spend on KV cache and so larger batches. For a throughput-oriented server that capacity gain is often worth more than the per-step speed-up.

Likely follow-up questions

  • Which would you pick for a long-prompt summarisation service: INT4 weight-only or FP8 weights and activations?
  • Why does INT4 weight-only help less at large batch sizes?
  • What does quantisation do to the memory needed for the KV cache?

Question 2

What is the difference between GPTQ and AWQ?

Model answer

Both are post-training, weight-only methods usually used for 4-bit weights with group-wise scales (for example one scale per 128 weights).

  • GPTQ quantises a layer's weights column by column and, after rounding each column, updates the remaining unquantised weights to compensate for the error, using second-order (Hessian) information estimated from a small calibration set of activations. It minimises the layer's output error directly.
  • AWQ (activation-aware weight quantisation) observes that a small fraction of weight channels matter most, the ones that see large activations. Instead of keeping them in higher precision, it scales those channels up before quantising (and scales the activations down to match), which protects them from rounding error. It needs only activation statistics, no back-propagation or weight updates, and tends to generalise well across tasks.

In practice both give similar quality at 4 bits on large models. AWQ is quick to apply and popular for serving; GPTQ can do better at lower bit widths. Either way you evaluate on your own tasks.

Likely follow-up questions

  • Why does group size matter, and what does it cost in memory?
  • What can go wrong with a calibration set that does not match your traffic?
  • How do GGUF k-quants differ from both?

Question 3

Why are activation outliers a problem, and how do methods deal with them?

Model answer

LLM activations have a few channels with values tens or hundreds of times larger than the rest, consistently across tokens. With per-tensor INT8 scaling, the scale is set by the outliers, so every other value is squeezed into a handful of levels and accuracy collapses.

Approaches:

  • Mixed precision: keep the outlier channels in 16-bit (LLM.int8()). Accurate but awkward and slow for kernels.
  • SmoothQuant: move the difficulty from activations to weights by dividing activation channels by a per-channel factor and multiplying the matching weight rows by it. The product is unchanged but both are now easy to quantise.
  • Finer scaling: per-token scales for activations and per-channel or per-group scales for weights.
  • Formats with more range: FP8 (E4M3) has an exponent, so it handles a wide range better than INT8, which is one reason FP8 W8A8 is close to lossless for most models.
  • Rotations (QuaRot, SpinQuant): multiply by orthogonal matrices that spread outliers across channels before quantising, which helps at 4-bit activations.

Likely follow-up questions

  • Why are outliers less of a problem for weight-only quantisation?
  • Which part of the KV cache has the worst outliers?
  • What is microscaling (MX) or block scaling in FP4 formats, and why does it help?

Question 4

How do you validate that a quantised model is good enough to ship?

Model answer

  1. Pick the right metrics: perplexity on held-out text is a quick sanity check, but it can hide task regressions. Run your own task evaluations (and a few standard ones covering reasoning, code and long context) on both the baseline and the quantised model.
  2. Measure noise: run each evaluation several times or bootstrap confidence intervals, and judge differences against that noise, not against zero.
  3. Compare outputs directly: token-level agreement or KL divergence between the two models' output distributions on real prompts catches drift that averages hide.
  4. Test the long tail: long-context retrieval, multilingual prompts, structured output and tool calls tend to break first.
  5. Measure the speed you claim at your real batch size and context mix, because the gain depends on the phase and kernel.

Ship if the quality difference is within noise on the tasks that matter, and keep the evaluation as a regression test for the next model or engine upgrade.

Likely follow-up questions

  • Why can perplexity improve while a task score drops?
  • How many evaluation examples do you need to detect a 1-point drop?
  • What would you monitor in production after shipping a quantised model?

Question 5

What are FP8 and FP4, and what hardware supports them?

Model answer

FP8 comes in two variants: E4M3 (4 exponent bits, 3 mantissa bits, more precision, used for weights and activations in inference) and E5M2 (more range, used mostly for gradients in training). NVIDIA Hopper (H100, H200) and later, and AMD MI300 and later, have FP8 tensor cores at about twice the BF16 rate. FP8 with per-tensor or per-channel scales is close to lossless for most LLMs and is a common production default.

FP4 formats such as NVFP4 and MXFP4 use 4-bit floats (E2M1) with a shared scale for each small block of values (16 or 32), because 4 bits alone have very little range. NVIDIA Blackwell has FP4 tensor cores at roughly twice the FP8 rate. Quality depends more on the model and the method than at FP8, so evaluation matters, and some models are now trained or fine-tuned with FP4 in mind.

On GPUs without native support, these formats can still save memory, but the matmul runs after upcasting, so you get the decode bandwidth benefit without the compute benefit.

Likely follow-up questions

  • Why does FP4 need block scaling when FP8 often does not?
  • If your fleet is A100s, which quantisation would you choose and why?
  • What is the difference between an FP8 checkpoint and dynamic FP8 quantisation at load time?

The lesson behind these answers · 12 min · free

Quantization basics

Worked numbers, step-through diagrams and a quiz, so you can derive the answer in the interview instead of reciting it.

Read the lesson →

Articles on this topic

Related interview questions

All interview topics →