Why LLM Decoding Is Bandwidth Bound and What On-Chip SRAM Changes
Last updated: November 29, 2026
Quick Overview
Using arithmetic intensity, explain why generating tokens one at a time from a large language model is limited by memory bandwidth rather than compute on a typical GPU, estimate the upper bound on tokens per second for a 70B model, and explain how keeping weights in on-chip SRAM changes the picture.
Cerebras
November 29, 20260
0
0 solved
Using arithmetic intensity, explain why generating tokens one at a time from a large language model is limited by memory bandwidth rather than compute on a typical GPU, estimate the upper bound on tokens per second for a 70B model, and explain how keeping weights in on-chip SRAM changes the picture.
Very fast inference is a headline claim for wafer-scale hardware, and the physics behind it is memory bandwidth. A technical screen probes whether you can do the roofline math quickly and then reason about batching, KV cache and where the new bottleneck appears.
What the Interviewer Expects
- Computes FLOPs per token (about 2 x params) and bytes per token (about params x bytes per weight)
- Derives arithmetic intensity of about 1 FLOP per byte at batch 1 and compares to hardware ridge point
- Estimates the bandwidth-bound tokens per second for a 70B model
- Explains how batching amortizes weight reads but not KV cache reads
- Explains that SRAM bandwidth moves the limit toward compute and communication
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How does speculative decoding help a bandwidth-bound system?
- At long context, when does KV cache traffic dominate weight traffic?
- Does prefill have the same bottleneck? Why not?
- How does quantizing weights to 8 bits change the bound?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Dense 70B transformer, 16-bit weights, batch size 1, short context so the KV cache is small relative to weights. Compare an HBM-based GPU (a few TB/s, about 1,000 TFLOPS in 16-bit) to a design where w...
Approach
Roofline: performance is min(peak FLOPs, bandwidth x arithmetic intensity). Compute the work and bytes for one decode step....