# What makes a model fast?

> Memory capacity decides what fits, memory bandwidth decides how fast it writes, and compute decides how fast it reads your prompt. Most slowness is a bandwidth problem.

Three numbers decide how a machine runs a model: how much memory it has, how fast that memory moves, and how much compute sits behind it. Memory decides what fits. The other two decide how long you wait.

## The three numbers

Think of it as a workbench. Capacity is the size of the bench.

Bandwidth is how fast you can move parts across it. Compute is the power of the tool in your hand.

| Number | Unit | What it decides | Phase it limits |
| --- | --- | --- | --- |
| Memory capacity | GB | Which models fit at all | Neither. It is a gate |
| Memory bandwidth | GB/s | How fast the answer streams | Decode |
| Compute | TFLOPS | How fast a long prompt is read | Prefill |

### Capacity

Capacity is a yes or no. The model and its context either fit in fast memory or they do not. More capacity than you need does nothing for speed. [Will the model fit in my memory?](https://localagi.co/memory) covers how to size it.

### Bandwidth

Bandwidth is how many GB per second the chip can read from memory. Writing each token means reading every weight once, so bandwidth sets a hard ceiling on decode speed.

**Rule of thumb.** 
Divide memory bandwidth by the model's size in memory. The answer is the most tokens per second the machine can write. Real speed lands below that ceiling, usually at about half to three quarters of it.

A machine with 800 GB/s running a 40 GB model has a ceiling of about 20 tokens a second. Halve the model with a smaller [What is quantization?](https://localagi.co/quantization) and the ceiling doubles. Nothing else you can change moves decode speed as much.

### Compute

Compute is how much maths the chip does per second. It mostly matters during prefill, when the model reads your whole prompt at once. High compute means a short wait before the first word, which matters for coding tools and long documents. [What happens when I press enter?](https://localagi.co/life-of-a-prompt) explains why the two phases split this way.

## Why a huge-memory machine can still be slow

Large memory lets a big model load. It does not make that model fast. A machine with 128 GB at modest bandwidth can hold a 70B model, then write it at reading speed or below, because each token still means moving about 42 GB.

The same is true for compute. Unified-memory machines often pair lots of memory with less compute than a big desktop GPU. They write well but can take a long time to read a long prompt.

This is why [mixture of experts](https://localagi.co/dense-vs-moe) models suit big-memory machines so well. They need the capacity to load, but they read only a small slice of weights per token. Bandwidth goes much further.

**The catch.** 
Spec sheets quote peak bandwidth. Real runtimes reach a fraction of it, and the fraction varies by chip, driver and runtime. Use the formula to compare machines, then check measured speeds before you buy. [How do I benchmark my own setup?](https://localagi.co/benchmarking) shows how to measure your own.

## Why a small fast GPU beats a big slow one for small models

If the model fits on both machines, the one with more bandwidth wins. Capacity beyond the model's size is unused.

Take an 8B model at 4-bit, about 5 GB. A gaming GPU with 16 GB of very fast memory runs it at its full bandwidth. A large unified-memory box with eight times the memory and less bandwidth runs it slower, with most of its memory sitting idle.

The picture flips once the model outgrows the GPU. A 70B model at 4-bit does not fit in 16 GB, so the GPU has to offload layers to system RAM and slows to the speed of that RAM. The big box now wins, because it can hold the model in fast memory.

| Model size | Fits on both | Fits only on the big box |
| --- | --- | --- |
| Winner | Whichever has more bandwidth | The big box, by a wide margin |
| Why | Spare capacity does nothing | Offloading drops to system RAM speed |

| Tier | Price | Runs well | Speed |
| --- | --- | --- | --- |
| 1. Entry laptop | $1,100 to $2,200 | 1 to 8B at Q4. gpt-oss-20b and Gemma 4 E4B fit in 16 GB. | 8B: about 20 to 40 tok/s on M-series. CPU-only Windows: single digits on 7B. |
| 2. Strong laptop or Mac | $2,000 to $7,000+ | 27 to 31B dense with headroom on 48 GB. 70B Q4 or gpt-oss-120b on 64 to 128 GB. | M5 Max (measured, Mac Studio): 70B Q4 about 13 tok/s, gpt-oss-120b about 76, Qwen3 30B-A3B about 130. RTX Spark (measured): gpt-oss-120b about 65, dense 27B 13 to 15. |
| 3. Desktop consumer GPU | $900 to $9,000+ (GPU, street) | 8 to 14B on 12 to 16 GB. 27 to 32B at Q4 on 24 to 32 GB. 70B does not fit at Q4. | RTX 5090: 8B about 142 to 213 tok/s, 32B-class about 48, prefill 10,000+ tok/s. |
| 4. Unified-memory workstation | $3,400 to $22,300+ | gpt-oss-120b or Qwen3.8-Flash-Next on 128 GB. DeepSeek V4-Flash, GLM-5.3-Flash and MiMo-V2.6-Flash on 192 to 256 GB. MiniMax M3.1 Flash, Beam and quantized GLM-5.3 on 512 GB. | gpt-oss-120b: 31 to 59 tok/s (Strix Halo, DGX Spark). M5 Ultra 256 GB: DeepSeek V4-Flash about 39 to 45, GLM-5.3-Flash about 41. Dense 70B: 3 to 5. |
| 5. Pro GPU workstation | $9,000 to $40,000+ | 70B in VRAM on one 96 GB card. About 150B at Q4. V4-Flash native on two Pro 6000s (192 GB). | Pro 6000: 70B about 34 tok/s single-stream, about 8,400 tok/s aggregate on a 30B (vLLM). |
| 6. On-prem server | $150,000 to $500,000+ | GLM-5.3, DeepSeek V4-Pro and MiMo-V2.6-Pro at FP8 on 8x H200 or B200. The Kimi models need more than one 8x B200 node. | 70B single-stream: 25 to 40 tok/s. Aggregate: 8x H200 about 33,000 tok/s, 8x B200 about 103,000 tok/s (MLPerf, Llama 2 70B). |

**Try it.** 
Find your chip's memory bandwidth on its spec page, then divide it by the size of a model file you have downloaded. Run that model with `ollama run  --verbose` and compare the `eval rate` it prints with your ceiling.

## Go deeper

### Why decode is bandwidth-bound

During decode the chip multiplies each weight by a single token's numbers. That is two operations per weight. Fetching the weight takes far longer than using it, so the compute units spend most of their time waiting on memory.

During prefill, each weight is fetched once and used for every token in the prompt. Hundreds of operations per fetch keep the compute units busy, so compute becomes the limit.

### Batching changes the maths

When several requests run at once, the runtime can read each weight once and use it for all of them. Total output goes up almost for free until compute runs out. That is how one server handles many users, covered in [What changes when many people use one model?](https://localagi.co/one-user-to-many).

For one person chatting, there is nothing to batch.

### Where the rest of the ceiling goes

Real speed lands below bandwidth divided by size for a few reasons. The KV cache has to be read too, and it grows with context. Some time goes to sampling and moving data between steps.

Some runtimes simply use the memory system better than others, which is one reason [Which runtime should I use?](https://localagi.co/choosing-a-runtime) matters.
