▚VRAM Calculator▋

// guides

Tokens per Second — Why Memory Bandwidth Beats TFLOPS for LLMs

How to estimate LLM generation speed from memory bandwidth, why prompt processing is a different bottleneck, and what that means for GPUs, Macs and MoE models.

reviewed 2026-11-15 · by Bedino

People shop for GPUs by TFLOPS. For running a language model interactively, that is the wrong column. Single-user text generation is almost entirely limited by memory bandwidth, and once you see why, you can estimate the speed of any model on any device with one division.

Why decode is memory-bound

To generate one token, the model has to read every active weight from memory once and do a small amount of arithmetic with each. There is very little reuse: one multiply-accumulate per weight loaded. A GPU can do far more arithmetic per second than it can feed from memory, so the arithmetic units mostly wait for data. The speed limit is therefore:

tokens/sec ≈ memory bandwidth ÷ bytes read per token
bytes read per token = active parameters × bytes per parameter

Real systems do not hit the ceiling; the calculators apply a 75 percent efficiency factor, which is a reasonable middle of the 65 to 85 percent range seen in practice.

Worked examples

Llama 3.1 8B in Q4_K_M reads about 4.8 GB per token; the same model in FP16 reads about 16 GB. Dividing the card’s bandwidth (× 0.75) by those numbers gives the predicted single-stream speed:

Device Bandwidth 8B Q4_K_M 8B FP16 70B Q4_K_M
RTX 3090 936 GB/s ~145 tok/s ~44 tok/s ~16 tok/s
RTX 4090 1,008 GB/s ~156 tok/s ~47 tok/s ~18 tok/s
RTX 5090 1,792 GB/s ~277 tok/s ~84 tok/s ~32 tok/s
H100 SXM 3,350 GB/s ~518 tok/s ~156 tok/s ~59 tok/s
Apple M4 Max (128 GB) 546 GB/s ~84 tok/s — ~10 tok/s
Apple M5 Max (128 GB) 614 GB/s ~95 tok/s — ~11 tok/s
Apple M3 Ultra 819 GB/s ~127 tok/s — ~14 tok/s

(The 70B model does not fit in a single 24 GB card. For the RTX 3090 and 4090 rows, assume it is split across two cards by layers: each token still passes through the layers one after another, so the speed is close to one card’s bandwidth figure, not double. The FP16 column is left blank for the Apple machines because 16-bit weights are not the typical use there.)

Two lessons fall out of the table. First, the RTX 4090 is only 8 percent faster than a 3090 for generation even though it has several times the compute, because their bandwidth is nearly the same. Second, a Mac with 546 to 1,200 GB/s of unified memory can hold models no consumer GPU can, but it generates a 70B model at a speed set by its bandwidth, not by its core count.

Quantization is a speed-up, not just a size cut

Because decode reads the weights, a smaller format is faster. Q4_K_M reads about 0.6 bytes per parameter against 2 for FP16, which is why the 8B model above runs more than three times faster in Q4 than in FP16 on the same card. This is the same bandwidth maths as before, applied to fewer bytes.

Prompt processing is different

Reading your prompt (prefill) is processed for all tokens in parallel, which turns the problem from bandwidth-bound into compute-bound. Time to first token is roughly:

2 × active parameters × prompt tokens ÷ (TFLOPS × utilization)

This is where TFLOPS matter. A card with high bandwidth but modest compute will generate quickly once it starts but feel slow on a long prompt. Apple Silicon and some budget GPUs show this pattern most clearly: good generation speed, slow time-to-first-token on 32k-token prompts.

Mixture-of-Experts models are the loophole

For an MoE model only the active experts are read each token. gpt-oss-120b has about 117 billion parameters in total but activates roughly 5 billion, so on the same hardware it generates far faster than a dense 70B model, while needing more memory to hold all the experts. That asymmetry — big in memory, small in bandwidth — is why MoE models are attractive on high-capacity, moderate-bandwidth machines such as Apple Silicon and unified-memory mini-PCs.

Batching, and where the numbers stop applying

When many requests share a GPU, one pass over the weights serves all of them, so aggregate throughput scales almost linearly with batch size until compute or KV cache becomes the limit. Per-user speed does not improve. The single-stream estimate above is the right model for a personal setup; for a server, look at the concurrency tools on finetune-calc.com.

Speculative decoding (a small draft model proposes tokens that the big model verifies in one pass) can raise single-stream speed beyond the bandwidth ceiling — at the price of extra memory for the draft model.

Estimate your own

The tokens-per-second calculator takes a model, quantization and device and returns both the decode speed and the prefill time for a prompt length you choose. Check Will it fit? first so you are not estimating the speed of something that cannot load.

faq
Why is my real speed lower than the calculator says?
The estimate is a bandwidth ceiling at 75 percent efficiency. Real runs lose speed to kernel launch overhead (worst on small models), attention over a long context, sampling, CPU-side work and thermal or power limits. Treat the figure as an upper bound and expect 60 to 90 percent of it.
Does a faster GPU always generate faster?
Only if it has more memory bandwidth. Generation (decode) is limited by how fast the GPU can stream the weights from memory, not by how fast it can multiply. Two cards with the same bandwidth generate at about the same speed even if one has twice the TFLOPS.
Why is the first token slow but the rest fast?
Processing the prompt (prefill) is compute-bound and handled in parallel, so it depends on TFLOPS and prompt length. Generating each following token (decode) is memory-bound. They are different bottlenecks.
Does batching help?
Yes, enormously for throughput. In one decode step the weights are read once but can serve many sequences, so total tokens per second rises almost linearly with batch size until compute or KV cache limits it. Per-user speed stays about the same.
more guides