Prefill · measured on NVIDIA H100

Read long prompts 40% faster.

Before a model writes a word, it has to read the whole prompt. weights.zip Prefill makes that step faster. On an H100, a 14B model reads a 128k-token prompt 1.4x faster than with dense FlashAttention-3, the fastest standard attention kernel on the chip, at full accuracy: 20 of 20 retrieval checks passed. Longer prompts gain more.

A 128k-token prompt streaming into an NVIDIA H100, read 1.4x faster
Time to read one 128k-token prompt14B model · NVIDIA H100
Dense FlashAttention-3baseline
1.00x
weights.zip Prefillmeasured
1.4x

Same model, same prompt, same GPU. The timeline is scaled to the measured result: weights.zip finishes in 71% of the time.

1.4xfaster prefill, 14B model, 128k tokens (measured)
29%less prefill time on that prompt
59%of prompt time is attention at 128k (measured)
1.8xestimated at 1M tokens on the same model
20/20retrieval checks passed at full accuracy (measured)
How it scales

The longer the prompt, the bigger the win.

Larger models gain a little less. Longer prompts gain a lot more. The 14B, 128k result is measured on H100; the other three are estimates from how the costs grow with model size and prompt length, not measurements.

Prefill speed-up over dense FlashAttention-3: 14B at 128k tokens 1.4x measured; estimated 1.3x for 70B at 128k, 1.8x for 14B at 1M, 1.75x for 70B at 1M, with ceilings of 1.55x, 1.4x, 2.2x and 2x

Measured Estimated Ceiling as today's overheads shrink Dense FlashAttention-3 (1x)

Model · promptAttention share
of prompt time
Speed-up todayCeiling
14B · 128k tokens measured59%1.4x1.55x
70B · 128k tokens estimateabout 47%about 1.3xabout 1.4x
14B · 1M tokens estimateabout 92%about 1.8xabout 2.2x
70B · 1M tokens estimateabout 88%about 1.75xabout 2x

At 70B the MLP is larger relative to attention, so attention is a smaller share of the time and the gain is a little lower. At 1M tokens attention costs 64 times what it does at 128k while the rest costs 8 times, so attention dominates and the gain grows.

Why it grows

Attention grows with the square. The rest, in a line.

  • Only attention gets faster. The rest of the model, the MLP and projections, reads every token no matter what.
  • Attention cost grows with the square of prompt length. Everything else grows in a straight line. Go from 128k to 1M tokens and attention costs 64x more; the rest, 8x.
  • So the speed-up follows attention's share of the time. The longer the prompt, the more of the time is attention, and the more there is to win.
Cost growth from 128k to 1M tokens: attention grows 64x, the rest of the model 8x

Cost relative to a 128k-token prompt.

Attention share of prompt time: 59% for 14B at 128k tokens, about 47% for 70B at 128k, about 92% for 14B at 1M, about 88% for 70B at 1M

Attention, the part that gets faster MLP and projections

Attention's share of prompt time

On a 14B model with a 128k-token prompt, attention is 59% of the time, measured. At 1M tokens it rises to about 92%, so nearly the whole prompt step is the part that gets faster.

A 70B model spends more of its time in the MLP, so at the same length its share is lower: about 47% at 128k and about 88% at 1M.

Where it pays off

Anywhere the prompt is long.

Faster time to first token

Users wait for the whole prompt to be read before anything streams back. At 128k tokens the prompt is read in 29% less time, so that wait shrinks with it.

measured

Fewer GPU hours on long documents

Contracts, codebases, transcripts and research packs are read in full on every request. Reading them faster frees GPU time for more traffic.

measured at 128k

Million-token contexts

The gain grows with length: an estimated 1.8x at 1M tokens on a 14B model, with room to about 2.2x as today's overheads shrink.

estimate

Pairs with KV Exact

Prefill reads the prompt faster. KV Exact then keeps the cache it writes a third smaller, bit for bit, for more conversations per GPU. →

product
What was measured
GPUNVIDIA H100
Model and prompt14B model, 128k-token prompt
BaselineThe same model running dense FlashAttention-3, in our own test setup
Result1.4x faster prefill
AccuracyFull accuracy: 20 of 20 retrieval checks passed

The comparison is against dense FlashAttention-3, not against a serving stack such as vLLM or TensorRT-LLM; neither was run. The 70B and 1M-token figures are estimates: the measured 14B, 128k speed-up applied to how attention and the rest of the model scale, not measurements.

Measure it on your prompts.

We run your model at your prompt lengths on your GPUs and report prefill time and time to first token against dense FlashAttention-3.

NVIDIA, H100 and the NVIDIA logo are trademarks of NVIDIA Corporation. weights.zip is not affiliated with or endorsed by NVIDIA.

Start with your own data

Free benchmark on your files and hardware.

  1. Send a sampleA few models, a checkpoint series or a KV cache dump, or run our benchmark inside your account.
  2. Get your numbersBytes saved, restore speed on your GPUs, and a byte-for-byte match report.
  3. PilotRun on one workload for 30 days. Pricing is per terabyte managed or a share of the measured saving.
Request a pilot
The product line

Ten products for the data inside AI models.

How these numbers were measured

All figures are measured on public models (Qwen2.5 0.5B and 1.5B, Llama-3.1 8B and 70B, Pythia-160M, GPT-2 and a 27B FP8 model) on NVIDIA H100 SXM, H200 and RTX 4060 GPUs. Every restore was checked byte for byte against the original. zstd comparisons use zstd level 19 or NVIDIA nvCOMP Zstd on the same files. Dollar figures assume S3 Standard-class storage at about $24 per TB-month and typical cloud egress pricing. Results depend on the model and data type, so the free benchmark measures yours.