[KongchangAI]
Concept预填充阶段

Prefill

The first stage of large language model inference, in which the GPU processes all input tokens in parallel and constructs the KV Cache. This stage determines Time to First Token (TTFT) and is the primary computational phase targeted by Prompt Cache optimization techniques.

Core Facts

Timeline (last 90 days)

Nov 23

The prefill stage refers to the process in which the model processes the input prompt and builds the KV cache; its latency grows with input length and directly determines how long users wait for the first token.

Unverified50%
Oct 31

In a distributed inference architecture, interfaces between components must explicitly pass all state (including rejection status), otherwise unchecked implicit assumptions can lead to data cross-contamination.

Unverified50%
Oct 31

During cross-machine handoff, Decode only asked whether the task was complete and did not check whether the task had been rejected, so after Prefill rejected an overlong prompt and replaced it with a placeholder, Decode still reserved and read pages according to the original plan, exceeding the amount actually sent.

Unverified50%
Oct 23

The inference framework uses a read-write separation architecture: the Prefill stage uses ordinary 8-card machines and the Decode stage uses large machines with 64 or 128 cards; the minimum configuration is 64 read cards and 64 write cards, 128 cards in total, and reads and writes can be deployed in different data centers connected by fiber optics.

Unverified50%
Oct 19

The prefill phase performs one forward computation over the entire input to produce KV caches for all positions, and is compute-bound; the decode phase generates tokens autoregressively one by one and is memory-bandwidth-bound.

Unverified50%
Oct 16

Transformer inference is divided into two stages, prefill and decode: prefill processes the entire input prompt in parallel at once and is mainly compute-bound; decode generates output tokens one by one and is mainly memory-bandwidth-bound.

Unverified70%
Oct 15

The prefill phase feeds the entire input prompt into the model at once, attention computation can be fully parallelized, and it is a compute-intensive workload where GPU utilization is near saturation but latency scales approximately linearly with input length.

Unverified50%
Oct 12

The prefill phase processes the complete input context, computes attention for all input tokens, and generates the KV cache; it is a compute-intensive operation whose time consumption is strongly correlated with input length.

Unverified70%
Oct 12

The prefill stage refers to the process in which the model processes the input prompt all at once; the computation is proportional to input length, and in long-document scenarios the time to first token (TTFT) is significantly prolonged.

Unverified60%
Oct 11

Disaggregated inference decouples the compute-intensive prefill stage from the memory-bandwidth-intensive decode stage, allocating them to separate hardware resource pools best suited to each for independent scaling.

Unverified50%

21 more timeline events

All Facts (20)

Verified

The Prefill phase is a compute-intensive operation, while the Decode phase is a memory-bandwidth-intensive operation.

90%
Verified

LLM inference is divided into two phases: the prefill phase (compute-intensive) and the decode phase (memory-bandwidth-intensive).

90%
Verified

The prefill stage of Transformer inference is primarily bottlenecked by compute (FLOPS), while the decode stage is primarily bottlenecked by memory bandwidth.

80%
Verified

The Prefill stage is the first step of large language model inference, in which the model performs a complete forward computation in parallel over all input tokens to generate the KV Cache for every layer.

75%
Verified

P/D Disaggregation (Prefill/Decode Disaggregation) deploys the Prefill and Decode stages on different nodes to independently scale according to their respective computational characteristics, while simultaneously optimizing throughput and time to first token (TTFT).

75%
Verified

In the inference pipeline, the Prefill stage is compute-intensive and time-consuming, while the Decode stage performs token-by-token autoregressive generation and is sensitive to latency.

75%
Verified

The Prefill phase is a compute-intensive task with high demands on compute power; the Decode phase is a memory-access-intensive task that is sensitive to GPU memory bandwidth.

75%
Verified

TTFT is determined by the Prefill phase and is compute-bound, while TPOT corresponds to the Decode phase and is memory-bandwidth-bound.

70%
Verified

Large model inference is divided into two phases, Prefill and Decode; Prefill is a major component of Time to First Token (TTFT), while Decode corresponds to Time Per Output Token (TPOT).

65%
Verified

LLM inference requests are divided into two phases—Prefill (input) and Decode (output); Prefill can read inputs in parallel with extremely high throughput, while Decode requires token-by-token serial inference and occupies significantly more GPU time.

65%
Verified

The prefill stage of LLM inference processes all input tokens in parallel and generates the initial KV Cache; it is a compute-intensive operation and the direct determinant of TTFT.

65%
Unverified

传统混合部署中Prefill阶段的大批量计算会阻塞Decode阶段的token生成,导致TTFT波动剧烈

85%
Unverified

Transformer inference is divided into two stages, prefill and decode: prefill processes the entire input prompt in parallel at once and is mainly compute-bound; decode generates output tokens one by one and is mainly memory-bandwidth-bound.

70%
Unverified

The prefill phase processes the complete input context, computes attention for all input tokens, and generates the KV cache; it is a compute-intensive operation whose time consumption is strongly correlated with input length.

70%
Unverified

Separating Prefill and Decode to run on different resources is the mainstream architecture for optimizing resource utilization in current large-scale inference services.

70%
Unverified

The prefill stage is highly parallel with large throughput but latency that grows with context length, while the decode stage generates tokens auto-regressively and its speed is limited by memory bandwidth.

65%
Unverified

The prefill stage refers to the process in which the model processes the input prompt all at once; the computation is proportional to input length, and in long-document scenarios the time to first token (TTFT) is significantly prolonged.

60%
Unverified

The Prefill (prompt processing) phase is compute-intensive and relies on the GPU's parallel matrix computation capability; the Decode (generation) phase is memory-bandwidth-intensive and depends more on VRAM bandwidth.

60%
Unverified

The prefill stage refers to the process in which the model processes the input prompt and builds the KV cache; its latency grows with input length and directly determines how long users wait for the first token.

50%
Unverified

In a distributed inference architecture, interfaces between components must explicitly pass all state (including rejection status), otherwise unchecked implicit assumptions can lead to data cross-contamination.

50%

Source Articles