[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)

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.

Unverified50%
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%
Oct 11

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.

Unverified50%
Oct 5

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.

Unverified50%
Oct 4

The prefill phase requires processing all input tokens at once and is a compute-intensive operation, whereas the decode phase generates only one token per step and is a memory-bandwidth-intensive operation.

Unverified50%
Oct 1

The computational complexity of the prefill stage has a quadratic relationship with sequence length (O(n²)).

Unverified50%
Sep 23

The Prefill stage of LLM inference is a compute-intensive operation whose primary bottleneck is GPU/NPU compute (FLOPS).

Unverified50%
Sep 23

The Neural Accelerator's speedup for Prefill is approximately 3–5 times, far exceeding its speedup for Decode, which benefits more from increased memory bandwidth.

Unverified50%
Sep 23

The Prefill stage of autoregressive model inference processes the entire prompt at once, which is a standard GEMM operation with high arithmetic intensity and is compute-bound.

Unverified50%
Sep 18

The computational cost of Prefill scales approximately linearly to quadratically with input length, making it one of the main sources of inference latency.

Unverified50%

13 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

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

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

65%
Verified

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

65%
Unverified

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

85%
Partially Verified

LLM 推理分为预填充阶段(Prefill,计算密集型)和解码阶段(Decode,内存带宽密集型)两个阶段

65%
Unverified

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).

60%
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.

50%
Unverified

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.

50%
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.

50%
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.

50%
Unverified

The prefill phase requires processing all input tokens at once and is a compute-intensive operation, whereas the decode phase generates only one token per step and is a memory-bandwidth-intensive operation.

50%
Unverified

The computational complexity of the prefill stage has a quadratic relationship with sequence length (O(n²)).

50%
Unverified

The Prefill stage of LLM inference is a compute-intensive operation whose primary bottleneck is GPU/NPU compute (FLOPS).

50%
Unverified

The Neural Accelerator's speedup for Prefill is approximately 3–5 times, far exceeding its speedup for Decode, which benefits more from increased memory bandwidth.

50%
Unverified

The Prefill stage of autoregressive model inference processes the entire prompt at once, which is a standard GEMM operation with high arithmetic intensity and is compute-bound.

50%
Unverified

The computational cost of Prefill scales approximately linearly to quadratically with input length, making it one of the main sources of inference latency.

50%
Unverified

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.

50%
Unverified

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

50%
Unverified

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.

50%

Source Articles