Token Bench Log

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 reading pace in three steps: 238 words a minute, 317 tokens a minute, 5.3 tokens a second. Estimate.1 Words238 a min2 Tokens317 a min3 Speed5.3 a sec

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

Time for a 500-word answer (667 tokens) at the reading pace, at 20 tokens a second and at three cited speeds
SpeedBackendTokens/sTime for 667 tokens
Reading pacenot applicable5.3 tokens/sEstimate126 sEstimate
Example speednot applicable20 tokens/s chosen, not measured33 sEstimate
RTX 4090CUDA186.21 tokens/sCited measurement3.6 sEstimate
RTX 4090Vulkan187.97 tokens/sCited measurement3.5 sEstimate
Mac mini M4 16 GBMetal24.11 tokens/sCited measurement28 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.