DeepSeek Open-Sources DeepInfer for Ascend 950: Production Inference at ¥118/Hour per Card
DeepSeek open-sourced its DeepInfer inference framework for Huawei Ascend 950 under Apache 2.0, revealing production benchmarks: 277 ms P50 first-token latency at 98K token context, 138 tokens/s single-stream output, and ¥118/hour per card revenue at discounted pricing, enabled by fused attention, UDMA-accelerated MoE shuffling, and large-page KV cache allocation.
Reading font

DeepSeek has fully open-sourced the Huawei Ascend 950 backend code for its DeepInfer inference framework under the Apache 2.0 license. The repository has already garnered over 26,000 stars on GitHub. This code is not merely experimental; it currently serves live production traffic for DeepSeek-V4.1-Flash.
Historically, deploying large models on domestic Chinese GPUs has been met with skepticism due to poor long-context latency and throughput collapse under concurrency, making per-card economics unviable. DeepSeek addresses this by publishing real-world operational data for the Ascend 950DT-PC16 UBL128 model. Under an average 98K token input context, the system achieves a P50 first-token latency of 277 ms and a single-stream output throughput of 138 tokens/s . At off-peak pricing (cache-hit input at ¥0.02 per million tokens, output at ¥4 per million tokens), this translates to ¥118 per hour per card in revenue.
The repository includes measured performance curves for the Ascend 950. During the prefill phase with 131K context, 8 cards sustain a non-cache throughput of 25,000–32,000 tokens/s. At a per-card batch size of 8192, single-step latency remains under 300 ms.
In the decode phase, scaling to 64 Ascend 950 cards with 256 concurrent requests per replica pushes per-card output throughput close to 10,000 tokens/s . Reducing concurrency to 8 requests per replica for better user experience yields a single-user speed exceeding 330 tokens/s .
For comparison, the same repository provides decode curves for NVIDIA SM100 (H100). At maximum concurrency, SM100 achieves over 27,000 tokens/s per card, roughly three times the Ascend 950's peak. However, the article argues that raw peak throughput is not the sole procurement criterion; consistent low latency and viable per-card hourly revenue make the Ascend 950 a practical alternative for cluster expansion without relying solely on imported GPUs.
To attain this efficiency on Ascend 950DT, DeepSeek implemented several low-level optimizations: rewritten fused attention and native DeepSelect operators, UDMA-accelerated MoE expert shuffling, large-page memory allocation to reduce KV cache overhead, and porting of batch-invariant inference and deterministic sampling.
Teams wishing to experiment can switch between NVIDIA SM100 and Huawei Ascend 950 (requiring aarch64 host and CANN 9.3) by changing a single environment variable in a Python 3.12 environment:
export DEEPINFER_ACCELERATOR=ascend
./build.sh
python examples/offline_inference.pyDeepSeek cautions that the open-sourced code covers offline inference and the core large-cluster engine. Exposing a high-concurrency public API still requires building an independent KV cache system, prefill-decode disaggregated scheduling, and multi-replica load balancing. Nevertheless, the most difficult components—low-level operators, inter-card communication, and expert parallel scheduling—have been battle-tested in production and released as source code, eliminating the need to reinvent the wheel from scratch.
Reference: https://github.com/deepseek-ai/DeepInfer
About this article
For attribution, corrections or content rights, contact


