How fast is N tokens per second really?

271 points - last Monday at 2:04 AM

Source

Comments

blobbers today at 11:40 PM
Isn't the thinking part the part that burns the tokens? You're just outputting tokens.
SXX today at 7:02 PM
I think your demo need more realistic thinking logs because thinking usually burns at least 2x to 3x of tokens of the code and for harder tasks much more.
charles_irl today at 8:35 PM
Very cool!

> Unless you've actually watched tokens stream at those rates, the numbers are hard to internalize. This is the rendering.

I built something similar recently, for the same reason: https://modal.com/llm-almanac/token-timing-simulator.

I like that the output rendering is closer to typical UIs -- syntax highlighting in code mode, tool calls, dim-italic reasoning.

One feature mine has that the author, or anyone else who vibe codes their own version after seeing this, might like to steal is modeling the distribution of output latencies. My implementation is hacky (log-normal roughyl estimated from p50, p90, and p99 values), but still, when you set those to realistic values, it recreates the "jitter" you see in many LLM UIs.

antirez is right that generation tok/s isn't flat as a function of context length, which is a weakness of both simulators.

ricardobeat today at 7:25 PM
It's interesting how even 5 tok/s is still much faster than you'd typically type, but feels glacially slow for an agent.

On the other hand, I've been using Mimo and Minimax a lot recently. They routinely reach 100-150 tokens per second and that feels too fast, to the point where it's hard to keep up with what it's actually doing. Great for subagents though.

jerf today at 7:19 PM
I'm flashing back to using a 1200 baud modem when the world was on 28.8k. Modems are much more regular-looking, though, since each character is a character. Unless you count color changes and such, which you only really notice at 1200...
aurareturn today at 6:49 PM
We truly are in the dial up era of GenAI.
Aurornis today at 7:28 PM
Cool visualization, but most of the token generation in my sessions doesn't go to output code or even the text I see. Reasoning tokens make up most of the output. That can only occur after processing the input files and context.

For non-trivial work I go through hundreds of thousands of tokens (combined prefill + tg of course) before even getting to some useful text output.

I mostly use LLMs for exploration and studies, rarely code generation. Prefill matters heavily for this. Even in the high hundreds or low thousands prefill rate I spend a lot of time waiting on the LLM (doing other things, not twiddling thumbs)

unglaublich today at 7:23 PM
30tok/s looks fine when you're just streaming code, but the issue is that there's a lot of background noise like tool-calling conventions, metadata, "thinking", etc.
antirez today at 6:37 PM
Token/sec only makes sense once you tell me three four things:

1. decoding t/s, that is, when the model is generating text in the autoregressive fashion.

2. prefill t/s, that is, prompt processing speed.

3. What is the slope of those two numbers as the context size increases. An implementation that decodes at 50t/s with 2k context but decodes at 7t/s at 100k context is going to be a lot less useful that it seems at a first glance for a big number of real world use cases.

4. What's your use case? Reading a huge text and then having a small output like, fraud probability=12%? Or Reading a small question and generating a lot of text? This changes substantially if a model is usable based on its prefill/decoding speed.

For instance my DS4F inference on the DGX Spark does prefill at 350 t/s and at 200 t/s on already large contexts. But decodes at 13 t/s.

On the Mac Ultra the prefill is like 400 t/s and decoding 35 t/s.

The two systems can perform dramatically differently or almost the same based on the use case. In general for local inference to be acceptable, even if slow, you want at least 100 t/s prefill, at least 10 t/s generation. To be ok-ish from 200 to 400 t/s prefill, 15-25 t/s generation. To be a wonderful experience thousands of t/s prefill, 100 t/s generation.

bjelkeman-again today at 5:44 PM
Interesting. It seems to me that with that speed (20-30) on local hardware the real issue is quality of output, not tokens per sec.
adampzakaria today at 6:59 PM
This is awesome!! I use Cursor and I've been trending towards medium thinking models as much as possible - I don't like the dev cadence with something like opus 4.7 (thinking: very high) (great for some tasks, like complex plans). Eventually I'd like to make my way to open models and open harness, and this tool or something like it could help me understand what performance I'd need for productive work - bookmarked!
dinkleberg today at 7:24 PM
This reminds me of when I signed up for cerebras to try it out and dumped $20 in and hooked it into opencode and the speed was truly insane. But my one session burnt through like $15 of that in seemingly a matter of minutes. I've since used those really high tok/s options for specific application use cases, but would not advise as a coding agent. Much harder to catch issues when it is moving a million miles an hour and then it is too late and it has already spent a ton of tokens.
flockonus today at 8:06 PM
Curious about the other way around, how many tokens per second a productive developer codes in a day?
emehrkay today at 6:40 PM
I just looked up what my computer is capable of (m2 MacBook Air) and it says 15-35 tokens per second. I could live with that writing code with a local model.
ohadron today at 6:21 PM
This is great. Agentic coding at 600+ tokens/sec is going to be a radically different beast. Coming soon-ish?
johng last Monday at 4:24 AM
Neat website, the visualization is great. I had a hard time wrapping my head around the tokens/s thing but this made it easy.
aurareturn today at 7:19 PM
One thing I noticed is that prior to AI coding agents, I used to be able to tolerate 10 tokens/s. With AI Agents, I think 60 is minimum.
raverbashing today at 6:08 PM
On avg 1 token = 4 chars

So 75 tokens/s is ~ 300 chars per second which is the speed you'd get with a 2400 baud modem

kirugan today at 7:44 PM
Nice, I always thought 15 tok/sec is too "slow"
niek_pas today at 9:14 PM
RIP my browser history, I guess
bob1029 today at 7:26 PM
The non-linear scaling on the slider is an excellent UX.
casey2 today at 10:26 PM
Not very far til we reach 1MTk/s per LLM. Computing is going to look very different in the future.
dfollent last Monday at 2:54 AM
Neat visual. 5 tok/s is still faster than me!
dario-dentes last Monday at 2:15 AM
Thank you for this great utility. I love the "gut feel" calibration utilities like this one!
tantalor today at 6:57 PM
> Now switch between c and t at the same rate. The difference is striking — and intentional.

I don't see a big difference.

dbalatero today at 5:45 PM
This is cool, thanks for making it.
Eswo today at 6:16 PM
super cool, thanks
victorbjorklund today at 6:18 PM
This is great.
gordonhart today at 7:46 PM
[dead]
tuo-lei today at 6:47 PM
[flagged]