Quantization & Numerics
15 questionsDONEUNLOCKEDLOCKED
LLM Quantization Interview Questions
FP8 E4M3 and E5M2 scaling, INT4 weight-only kernels, GPTQ, AWQ, SmoothQuant, EXL2 and GGUF k-quants, MXFP4 and NVFP4 block scales, KV quantization, accuracy evaluation beyond perplexity, and batch-invariant determinism.
Worked answers on inference mechanisms, with calculations, implementation details, and follow-up questions.
You have 5 free answers unlocked here.Sign in free for 5 more · 5 are premium.
01–06Foundationsthe physics and terms an interviewer will not stop to define0/6 done
07–12Core loopsthe standard questions of this round, worked end to end0/6 done
13–15Field scenariosproduction incidents and capacity problems with the inputs left incomplete0/3 done
The concepts behind Quantization & Numerics
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
Number Formats for Inference: BF16, FP8, INT4, FP4Inference formats differ in three ways that matter: bytes per element, which sets decode speed and memory; exponent bits versus mantissa bits, which sets range and precision; and whether the GPU has tensor cores that multiply them natively. Llama 3.3 70B is 141 GB in BF16, 71 GB in FP8 and about 40 GB in NVFP4.Advanced
Weight-Only Quantization Versus W8A8Weight-only quantization (W4A16, W8A16) stores small weights but multiplies in BF16, so it speeds up bandwidth-bound decode and does nothing for prefill. W8A8 quantizes activations too and runs on FP8 or INT8 tensor cores. The crossover batch is set by the GPU, about 141 on a B200, and activation outliers decide how hard W8A8 is.🔒 Premium
Advanced
Block-Scaled FP4: MXFP4 and NVFP4MXFP4 and NVFP4 both store E2M1 4-bit values with a shared scale per block. MXFP4 uses one power-of-two E8M0 scale per 32 elements (4.25 bits); NVFP4 uses one E4M3 scale per 16 plus an FP32 per-tensor scale (4.5 bits). The scale format decides how much of FP4's tiny grid each block actually uses.🔒 Premium
Unlock all 15 answers · ₹2,000 / $25
Every worked answer and derivation in all 12 topics, every concept page, and the full practice-test bank.
6 months · One payment · No auto-renewal