Skip to content
inference.academy

glossary/serving/chunked-prefill

Chunked prefill

also split prefill, Sarathi

Splitting a long prompt's prefill into pieces of a few thousand tokens and running each piece in the same step as the batch's decode work. Without it, one 100K prompt stalls every stream in the batch for the length of its prefill. With it, the prompt takes more steps to finish but nobody else's tokens stop. It trades first-token latency for the long request against inter-token latency for everyone else.


one step

The longest any decode stream waits for someone else's prompt, instead of the whole prefill.


See it happen


Related