memory bandwidth
Inference interview questions tagged memory bandwidth, across every topic.
10 questions · 5 unlocked for you
Concepts behind "memory bandwidth"
Concept pages for the mechanisms these questions lean on.
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.⚛️ Inference Physics
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.⚛️ Inference Physics🔒 Premium
Advanced
Bytes in Flight: Little's Law for GPU MemoryLittle's law says sustained memory bandwidth equals the bytes a kernel keeps outstanding divided by memory latency. On an H100 SXM that is about 2 MB across the GPU, or 15 KB per SM, and it decides whether a bandwidth-bound decode kernel can reach peak at all, before any question of coalescing or caching.🟩 GPU Performance🔒 Premium