What this is about
"This model runs at 130 tokens per second." You will see sentences like that everywhere. The number is real, but it hides a lot of choices. Which prompt? Which machine? Which phase of the work? Compared with what, and when?
This article shows how to read the number, and how we try to report it honestly.
Why it matters
People pick models and machines based on speed tables. If the table was made with one friendly prompt, a warm card and an old comparison, you may buy something that feels slower in real life. A good number is one you could repeat.
What the number measures
Tokens per second counts how many tokens the model writes each second, once it has started writing. It is the decode speed. It does not include the wait while the model reads your prompt, which is a different speed. A model can have fast writing and slow reading, so one figure never tells the whole story.
For a chat, 100 tokens per second is more than most people read. For a job that writes long outputs again and again, it adds up.
Why one prompt is not enough
Different prompts give different speeds. In a model made of many experts, each token wakes a different few of them, so a prompt full of hard text can run slower than a plain one. In our speculative-decoding tests, we were ahead on a five-token race prompt and behind on real text.
So we use a set of twenty prompts and report the median, the middle value when sorted. A median ignores a single lucky or unlucky run. Our 130.7 tokens per second for plain greedy decoding is a median over twenty prompts. A single-prompt number is only a receipt. For example, one of our packed model files rebuilt itself and ran at 118.9 on one prompt. That tells you the file works, not what typical speed is.
Why the same test moves
Run the same test twice and you will get a slightly different number. Ours moved by a few percent from one session to the next. We re-measured one setup and got 120.1 where an earlier run gave 115.0. Same build, same card.
The comparison arm moves too. llama.cpp's own number on one model file was 109.4 in one session and 109.92 in another. Both are real. This is why we never reuse an old number for the other side of a comparison. We run both arms in the same session.
Here are other things that moved our numbers.
- Clock warm-up. A graphics card runs its chips slowly at idle and speeds up over time under load. When we timed a matrix multiply after a 1-second warm-up, one kernel reported 66,000 GFLOP/s. After a 10-second warm-up, the same program on the same card reported 90,705. We now warm up for 10 seconds and write the warm-up time in the result.
- Other jobs. One card shares the screen and every AI job. A second job running at the same time changes the result.
- The timer itself. Our picture client checked for finished jobs only once every 2 seconds. Every time we had recorded since September carried an accidental 0 to 2 seconds. When we polled every 50 milliseconds, one job went from 8.0 to 7.1 seconds. A client that times a server must check at a small fraction of what it measures.
- The path. The same engine can take different routes. We have a persistent-kernel path and a one-kernel-per-operation path. On one newer toolchain the first read 87.90 tokens per second and the second 98.29 on the same pack. We do not yet know why. Every response from our engine reports which path served it, so the number can be read next to the path.
Speculative decoding and honest comparison
A trick can raise the number a lot while changing what is compared. Speculative decoding guesses ahead and checks. In one test llama.cpp's trick reached 169.5 tokens per second, far above the plain 110.0. But its trick reproduced its own plain output on only 7 of the 20 prompts. So 169.5 is real, and it is also a different, noisier thing than 110.0. We report both and say which is which.
Our own rule: compare plain with plain, and trick with trick, never a mix.
How to read a speed claim
Ask these six questions.
- Which phase: reading, writing, or both?
- How many prompts, and what kind?
- A median, or one run?
- Which machine, and was anything else running?
- Was the other side measured in the same session?
- Did the faster path give the same answer as the slower one?
If a claim answers fewer than four of these, treat it as a rumor.
What our number does not tell you
Our 130.7 comes from one RX 7900 XTX, one model file at 4-bit weights, and one stint. It does not tell you anything about other cards. It is also not a statement about answer quality, which needs its own test.
Words you may not know
- Tokens per second: how many tokens the model writes each second.
- Median: the middle value of a sorted list. It resists one odd result.
- Greedy decoding: always taking the top-scored next token.
- Warm-up: running the card under load until its speed settles.
- Session or stint: one continuous test period on one machine.
- Speculative decoding: guessing ahead and checking the guesses.
- Receipt: a saved record of a result, with the conditions, so it can be checked.
Try it
- See a full results table with dates and limits on the mojo-baro project page. Notice that it lists which rows were measured on an older toolchain.
- Time your own model. Write ten prompts, run all ten, and take the middle value. Do it again the next day.
- Share your numbers and your setup, and ask how others measured theirs, at gllm.forum.
Read next
- Beating llama.cpp at Decode, Without Speculating.
- Forty-Two to One Hundred Eleven, a day of work where the comparison arm had to be re-measured.

Reacties
Nog geen reacties.
Inloggen om te reageren.