Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Artificial Intelligence
4 min read

DeepSeek Open-Sources DeepInfer: Production Inference on Ascend, 97% Cache Hit Rate

DeepSeek open-sourced DeepInfer, a production-grade inference system for Huawei Ascend powering DeepSeek V4.1 Flash, revealing a decoupled architecture achieving 97.2% cache hit rate, 277ms P50 first-token latency, and 137.9 tokens/s output speed, proving domestic compute can handle high-standard production traffic.

DeepSeek Open-Sources DeepInfer: A Production-Grade Inference Engine for Huawei Ascend

DeepSeek has open-sourced DeepInfer , the production-level inference code running on Huawei Ascend that powers the large-scale online service of DeepSeek V4.1 Flash. Unlike previous releases of individual operators (FlashMLA, DeepGEMM, DeepEP), DeepInfer integrates operators, communication, memory management, and task scheduling into a complete inference pipeline.

System Architecture: Decoupled Inference Stages

The architecture (Figure 1) decouples the inference process into independent services:

Requests first pass through DeepSeek Recipe for protocol and token conversion, then enter the Entrypoint.

Vision Encoder, Prefill, and Decode are split into separate services, each with its own load balancing.

External 3FS (a distributed file system) handles KV Cache storage.

The core idea is decoupling : input understanding, first-token generation, and continuous output are assigned distinct hardware and parallelism strategies, avoiding resource contention in a single pipeline.

Figure 1: DeepSeek V4.1 Flash inference system architecture. Source: DeepInfer official deployment documentation
Figure 1: DeepSeek V4.1 Flash inference system architecture. Source: DeepInfer official deployment documentation

Production Metrics: Cache Hit Rate as the Key Indicator

Official online data from December 1, 2026, 16:00–18:00 on Ascend 950DT-PC16 UBL128 shows:

Average input length: 98.44K tokens

Average input cache hit rate: 97.20%

First-token latency: P50 = 277 ms , P90 = 459 ms

Single-stream output speed: 137.9 tokens/s

Revenue per card per hour (off-peak pricing, 80% Prefill load): 117.9 CNY

The critical insight is not a single peak number but that long-context duplicate Prefill computations are largely eliminated . Inactive KV Cache is retained for over 72 hours, providing a wide window for cross-request reuse.

Table 1: Actual online running data for DeepSeek V4.1 Flash. Source: DeepSeek official announcement
Table 1: Actual online running data for DeepSeek V4.1 Flash. Source: DeepSeek official announcement

Supporting techniques include SWA Bounded Replay (replaying only a bounded suffix), asynchronous scheduling (overlapping CPU scheduling with device execution), and DSpark (allocating speculative decoding verification budget by confidence).

Benchmark Interpretation: Read the Curves, Not Just Peak Numbers

The unnamed competitor in the original table outperforms the Ascend configuration on throughput, first-token latency, output speed, and per-card revenue. Therefore, the data demonstrates that domestic compute can handle high-standard production traffic , not that Ascend leads across the board.

Offline benchmarks in the repository use 131,072-token context, 8 NPUs for Prefill, 64 NPUs for Decode. Figures 2 and 3 illustrate the same trade-off: increasing batch size and concurrency raises system throughput but sacrifices latency or per-user speed.

Figure 2: Ascend platform Prefill non-cached input throughput vs latency
Figure 2: Ascend platform Prefill non-cached input throughput vs latency
Figure 3: Ascend platform Decode output throughput vs single-user speed
Figure 3: Ascend platform Decode output throughput vs single-user speed

Production tuning selects a working point on the latency–throughput Pareto curve, not an isolated peak. The two-hour online observation and offline Pareto curves come from different test setups and should not be conflated. Reproducibility of a working point does not mean the entire online system can be replicated with one click.

Production-Grade Value and Open-Source Boundaries

The Wide-EP comparison (Figure 4) shows Decode throughput advantages are tightly coupled with large-scale expert parallelism. Official guidance recommends Decode EP64–128; the minimum efficient deployment unit is 64 cards for Prefill plus 64 cards for Decode. This targets teams with cluster and operations capability.

Figure 4: Decode throughput and interaction speed comparison between EP64 and EP8
Figure 4: Decode throughput and interaction speed comparison between EP64 and EP8

Software boundaries are equally important: the current release provides the offline inference core. A complete online service still requires building:

KV Cache system

Decoupled deployment of Vision Encoder / Prefill / Decode

Load balancing across data-parallel replicas

Model support is focused on DeepSeek V4.1 Flash. Consequently, DeepInfer is better described as a production-verified core engine and deployment blueprint rather than a general-purpose, out-of-the-box serving platform.

Its real contribution is opening the engineering black box between model, chip, and real traffic one layer further. For the domestic compute ecosystem, such reproducible system experience may hold more long-term value than any single peak metric.

https://github.com/deepseek-ai/DeepInfer
https://github.com/deepseek-ai/DeepInfer/blob/main/doc/inference_deployment_qa.md

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Write a comment

Sign in to join the discussion

No public comments on this page. Sign in to comment