Skip to content

vllm.v1.attention.ops.pcp

_gather_prefill_cache_inputs(tensors, slot_mapping, num_decode_tokens, shard_decode_requests=False)

Gather PCP cache inputs while preserving replicated KV-cache state.

PCP-only execution shards decode requests across ranks. In that mode each rank must gather the other owners' decode KV as well as partitioned prefill KV so every PCP rank retains a complete cache replica. DCP execution keeps decode requests replicated and uses the legacy prefill-only gather.