Research 11 min read

Prompt Processing Speed vs Token Generation Speed: Every Number We Measured on a 5090 and Two DGX Sparks

ai.rs Nov 27, 2026
Prompt Processing Speed vs Token Generation Speed: Every Number We Measured on a 5090 and Two DGX Sparks illustration

In June we wrote the explainer: an LLM reads your prompt at one speed, prompt processing (prefill), and writes the answer at another, token generation (decode), and the two are limited by different things. It is the most-read page on this site, and the questions that bring people to it are mostly the same one: what are the numbers? This is the ledger. Every prefill and decode rate we have measured on the two machines we own, an RTX 5090 and a pair of GB10 boxes, placed against the ceiling each machine allows, with one measurement we took this week that corrects a thing we and most of the internet had wrong about what nvidia-smi shows.

The rule the whole page is read against

Token generation reads the model once per token, so its ceiling is memory bandwidth divided by bytes per token. On the 5090 that is 1,792 GB/s; on a GB10, 273 GB/s. A 17 GB model on the 5090 cannot decode faster than 105 tokens a second for one user, however good the software, and a 16 GB model on a GB10 cannot pass 17. Prompt processing runs all the prompt's tokens through the network together, so its ceiling is compute: FLOPS divided by the FLOPs a token costs, roughly twice the parameter count. Every row below carries its share of the relevant ceiling, because the share, not the raw number, tells you whether the software or the silicon is the limit.

Test rig. RTX 5090, 32 GB, driver 610.57.04, in a desktop that also holds the display session. Two GB10 workstations (an HP ZGX Nano and an ASUS Ascent GX10), 128 GB each, one 200 Gb cable, tensor parallel 2. All 5090 rows in the first two tables were measured on 27 November 2026 through Ollama at temperature 0, one user: decode on a 600-token story, prefill on a 21,000-token prompt with one output token, the model preloaded so no load time is in the sample. GB10 rows are from the articles linked in each row, same prompts across them. Nothing on this page is a vendor number.

RTX 5090: token generation

model, Ollama build weights decode tok/s bytes moved per second share of 1,792 GB/s
Qwen3 8B, Q4_K_M 5.2 GB 212 1,105 GB/s 62%
Llama 3.1 8B, Q4_K_M 4.9 GB 166 814 GB/s 45%
Qwen 3.5 9B, Q4_K_M 6.6 GB 170 1,120 GB/s 63%
Gemma 3 12B, Q4_K_M 8.2 GB 116 949 GB/s 53%
Qwen 3.5 27B, Q4_K_M 17 GB 62 1,063 GB/s 59%
Gemma 3 27B, Q4_K_M 17 GB 62 1,054 GB/s 59%
Qwen3 32B, Q4_K_M 20 GB 57 1,140 GB/s 64%
Qwen3-Coder 30B-A3B, Q4, MoE 18 GB on disk, ~1.8 GB read per token 198 ~360 GB/s 20%

Read the last column first. Every dense model lands between 45 and 64% of the bus, whatever its size: the 8B and the 32B are the same engine reaching the same fraction of the same memory system, and the tokens per second is nothing but that fraction divided by the weight size. That is the whole content of "decode is bandwidth-bound", in one column. The one row that breaks the pattern is the mixture-of-experts model: it carries 18 GB but reads about a tenth of it per token, so it decodes like a 2B model, at 198 tok/s, and leaves most of the bus idle. Why MoE does that has its own page.

Two older 5090 rows belong beside these. Qwen3-8B at Q6_K ran at 161 tok/s in February, 6.7 GB at 60% of the bus, the same fraction as today. And the same card serving the same 8B model through vLLM in NVFP4 managed 68 tok/s for one user and 332 aggregate for eight, which is the other half of the rule: batching raises the total and never the single stream, because the single stream is the bus.

RTX 5090: prompt processing

model prefill tok/s, 21K-token prompt time to read 21K tokens
Qwen3 8B 9,761 2.2 s
Llama 3.1 8B 10,532 2.0 s
Qwen 3.5 9B 10,130 2.1 s
Gemma 3 12B 7,885 2.7 s
Qwen 3.5 27B 3,067 6.9 s
Gemma 3 27B 3,775 5.6 s
Qwen3 32B 2,329 9.1 s
Qwen3-Coder 30B-A3B 8,089 2.6 s

Prefill scales with parameters, not bytes: the 8B models read a prompt three to four times faster than the 27B and 32B, in line with the compute each token costs, and the MoE again behaves like its active size. The numbers are 40 to 170 times the decode rates on the same models, which is the ratio the explainer promised. They also grow with prompt length, because a longer prompt fills the GPU better: on the pair, DeepSeek V4 Flash read 1,673 tok/s at 8K, 2,323 at 32K and 2,644 at 100K. The fastest prefill we have ever logged on the 5090 is 57,789 tok/s, on a 135M model that fits in the card's L2 cache; the slowest is a 763B model reading from NVMe, which is a different article.

