[KongchangAI]
ConceptPrefilling / 预填充阶段

Prefill

One of the two main phases of large language model inference, responsible for simultaneously computing attention across all tokens in the input prompt. Computational cost scales quadratically with sequence length, making this a compute-intensive operation.

Core Facts

Timeline (last 90 days)

Oct 14

A machine without a dedicated GPU cannot ingest large prompts in a reasonable time, so a second host with a GPU is needed to solve the prefill problem.

Unverified50%
Sep 12

The prefill stage is a compute-intensive operation primarily limited by GPU compute, while the decode stage is a memory-bandwidth-intensive operation primarily limited by VRAM bandwidth.

Unverified50%
Sep 2

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.

Unverified50%
Aug 31

Time to First Token (TTFT) refers to the time interval between a user sending a request and the model outputting the first token, and is primarily constrained by the duration of the prefill stage.

Verified90%
Jul 20

The KV Cache mechanism can cache repeated prefix content, and the more concise the system prompt, the higher the cache hit rate.

Verified80%

All Facts (6)

Source Articles