跳到主要内容Skip to main content

分块预填充Chunked Prefill

Chunked Prefill

  • 硬件与部署Hardware & deployment
  • 第五段 · 跑起来Stage 5 · Running It
  • 引用核验 2026-11-09refs checked 2026-11-09
解决什么问题What problem it solves

把很长的输入切成小块处理,顺便和生成中的请求混在一起跑。Process a long input in smaller chunks, mixing it with requests that are generating.

这是什么What it is

vLLM 官方定义:允许把大的预填充拆成较小的块,并与解码请求一起批处理。

官方称它通过平衡计算密集与显存密集两类操作,同时改善吞吐和延迟。

vLLM's definition: process large prefills in smaller chunks and batch them with decode requests.

The docs say it improves both throughput and latency by balancing compute-bound and memory-bound work.

为什么需要知道Why it matters

长输入把首字延迟拖爆时,这是服务端最常用的缓解手段。When a long input wrecks time-to-first-token, this is the standard server-side mitigation.

出处Sources
  • vLLM 优化配置文档vLLM optimization configuration ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →