Most "how fast will this model run?" questions get answered the expensive way: rent the GPU, install an engine, run a benchmark, find out it's slow. You can get a surprisingly good answer in about 30 seconds with a pen, because single-user decode speed is almost entirely set by one number on the spec sheet: memory bandwidth.
Why decode is a memory problem
When an LLM generates a token, the GPU has to read every weight it needs from memory, do a tiny amount of maths with each one, and then start again for the next token.
How tiny? A matrix-vector multiply does about 2 FLOPs per weight. In BF16, each weight is 2 bytes. So at batch size 1 you're doing roughly 1 FLOP per byte moved.
An H100 can do ~989 TFLOPS of dense BF16 but only move ~3.35 TB/s. To keep the compute units busy you'd need around ~295 FLOPs per byte. Decode gives you 1. The tensor cores spend almost all their time waiting on memory.
That means the speed limit is:
max tokens/sec ≈ memory bandwidth ÷ bytes read per token and for a dense model, bytes read per token ≈ the size of the weights.
Worked examples
| Setup | Weights | Bandwidth | Ceiling |
|---|---|---|---|
| Llama 3.1 8B, BF16, H100 | ~16 GB | 3.35 TB/s | ~209 tok/s |
| Llama 3.1 8B, 4-bit, RTX 4090 | ~4.9 GB | ~1.0 TB/s | ~205 tok/s |
| Llama 3.1 70B, 4-bit, M4 Max | ~40 GB | 546 GB/s | ~13 tok/s |
| Llama 3.1 8B, 4-bit, MacBook Air (M3) | ~4.9 GB | 100 GB/s | ~20 tok/s |
Two things jump out:
- A quantised 8B on a gaming card hits the same ceiling as BF16 on an H100. For single-user decode, halving the bytes is worth as much as doubling the bandwidth.
- That 70B on a Mac fits in memory, but it will feel slow. "Can I load it?" and "can I use it?" are different questions.
Turning the ceiling into a real estimate
The number above is a ceiling, not a prediction. In practice:
- Expect 60–80% of it. Engines don't hit peak bandwidth, and there's kernel launch and sampling overhead. If you're getting under ~50%, something is misconfigured (wrong kernels, CPU offload, a quant your backend dequantises slowly).
- The KV cache adds bytes. Each new token also reads the cache for every previous token. At short contexts it's noise; at 32k+ tokens on a big model it can be a real fraction of the weights, and speed drops as the conversation grows.
- MoE models only read active experts. Qwen3 30B-A3B has ~30B params but only ~3B active per token, so it decodes closer to a 3B dense model, while still needing memory for all 30B.
What this does not cover
Prefill (processing your prompt) is the opposite case: thousands of tokens go through each weight at once, so it's compute-bound, and FLOPs matter there. That's why time-to-first-token and tokens/sec behave so differently.
Batching is the other escape hatch. Serving 32 users at once reads the weights once and does ~32× the maths, so aggregate throughput climbs almost for free until you approach that ~295 FLOPs/byte ridge (or run out of KV cache memory). That's the whole reason vLLM and SGLang exist, and why per-user speed and total throughput are separate numbers on any benchmark you read.
If you want the full picture, with the roofline drawn out and both regimes worked through, I wrote it up as a free lesson on prefill, decode and the roofline on my site, Inference Academy (no sign-up).
The 30-second checklist
Before you rent anything:
- Find the memory bandwidth of the GPU or Mac.
- Work out the weight size: params × bytes per param (2 for BF16, 1 for FP8, ~0.55–0.6 for 4-bit). For MoE, use active params.
- Divide. Multiply by ~0.7 for a realistic number.
- Check it fits: weights + KV cache + a couple of GB overhead must fit in memory.
- If the answer is too slow for one user, no engine flag will save you. Change the quant, the model, or the hardware.
What numbers are you seeing in practice versus this estimate? I'd be curious about setups that land well below 60%.