Two DGX Sparks: both speeds on a 273 GB/s bus

The pair holds models the 5090 cannot, at a bandwidth a sixth as wide. These are the single-stream decode rates, same prompts, same front end, on the four big models we have run there:

model, two GB10s engine decode, structured decode, prose the step arithmetic
DeepSeek V4 Flash, 304B, NVFP4 vLLM, DSpark drafter 88 33 ~14 steps/s × ~6.3 accepted tokens
DeepSeek V4.1 Flash, 763B, EXL3 2.9 bpw TensorFold 138 61 23 steps/s × 5.9 accepted tokens
Qwen3.8-Flash-Next, 180B, NVFP4 vLLM, MTP k=4 71 31 14.2 steps/s × 5.0
GLM-5.3-Flash, 320B vLLM 52 30

On a GB10 the ceiling is low enough that the engine's overhead shows. V4 Flash reads about 7 GB per step, so the bus allows roughly 39 steps a second; vLLM, forced to launch every kernel from Python on this chip, completes 14. TensorFold, replaying one captured CUDA graph per step, completes 23 on a model that reads about 6 GB, and that, not the model, is the 1.6× between the first two rows. The structured-versus-prose split is the drafter: a draft head guesses six tokens a step and is right five or six times on a counted list, two or three times on a story.

Prefill on the pair is compute on two small GPUs, and it falls as the context grows because attention over the earlier tokens costs more each step:

prompt length V4 Flash, vLLM V4.1 Flash, TensorFold
8K tokens 1,673
100K 2,644
269K 1,505 2,070
538K 1,170 1,860
835K to 976K 1,068 1,620

For scale: the same V4.1 model on DeepSeek's own API read the same 269K to 538K prompts at 37,000 to 50,000 tok/s. That is what a rack of accelerators does with prefill, and it is the right mental picture of what you are not buying with a desk-side box.

Speculative decoding: the only way past the ceiling

The ceiling is per step, not per token. A drafter that proposes several tokens and has the model verify them in one pass moves the same bytes per step and emits more tokens per step. The rows we have:

model, RTX 5090 plain decode with a drafter gain
Qwen3.8-27B, MTP head 66 147 to 165 2.2 to 2.5×
Muse Glimmer 30B, DFlash drafter, code 77 435 5.6×
same, structured 77 259 3.4×
same, prose 77 145 1.9×

The gain is the acceptance rate, and acceptance is highest on predictable text: code, lists, JSON. On prose the drafter is wrong more often and the gain shrinks to under 2×. The 138 tok/s on the pair above is the same trick on a different engine. If your workload is code, a drafter is worth more than a faster GPU.

What nvidia-smi shows, and what it does not

This is the measurement we took for this article, and it corrects a claim we would have made without it. The textbook line is that a bandwidth-bound decode leaves the GPU "underutilised". We sampled the card at 500 ms through every run above. It does not read that way.

RTX 5090, Qwen 3.5 27B GPU-Util memory-controller utilisation power
token generation, 62 tok/s 96% 73% 499 W
prompt processing, 3,067 tok/s 100% 28% 600 W

Across the five models: GPU-Util 93 to 99% in decode and 100% in prefill; memory-controller utilisation 59 to 79% in decode against 28 to 33% in prefill; power 330 to 530 W in decode against 530 to 600 in prefill. The MoE model is the outlier on the memory column, 37%, because it reads a tenth of its weights.

nvidia-smi's "GPU-Util" is the fraction of time any kernel is resident on the chip. During decode a kernel is always resident; it is simply waiting on memory most of the time, and the counter does not know the difference. The number that identifies a bandwidth-bound phase is the memory-controller column, and the second tell is power: a chip stalled on loads draws 100 to 250 W less than one doing matrix maths, and in a separate run we saw it clock higher for the same reason, 3,030 MHz in decode against 2,786 in prefill.

So if your GPU-Util is genuinely low during decode, 20 or 30%, the card is not bandwidth-bound; it is waiting on something outside it. We have met three versions. A Python scheduling loop that launches each kernel by hand, which is vLLM on the GB10 with CUDA graphs disabled and the reason a native engine is 1.6× faster on identical hardware. Weights streamed over PCIe from host RAM or NVMe, which is V4.1 Flash on one 5090, where 54% of each token's time is the SSD. And a model so small that each token's kernels are shorter than the gaps between them, which is where CUDA graphs gave a 135M model 1.8×. The fix in each case is to feed the GPU, not to buy a faster one.

