跳到主要内容Skip to main content

上下文并行Context Parallelism

Context Parallelism

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

把超长上下文拆到多张卡上分别处理。Split a very long context across several cards for processing.

这是什么What it is

vLLM 官方把它与张量、流水线、数据、专家并行并列为分布式推理手段。

它针对的是注意力开销随序列长度二次增长。

vLLM lists it alongside tensor, pipeline, data and expert parallelism for distributed inference.

It targets the quadratic growth of attention cost with sequence length.

为什么需要知道Why it matters

想要超长上下文靠的是这类技术,不是单卡显存更大。Very long contexts come from techniques like this, not from a single bigger card.

出处Sources
  • vLLM 官方文档首页vLLM documentation ↗
  • FlashAttention 论文FlashAttention paper ↗
用这个术语做任务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 →