Inference Physics & Roofline
15 questionsDONEUNLOCKEDLOCKED
Inference Physics & Roofline Interview Questions
Bytes and FLOPs per token, why batch-1 decode reads every weight once per step, the ridge point and the batch size that crosses it, MBU versus MFU, and the millisecond latency floors you must produce before anyone draws a box.
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 Inference Physics & Roofline
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
The Roofline Model for LLM InferenceThe roofline model bounds a kernel's speed by the smaller of peak compute and bandwidth times arithmetic intensity. For LLM serving it decides whether a step is priced in bytes or in FLOPs: batch-1 decode sits near 1 FLOP/byte against an H100 ridge of 295, prefill sits far above it.Advanced
Prefill Versus Decode: Two Workloads on One GPUEvery LLM request runs two different workloads: prefill processes the whole prompt in one compute-bound pass, then decode generates one token per step and is bound by weight and KV reads. Which one dominates a request decides the metric you tune, the batching policy and whether the two phases belong on the same GPU.🔒 Premium
Advanced
Model Bandwidth Utilization (MBU)MBU divides the bytes a decode step must read (weights plus KV cache) by the measured step time and the chip's peak bandwidth. It is the decode-side twin of MFU, and it decides whether a slow server has a software problem to fix or has already hit the hardware floor.🔒 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