Inference, Serving & Production·Question 20 of 76Intermediate

Compare GPTQ, AWQ, GGUF, INT8, and FP8. How do you actually choose a quantization approach for a deployment?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

They're not interchangeable - they differ in what's quantized, how, and where they run:

  • GPTQ: post-training, weights-only (usually 4-bit). Quantizes layer-by-layer, using (approximate second-order) error compensation against a calibration set - rounding later weights to absorb earlier rounding error. Mature GPU kernel support.
  • AWQ: post-training, weights-only 4-bit. Observation: a small fraction of weight channels matter disproportionately, identified by activation magnitudes; AWQ rescales those salient channels before quantizing to protect them. No backprop, calibration-light, tends to be robust and fast with good kernels (works well for instruction-tuned models).
  • GGUF: not an algorithm - the llama.cpp file format, carrying its family of k-quants/i-quants (Q4_K_M, Q5_K_S, ...) with per-block scales. The lingua franca of CPU/Metal/edge inference via llama.cpp and Ollama, with per-layer mixed precision.
  • INT8 W8A8: weights and activations in INT8 (LLM.int8(), SmoothQuant lineage) - accelerates the matmuls themselves. Activation outliers are the difficulty.
  • FP8 (E4M3/E5M2): Hopper-native W8A8; floating-point structure handles outliers more gracefully than INT8. Near-lossless in practice and the default for high-throughput production serving; also used for KV cache. FP4-family (NVFP4/MXFP4) is the Blackwell-native follow-on, now in production use on Blackwell fleets, but with a larger and more task-dependent quality cost than FP8, so evaluate it carefully.
Full worked answer with diagram

They're not interchangeable - they differ in what's quantized, how, and where they run:

  • GPTQ: post-training, weights-only (usually 4-bit). Quantizes layer-by-layer, using (approximate second-order) error compensation against a calibration set - rounding later weights to absorb earlier rounding error. Mature GPU kernel support.
  • AWQ: post-training, weights-only 4-bit. Observation: a small fraction of weight channels matter disproportionately, identified by activation magnitudes; AWQ rescales those salient channels before quantizing to protect them. No backprop, calibration-light, tends to be robust and fast with good kernels (works well for instruction-tuned models).
  • GGUF: not an algorithm - the llama.cpp file format, carrying its family of k-quants/i-quants (Q4_K_M, Q5_K_S, ...) with per-block scales. The lingua franca of CPU/Metal/edge inference via llama.cpp and Ollama, with per-layer mixed precision.
  • INT8 W8A8: weights and activations in INT8 (LLM.int8(), SmoothQuant lineage) - accelerates the matmuls themselves. Activation outliers are the difficulty.
  • FP8 (E4M3/E5M2): Hopper-native W8A8; floating-point structure handles outliers more gracefully than INT8. Near-lossless in practice and the default for high-throughput production serving; also used for KV cache. FP4-family (NVFP4/MXFP4) is the Blackwell-native follow-on, now in production use on Blackwell fleets, but with a larger and more task-dependent quality cost than FP8, so evaluate it carefully.

Choosing - ask three questions. (1) Bottleneck: latency-sensitive/low-batch → weights-only 4-bit (AWQ/GPTQ) attacks the bandwidth bound; high-batch throughput → FP8 W8A8 attacks the compute bound. (2) Hardware/stack: H100-class + vLLM/TensorRT-LLM → FP8; Blackwell-class → FP8, or NVFP4 where evals allow; consumer GPU → GPTQ/AWQ; CPU/Apple Silicon/edge → GGUF. (3) Quality bar: run your eval suite on the quantized artifact - perplexity deltas hide task-specific regressions (math, code, multilingual are the usual victims). Many teams land on: FP8 for the serving fleet, INT4 for the memory-constrained tier, GGUF for local/dev.

Worth sketching. Branching on the bottleneck rather than on the format name is the whole point, and the loop back through evals is where seniority shows.

flowchart TD
    Q["What binds this deployment?"] -->|"low batch, latency-sensitive"| W["Weights-only 4-bit:<br/>AWQ or GPTQ"]
    Q -->|"high batch, throughput"| A["W8A8: FP8 on Hopper or newer,<br/>INT8 otherwise"]
    Q -->|"CPU, Apple silicon, edge"| G["GGUF k-quants via llama.cpp"]
    W --> E["Run your own eval suite<br/>on the quantized artifact"]
    A --> E
    G --> E
    E -->|"task regression, not just perplexity"| Q

What a good answer covers

  • GPTQ: post-training, weights-only (usually 4-bit)
  • AWQ: post-training, weights-only 4-bit
  • GGUF: not an algorithm - the llama.cpp file format, carrying its family of k-quants/i-quants (Q4_K_M,…
  • INT8 W8A8: weights and activations in INT8 (LLM.int8(), SmoothQuant lineage) - accelerates the matmuls…
  • FP8 (E4M3/E5M2): Hopper-native W8A8; floating-point structure handles outliers more gracefully than INT8

Key terms: GPTQ · AWQ · GGUF · INT8 W8A8 · FP8 (E4M3/E5M2) · Bottleneck · Hardware/stack · Quality bar

Interviewer follow-ups to expect

  1. Why do activation outliers make W8A8 harder than W4A16?

  2. What would make you reject a 4-bit model that passes perplexity checks?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep