DeepSeek's 100 PiB KV Cache Powers 35.7x Throughput Gain at 97% Hit Rate
DeepSeek open-sourced its Ascend-based inference engine revealing a 100 PiB KV cache system achieving 97.2% hit rate and 35.7x throughput improvement, using E/P/D separation architecture with Wide-EP decoding and 72-hour cache retention for Agent workloads.
Reading font

Two Scorecards Separated by 35.7x
On December 1, DeepSeek open-sourced DeepInfer, its production-grade inference engine for Huawei Ascend 950DT-PC16 UBL128. The release includes core operators, communication and memory management, inference pipelines, and task scheduling — all already serving DeepSeek V4.1 Flash at scale. Real-world production data shows:
Average input length: 98.44K tokens
P50 time-to-first-token: 277 ms
Single-stream output speed: 137.9 tokens/s
Estimated per-card hourly revenue (off-peak API pricing): ¥117.9
Two prefill throughput figures stand out:
Without cache hits: 26.03K tokens/s per card
With cache hits: 929.6K tokens/s per card
That is a 35.7x difference . The chip did not get 35.7x faster; the second number counts input tokens served by reusing historical computation. The enabler is a 97.2% average input cache hit rate . At 98.44K average input length, roughly 2,756 tokens per request miss the cache (actual compute cost also depends on model structure, cache reads, and context reconstruction).
Traditional inference efficiency metrics focus on chip FLOPS, memory bandwidth, and operator speed. In high-concurrency, long-context production, the same information is repeatedly processed. Even with fast operators, redundant prefill consumes compute. DeepSeek trades storage for compute by adding a massive distributed cache layer outside the inference servers.
100 PiB Cache Library — Designed for Agent Weekends
Agent workloads involve repeated model calls, tool use, and retrieval. Context grows long but each turn adds little new information. System prompts, tool definitions, business knowledge, and execution traces repeat across adjacent requests.
KV Cache stores attention intermediate states from prior tokens. When a new request shares a compatible prefix, the system reuses those states, skipping redundant prefill. On a single node, KV cache occupies GPU memory. At scale, cache placement, cross-node access, and retention become distributed storage problems.
DeepSeek stores chunked KV Cache in an independent 3FS distributed file system , providing ~100 PiB of SSD capacity . This decouples cache affinity from load balancing: any prefill node can access the same cache, and compute/storage scale independently.
Retention policies differ by traffic type:
Agent traffic: 72 hours — covers a weekend so Monday requests can reuse Friday's compute.
Chatbot traffic: 7 days — longer tail of prefix reuse observed in production.
These intervals come from measured prefix-reuse gaps in live traffic. The system applies classic data-engineering ideas — compute/storage separation, shared access, lifecycle management, resource scheduling — to already-computed model results . For long-context services, storage design directly dictates compute consumption.
Same Model, Two Execution Paths: E/P/D Separation
DeepSeek V4.1 Flash production uses an E/P/D separation architecture : Vision Encoder, Prefill, and Decode deployed independently with dedicated storage nodes. Prefill handles input context (large batches); Decode generates output tokens (high memory-bandwidth pressure).
For MoE models, DeepSeek recommends different parallelism per phase:
Prefill: EP2–8 / DP2–8 — each expert already gets large batches; smaller parallel groups improve load balance and reduce communication.
Decode: EP64–128 / DP64–128 (Wide-EP) — expert weight reads become the bottleneck; wider expert parallelism cuts per-step memory access, boosted by Expert Parallel Load Balancing (EPLB).
Ascend 950DT-specific optimizations in this release: fused operators, FP8 compute, expert weight reordering, KV Cache memory allocation, and async execution (overlapping CPU scheduling with device compute).
Identical model and hardware can yield vastly different throughput depending on task partitioning, expert placement, communication strategy, and scheduling. Scaling domestic compute to production requires solving not just "can it run" but "can every phase fully utilize resources."
Agent Context Organization Directly Impacts Compute Bills
DeepSeek's cache design adds an engineering lens for Agent developers: how context is organized affects underlying compute cost . An enterprise Agent request bundles system prompt, tool definitions, business rules, history, and dynamic retrieval. Even with high content overlap, changes in organization can break prefix cache reuse.
Examples that break cache matches:
Placing a changing timestamp at the prompt start.
Reordering tool definitions between calls.
Re-assembling history in a way that alters the established prefix.
The model still understands; the inference system sees a new long sequence. In prefix-caching systems, identical models, tasks, and token counts can incur different compute depending on harness and context structure.
Context Engineering now has a new dimension: audit context for compute reuse . Stabilize system prompts, business rules, tool definitions; organize dynamic retrieval and execution state carefully. Cache hit rate cannot override business correctness — rule changes, revoked permissions, stale data must update model-visible info. KV Cache reuses compute; it does not handle Agent memory, permissions, or knowledge governance.
For continuous Agents, optimization targets expand beyond task success, quality, and token count to include cache hit rate, redundant compute ratio, and actual resources per effective business task . These are hypotheses from DeepSeek's mechanism; each enterprise must validate in its own traffic.
Open-Source Engine ≠ Full Production System
The DeepInfer repo states scope clearly: current version provides offline inference with core engine features for large-scale serving. Missing pieces requiring additional build-out:
Complete KV Cache system
Vision Encoder / Prefill / Decode disaggregated deployment
Cross-data-parallel-replica load balancing for Prefill and Decode
KV Cache management and load balancing are tightly coupled to DeepSeek's internal infrastructure. This explains why same weights + same engine ≠ same online performance. Under real traffic: cache reuse sustainability, phase load balance, expert communication efficiency all determine service cost.
The opening ¥117.9/card/hour is a derived revenue figure from a specific production environment (API price, request shape, hit rate, cluster utilization, load). It is not profit and not a fixed per-card yield outside that environment.
Enterprises need not replicate a 100 PiB cache cluster, but Agent platform cost models must go beyond model-call pricing. Task completion cost, redundant compute ratio, context reuse efficiency, TTFT, and effective output per compute unit belong in the metric set. As Agents shift from single-turn Q&A to continuous execution, every application-layer context assembly and scheduling decision accumulates into measurable compute spend at scale.
DeepSeek's open source lets developers reuse optimizations validated in real production. The 97.2% hit rate, however, depends on specific traffic and the full production stack. After adopting the engine, each team must answer: of the millions of tokens fed to the model daily, how many never needed to be recomputed?
About this article
For attribution, corrections or content rights, contact
