What this is about
Headlines like "faster than the big library" are everywhere. They are usually true in a narrow way and read as true in a wide way. This article takes one such claim of ours, pulls it apart and shows exactly what it covers.
The claim: our engine decodes faster than llama.cpp, a widely used engine for running models at home. The honest answer is "yes, on this card, with these weights, with this setting". Each of those phrases matters.
Why it matters
You will read a lot of speed claims when you pick software to run a model. A claim you can read well saves you from buying a card, or switching tools, for a gain that does not exist for you. And when you make a claim of your own, writing out its limits is the best way to keep it honest.
The claim, in numbers
We start from the day before. Our engine ran Q8_0 weights at 68.8 tokens a second. llama.cpp read 74.1 on the same file. That is 0.93 times, behind.
Two changes closed the gap.
One launch per token. A decode step is thirty-odd small multiplications, each a separate launch. We replaced them with a single persistent launch that runs the whole token. In that session the many-launch version read 67.13, and the single launch took it to 81.98, a gain of 22 percent from removing launch overhead alone. That beat llama.cpp's 74.1.
Smaller weights. Q4_0 stores a weight in 4.5 bits instead of 8.5. Our pack shrank from 10.52 GiB to 6.18 GiB. We checked that our pack was byte for byte equal to the one llama.cpp's own tool makes. On Q4_0 we read 115.02 against llama.cpp's own Q4_0 result of 110.0.
Two later rounds took ours to 130.7. So the final comparison:
| tokens per second | |
|---|---|
| llama.cpp, Q4_0, no speculation | 110.0 |
| our engine, Q4_0, no speculation | 130.7 |
| ratio | 1.19 |
What the claim covers
- One card: an RX 7900 XTX.
- One set of weights: the same model file for both engines.
- The same twenty prompts, run in the same session on the same machine.
- Plain decode: both engines pick the top word each time, with no draft model.
- A median over those twenty prompts.
What the claim does not cover
Speculative decoding. Some engines guess several words ahead with a small helper model and check them. On the same prompts, llama.cpp with that feature read 169.5 tokens a second, well above anything on our side. Our own speculative attempt read 129.3, which is 0.76 times behind it. So with that feature turned on, we did not win.
Look at one more detail about that 169.5. It reproduced its own plain output on only 7 of the 20 prompts, at a median of 75.5 percent of guesses accepted. It is real, and it is a different, noisier thing than the plain number.
Other cards. Everything here ran on one card, with settings tuned for how that card groups its threads and how much fast memory each unit has. It may not carry to other cards without a new test.
Other models. Speed depends on the model's shape. We have not said the same ratio holds elsewhere.
Other days. A few percent of spread between sessions is normal. That is why each round measures its own before-and-after and not an older number. The project page now states a larger ratio, 1.34 times at 148.89 against 111.34, measured later on Mojo 1.1.0 with a 9 billion parameter model. The two numbers do not contradict. They are different claims.
How to read any speed headline
- Which card? And which memory size and clock settings?
- Which model and which quantization? The weights should be the same for both sides.
- Which prompts and how many? One prompt tells you little.
- Which setting? Speculation, batching and context length all change the number.
- Is the baseline fair? Was the other side tuned as well as ours? In our own history, an early claim of a 2 times win over a vendor library was wrong because the vendor side had not been given a fair set-up.
- Is the output the same? A faster engine that says different words has changed what it computes.
- Can you rerun it? Ours has a written protocol for each number.
Why we say "behind" out loud
In this series we report the days we lost as plainly as the days we won. The 0.93 at the start of this article is in our record, next to the 1.19 at the end. A reader who sees only the final number cannot tell whether it came from one lucky run or from a clear gain. A reader who sees both can judge for themselves. That is the habit we would like you to ask for from anyone who sells you speed.
Words you may not know
- Decode: writing one new token at a time.
- Quantization: storing weights in fewer bits so the file is smaller. Q4_0 is a 4-bit format.
- Speculative decoding: guessing several words ahead with a helper model and keeping the right ones.
- Median: the middle value of a sorted list.
- Ratio: one number divided by another. 1.19 means 19 percent faster.
- llama.cpp: a popular open engine for running models at home.
Try it
Our engine, with each result and its protocol, is on the mojo-baro project page. The code is on GitHub. The protocol files in the bench/ folder say how to repeat each run.
Next time you see a speed claim, ask the seven questions above. Tell us if you find a claim that passes all seven at gllm.forum.
Read next
Beating llama.cpp at Decode, Without Speculating has all the tables for the numbers here.

Comentarios
Aún no hay comentarios.
Iniciar sesión para comentar.