AI inference glossary

ParallelismCP

Context parallelism

Also known as PCP, DCP, sequence parallelism

In plain English

Context parallelism splits one long prompt across several chips so they share the work of reading it and of scanning its stored attention state.

Technical Definition

Context parallelism distributes attention computation or KV state along the sequence dimension across accelerators, including prefill context parallelism (PCP) and decode context parallelism (DCP).

Engineering Details

PCP partitions new query-token computation and exchanges the needed keys and values, using a gather or a ring depending on the implementation. DCP shards KV state by token position, then combines local attention results and normalization statistics. A DCP-sharded cache can also be used during prefill; the names describe common optimization goals rather than mutually exclusive execution phases.

Why It Matters

Tensor parallelism can shard KV heads when the architecture has enough independent heads. Replication becomes a problem when the TP degree exceeds that head count or the model shares a latent cache across heads. Context parallelism can reduce that duplication or distribute long-prompt work, with communication and memory trade-offs that depend on the recipe.

How to Read It in InferenceX

InferenceX surfaces DCP and PCP degrees alongside TP, EP, and DP. The November 2026 TPU AgentX article describes DCP for GLM and its use during Kimi K3 prefill. Support must be checked for the selected engine, model, and version rather than inferred from an older vendor support matrix.

See the Concept in Real Benchmarks

All articles