A correction to March

Re-measuring the 5090 ladder caught two rows in our March comparison that cannot be right: Qwen 3.5 27B and Gemma 3 27B at 98 and 102 tok/s from 20 to 21 GB of weights, which would be 2,000 GB/s on a 1,792 GB/s card. Re-measured today at Q4_K_M, both decode at 62 tok/s, 59% of the bus, and Gemma 3 12B at 116 rather than 138. That article now carries the corrected rows and this note.

How to read a benchmark line now

Three lines from this site, read with the rule:

  • "2,644 prefill / 88 decode", V4 Flash on the pair. 88 × 7 GB per step ÷ 6.3 tokens per step is 98 GB/s per node of 273: the engine, not the bus, is the limit, and a better engine proved it.
  • "212 tok/s", Qwen3 8B on the 5090. 212 × 5.2 GB is 1,105 GB/s, 62% of the bus: this is as fast as this card decodes a 5 GB model without a drafter, and a 4090 would do about 55% of it.
  • "435 tok/s on code", Muse Glimmer with DFlash. Same 77 steps a second as plain decode, 5.6 tokens accepted per step: a drafter number, which prose will not reproduce.

And the decision, unchanged from the explainer but now with numbers behind it: long prompts want compute or a cached prefix, so a 5090 reads 21K tokens in 2 to 9 seconds where the pair takes 8 to 15 for a far bigger model; long answers want bandwidth or a drafter, so a 5090 writes 3 to 4× faster than the pair on anything that fits it, and a drafter on either doubles that on code.

Frequently Asked Questions

What is prompt processing speed? +

The rate at which a model reads the prompt, in tokens per second, also called prefill. It is compute-bound, so it is thousands of tokens a second on a desktop GPU: in our 28 November runs an RTX 5090 read a 21,000-token prompt at 9,800 to 10,500 tok/s with an 8B model and 2,300 to 3,800 with a 27B to 32B one. On two DGX Sparks, DeepSeek V4 Flash reads 1,700 to 2,600 tok/s and V4.1 Flash about 2,000. It sets your time to first token.

What is token generation speed? +

The rate at which a model writes its answer, also called decode, and the number you watch as text streams. It is bandwidth-bound: every token reads the model's weights once, so the ceiling is memory bandwidth divided by bytes per token, and real engines reach 45 to 64% of that. On an RTX 5090 that is 212 tok/s for a 5 GB model and 57 to 62 for a 17 to 20 GB one; on two DGX Sparks, 33 to 61 tok/s on prose for 300B to 760B models.

What is a good tokens per second for a local LLM? +

Measure it against the ceiling, not against a number. Divide your GPU's bandwidth by the model's size in bytes: an RTX 5090 at 1,792 GB/s with a 17 GB model allows 105 tok/s, and a well-run engine reaches 55 to 65% of that, so 60 is good and 30 means something is wrong. For reading, anything over 30 tok/s is faster than you read; for agents and code, every token counts and a speculative drafter is worth 2 to 5× on top.

Why is prefill so much faster than decode? +

Prefill processes all prompt tokens in one batch of large matrix multiplications, which uses the GPU's compute; decode produces one token per pass and has to stream the whole model out of memory for each one. On the same RTX 5090 and the same 27B model we measured 3,067 tok/s prefill against 62 decode, a 49× gap, with the GPU's memory controller at 28% in prefill and 73% in decode.

Why does nvidia-smi show high GPU utilization during decode if decode is memory-bound? +

Because GPU-Util counts the time any kernel is resident, not the work it does. During decode a kernel is always resident and mostly waiting on memory, so the counter reads 93 to 99% on our RTX 5090 across five models. The bandwidth-bound tell is the memory-controller utilisation, 59 to 79% in decode against about 30% in prefill, and power, 100 to 250 W lower. A genuinely low GPU-Util during decode means the GPU is waiting on the CPU, PCIe or disk.

How do I estimate decode speed from memory bandwidth? +

Ceiling = bandwidth ÷ bytes per token, then take about 60%. For a dense model the bytes per token are the weight file size; for a mixture-of-experts model they are the active parameters' share of it. An RTX 5090 with an 8B Q4 model: 1,792 ÷ 5.2 = 345 ceiling, 60% is about 210, and we measured 212. A DGX Spark with a 16 GB model: 273 ÷ 16 = 17 ceiling, so 11 to 13 in practice, which is what independent runs report.

Wondering if this fits your business?

The benchmarks and architectures we cover here power real production AI assistants. See where your business stands in 2 minutes.

Take the AI Readiness Check
Share: Post Share

Read next