[KongchangAI]
Conceptprefill

Prefill Stage

The prefill stage is the first stage of large-model inference, in which the model reads the entire input context at once and computes attention. Its computational load is approximately proportional to context length and directly affects first-token latency.

Timeline (last 90 days)

Oct 26

The prefill stage is the process in which the model builds a key-value cache (KV Cache) for all input tokens when processing user input.

Unverified50%
Oct 16

Transformer inference is divided into two phases: a parallel compute-intensive prefill phase and a sequential memory-bandwidth-intensive decode phase.

Unverified50%

All Facts (2)

Source Articles