Local LLM tokens per second: what is a good speed?
An adult reads about 5 tokens a second, by estimate. At 20 tokens a second, text arrives at about four times that pace.
What a token is
A token is a piece of text that a model reads or writes in one step: a short word, or part of a longer one. OpenAI’s help page on tokens says 100 tokens are approximately 75 words in English, and that this is an estimate, not an exact count. Maker’s rating Other languages differ. By OpenAI’s count one token is about 0.75 of a word; other models’ tokenisers differ.
Two speeds: prompt and generating
The shared test on this site reports two numbers. pp512 is the speed of reading in a prompt of 512 tokens. tg128 is the speed of generating 128 new tokens. Prompt speed sets the wait before the first word appears. Generating speed sets how fast the rest of the answer arrives, and it is the one every figure on this site shows.
The reading pace
The Research Digest summary reports a review of 190 studies of adults aged 17 to 60 reading in languages with the Latin alphabet, for fun or for comprehension. The average rate was 238 words a minute. Cited measurement The Digest notes wide variation: studies with very short passages ran from just over 100 to nearly 400 words a minute.
The sum: 238 words a minute divided by 0.75 words a token is 317 tokens a minute, or 5.3 tokens a second. Estimate
A worked example
| Speed | Backend | Tokens/s | Time for 667 tokens |
|---|---|---|---|
| Reading pace | not applicable | 5.3 tokens/sEstimate | 126 sEstimate |
| Example speed | not applicable | 20 tokens/s chosen, not measured | 33 sEstimate |
| RTX 4090 | CUDA | 186.21 tokens/sCited measurement | 3.6 sEstimate |
| RTX 4090 | Vulkan | 187.97 tokens/sCited measurement | 3.5 sEstimate |
| Mac mini M4 16 GB | Metal | 24.11 tokens/sCited measurement | 28 sEstimate |
A 500-word answer is about 667 tokens. Each time is the token count divided by the speed. The three cited rows are one Llama 2 7B Q4_0 test (tg128), from one thread, the Vulkan scoreboard and the Apple thread. They leave out the prompt wait. Estimates only.
What changes the figure
- Model size. A larger model has more weights to read for each token, so a speed measured on a 7B model does not carry over to a 32B model. Every cited speed on this site is the same 7B test.
- Quantisation. A model stored in fewer bits is smaller. How much VRAM a model needs.
- Software. The same card has different rows on CUDA and on Vulkan, from different posters and builds.
- Context. A long prompt adds the prompt wait before the first token.
Where the speeds are
Choosing a card by model size. 16 GB cards. The running-cost calculator. How each kind of figure is set.