Skip to content
runonprem

Local AI

LLM token throughput estimator

How fast will a local LLM answer on your hardware? Generating text is mostly limited by how quickly the GPU (or CPU and unified memory) can read the model, so memory bandwidth and model size give a good first estimate of tokens per second — before you buy anything.

GB/s
B
GB
%
TFLOPS
%
tokens
tokens
Weights
4.50 GB
Read per generated token
5.00 GB
Ceiling (100 % bandwidth)
72.0 tok/s
Estimated generation speed
50.4 tok/s
Estimated prompt processing
625 tok/s
Prompt time
3.2 s
Answer time
9.9 s
Total per request
13.1 s

How to use it

  1. Enter the memory bandwidth from the datasheet of your GPU, Apple chip or CPU memory setup (GB/s).
  2. Enter the model size in billions of parameters and the bits per weight of the quantisation (about 4.5–4.8 for Q4_K_M, 8.5 for Q8_0, 16 for FP16).
  3. Add the KV cache size at your context length — the LLM VRAM calculator shows it.
  4. Keep the efficiency at 60–80 % until you have measured your own setup; enter compute (FP16 TFLOPS) for the prompt-processing estimate.

Formula and method

weights (GB)      = parameters × bits per weight ÷ 8
read per token    = weights + KV cache
generation tok/s  ≈ bandwidth (GB/s) × efficiency ÷ read per token
prompt tok/s      ≈ compute (FLOP/s) × utilisation ÷ (2 × parameters)
time per request  = prompt tokens ÷ prompt tok/s + answer tokens ÷ generation tok/s

Worked example

An 8 B model at 4.5 bits per weight is 8 × 4.5 ÷ 8 = 4.5 GB; with 0.5 GB of KV cache each token reads 5 GB. With 360 GB/s the ceiling is 360 ÷ 5 = 72 tokens/s; at 70 % efficiency about 50.4 tokens/s, so a 500-token answer takes about 9.9 s. With 25 TFLOPS at 40 % utilisation the prompt runs at 25 × 10¹² × 0.4 ÷ (2 × 8 × 10⁹) = 625 tokens/s: a 2,000-token prompt takes 3.2 s.

FAQ

Why does memory bandwidth matter more than GPU cores for chat speed?

For every generated token the whole model has to be read from memory once, while the arithmetic per byte is small. A single chat stream therefore waits on memory, not on compute. Compute matters for reading long prompts and for serving many users at once.

Does a smaller quantisation make the model faster?

Usually yes: fewer bits per weight means fewer bytes to read per token, so a 4-bit model generates roughly twice as fast as an 8-bit one on the same hardware, at some cost in quality.

Why are my measured tokens per second lower?

Partial CPU offload, a long context (large KV cache), thermal or power limits, and runtime overhead all reduce the speed. Measure with your runtime’s own statistics and adjust the efficiency to match.

Related tools

Formulas reviewed November 27, 2026 by Novian · runs entirely in your browser · methodology