DeepSeek Open-Sources DeepInfer Inference Stack for Ascend NPUs

Original title: 刚刚,DeepSeek开源!国产芯片扛起AI推理
88AI Score

DeepSeek has open-sourced under Apache 2.0 the full production-grade inference code of its DeepInfer framework for Huawei Ascend, already serving large-scale DeepSeek-V4.1-Flash traffic. Measured on 98.44K-token inputs with a 97.20% cache hit rate, TTFT came in at 277ms P50 and 459ms P90, with 137.9 tokens/s per stream and roughly RMB 117.9 revenue per card-hour. Built on vLLM, it natively supports NVIDIA SM100 and Ascend 950 NPUs, though distributed KV cache storage and global load balancing remain closed.

Full Report

Just now, DeepSeek officially open-sourced the complete production-grade inference code for its high-performance inference framework DeepInfer on the Huawei Ascend platform (under the Apache 2.0 license).

This solution has already handled large-scale user traffic for DeepSeek-V4.1-Flash in real business operations, marking that a new generation of domestic compute has been validated in practice for its ability to deliver large-model online inference services at high standards.

Official data from an online live test on December 1, 16:00–18:00, shows that on the Huawei Ascend 950DT-PC16 UBL128 machine (P:D card ratio 1.24:1), facing ultra-long inputs averaging 98.44K Tokens and a 97.20% cache hit rate, the model's P50/P90 time to first token (TTFT) was 277ms and 459ms respectively, with single-stream output speed reaching 137.9 Tokens/s (Decode throughput per card 7.409K tps, Prefill throughput at full load including cache 929.6K tps), and KV Cache inactive retention duration exceeding 72 hours.

Based on off-peak pricing and an assumed 80% Prefill load, revenue per card reaches 117.9 RMB per hour (about 17.6 USD), balancing low-latency experience with commercial returns.

According to the official GitHub repository, DeepInfer is deeply evolved from projects such as vLLM and natively supports NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. For Ascend 950DT, the team focused on optimizing core operators such as fused attention, Mega Gate, FP8 einsum output, and native DeepSelect, introduced UDMA-accelerated expert-parallel load balancing (EPLB) and optimized KV Cache allocation with huge pages, and also supports features including DSpark speculative decoding, SWA bounded replay, asynchronous scheduling, batch-invariant inference, deterministic sampling, and structured output.

The repository also states that this open-source release covers the core engine capabilities for offline inference and large-scale serving, and is accompanied by the open-sourced multi-protocol API encoding/decoding component deepseek-recipe and a detailed deployment architecture Q&A; distributed KV Cache storage and global load balancing are not open-sourced for now because they are coupled with internal infrastructure.

DeepSeek said that inference code and performance optimizations for future new models will continue to be open-sourced in DeepInfer, further accelerating the adoption of the domestic compute ecosystem and the spread of technology.

Open-source address: https://github.com/deepseek-ai/DeepInfer

Open in WeChat