---
title: "Cache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM serving"
description: "Cache-aware prefill–decode disaggregation (CPD) extends standard PD serving with a dedicated pre-prefill tier for low-reuse (cold) long prompts, a router that estimates prefix-cache reuse per request, and a three-level KV cache hierarchy (GPU memory, host DRAM, RDMA-connected distributed cache)."
url: "https://swe.quest/articles/cache-aware-prefill-decode-disaggregation-cpd-for-up-to-40-faster-long-context-7f727a0ea889f194"
canonical: "https://www.together.ai/blog/cache-aware-disaggregated-inference"
source: "Together AI"
published: "2026-03-04"
difficulty: "hard"
kind: "Research"
reading_minutes: 9
tags: ["inference","caching","llms","performance","scheduling"]
---

# Cache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM serving

A post on [Together AI](https://swe.quest/sources/together.md), published 2026-03-04, 9 min read, Research. Original: [https://www.together.ai/blog/cache-aware-disaggregated-inference](https://www.together.ai/blog/cache-aware-disaggregated-inference)

## Summary

Cache-aware prefill–decode disaggregation (CPD) extends standard PD serving with a dedicated pre-prefill tier for low-reuse (cold) long prompts, a router that estimates prefix-cache reuse per request, and a three-level KV cache hierarchy (GPU memory, host DRAM, RDMA-connected distributed cache). Cold prefills compute new context and write KV state to the distributed cache, so warm requests on normal prefill nodes fetch KV blocks instead of queueing behind multi-second prefills. On B200 GPUs with a synthetic coding-agent workload, CPD raised sustainable throughput from about 0.75–0.8 to 1.1–1.15 QPS per GPU (~40%) and kept median TTFT far lower near saturation, without worsening p90 tail latency. The gains come from scheduling and cache reuse on the prefill path, not faster model execution.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)

## Prerequisites

- LLM prefill and decode phases ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- KV cache and prefix caching ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- prefill–decode disaggregation
- RDMA basics

## Keywords

CPD, prefill–decode disaggregation, KV cache, prefix caching, RDMA, NVIDIA B200, Together AI, TTFT

## Related posts

- [Continuous batching from first principles](https://swe.quest/articles/continuous-batching-from-first-principles-b2a5a3d9c00e56be.md): Hugging Face · 2025-11-25 · Medium · 17 min read · Inference & serving, LLMs, Performance engineering
  Continuous batching falls out naturally once you optimize LLM serving for throughput, and the post derives it step by step from attention, causal masking, KV caching and chunked prefill.
- [Prefill and Decode for Concurrent Requests - Optimizing LLM Performance](https://swe.quest/articles/prefill-and-decode-for-concurrent-requests-optimizing-llm-performance-66a6db57e54903ca.md): Hugging Face · 2025-04-16 · Medium · 10 min read · Inference & serving, LLMs, Performance engineering, Hardware
  LLM token generation splits into a compute-bound prefill phase, which processes all prompt tokens in parallel to produce the first token, and a memory-bandwidth-bound decode phase, which produces later tokens one at a time.
- [How Long Prompts Block Other Requests - Optimizing LLM Performance](https://swe.quest/articles/how-long-prompts-block-other-requests-optimizing-llm-performance-d2ca64ef1cd69733.md): Hugging Face · 2025-06-12 · Hard · 7 min read · Inference & serving, LLMs, Performance engineering, Scheduling
  Under vLLM's default chunked-prefill scheduling, a single long prompt blocks the prefill queue, and any prefill running alongside decodes slows token generation for requests already in progress.
- [Making open models work for long-horizon agentic workloads](https://swe.quest/articles/making-open-models-work-for-long-horizon-agentic-workloads-904e5a2645303fb2.md): Together AI · 2026-11-16 · Medium · 12 min read · Inference & serving, AI agents, Caching, LLMs, Load balancing
  Agentic coding workloads resend the whole growing transcript each turn while emitting short tool calls, so they are prefill-dominated and depend on prefix caching, which only reuses work up to the first changed token.
- [Optimizing inference speed and costs: Lessons learned from large-scale deployments](https://swe.quest/articles/optimizing-inference-speed-and-costs-lessons-learned-from-large-scale-1e80b28572985147.md): Together AI · 2026-01-22 · Easy · 6 min read · Inference & serving, LLMs, Cost optimization, Performance engineering
  Lower LLM inference latency and cost come mainly from how inference runs rather than from buying more GPUs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
