DeepSeek Opens DeepInfer Code for Huawei Ascend 950, Highlighting Cache Reuse
The AI inference engine reports 277 ms median first-token latency with a 97.2% input cache hit rate

DeepSeek released production-grade Huawei Ascend inference code on December 1, extending the DeepInfer framework that the company says powers its V4.1 Flash service. The update exposes the importance of hardware-specific kernels, distributed execution, and cache reuse in long-context serving.
DeepInfer’s initial GitHub commit dates to October 20. Its November 28 optimization entry and December 1 runtime update cover Ascend 950DT and NVIDIA SM100. The Apache-2.0 engine currently supports DeepSeek-V4.1-Flash, NVIDIA SM100 GPUs, and Ascend 950 NPUs on Arm64 hosts.
The 277 ms latency figure depends on the workload
DeepSeek reports the following production measurements, published by Phoenix Technology, on Huawei's Ascend 950DT-PC16 UBL128 configuration:
Metric Company-reported result Average input length 98.44K tokens Median time to first token (TTFT) 277 ms Single-stream output speed 137.9 tokens/s Average input cache hit rate 97.2% Revenue per accelerator-hour at off-peak pricing CNY 117.9
Prefill processes input tokens and constructs attention states; decode generates new tokens. A key-value (KV) cache lets the system reuse states for matching prompt prefixes instead of repeating the original calculation. Consequently, a 98K-token request with extensive cache reuse is not equivalent to a cold 98K-token request. The median also does not characterize the slowest requests.
Similarly, 138 tokens per second measures a generation stream, not aggregate throughput from one accelerator. Revenue calculated at off-peak API rates is not profit: equipment amortization, electricity, networking, storage, utilization, and operational overhead all affect margins.
Wide expert parallelism and speculative decoding reduce wasted computation
DeepInfer distributes the mixture-of-experts (MoE) layers across accelerators. Since each token activates selected experts, uneven routing can leave some devices overloaded while others wait. DeepSeek's expert-parallel load balancer redistributes expert replicas according to measured demand. Its Ascend update also optimizes expert transfers with UDMA and uses fused attention operations, low-precision computation, and large memory pages for cache allocation.
DSpark speculative decoding proposes several future tokens before the main model verifies them. A confidence-based scheduler allocates verification work to promising draft sequences rather than treating every proposed token equally. DeepSeek’s deployment documentation estimates a 5.4% throughput gain over fixed-length five-token verification at 60 concurrent sequences per rank in one documented EP64/DP64 experiment; that is a specific operating point, not a universal speedup.
Asynchronous scheduling overlaps host-side request management with accelerator execution, reducing idle gaps between model steps. Sliding-window attention (SWA) bounded replay reconstructs a short suffix of cached attention state instead of recomputing a much longer sequence. DeepSeek describes this replay as approximate, so its accuracy implications deserve separate testing.
The open engine is not the entire production service
The public release still targets offline inference. Operators must supply persistent KV-cache infrastructure, coordination between vision encoding, prefill and decode workers, and traffic balancing across data-parallel replicas. DeepSeek's deployment guide recommends large expert-parallel decode groups and describes a GPU deployment with 64 accelerators for prefill and 64 for decode as a practical efficient starting point. That is not a minimum requirement for every offline configuration.
Providers with limited cache storage or different traffic patterns may see different economics. Operators also need to isolate cached user data and evaluate hardware, software dependencies, and deployment jurisdiction separately. Publishing inference code does not establish the privacy or security of a hosted service.
Huawei gains an implementation reference, not a universal performance victory
The update follows joint DeepSeek-Huawei work on 128-chip supernodes. Alternative serving ecosystems already exist: vLLM Ascend documents V4.1 Flash deployments that separate prefill and decode. DeepInfer itself acknowledges its origins in vLLM and inspiration from SGLang and TensorRT-LLM.
DeepSeek's updated benchmarks use eight Ascend NPUs for prefill and 64 for decode, versus four and 64 SM100 GPUs respectively. The configurations differ, and no independent reproduction of the newly reported Ascend production figures was established in this reporting.
The next test is whether external operators can reproduce latency and cost under matched cache-hit rates, concurrency, and service-level targets. The release makes Huawei’s inference stack more inspectable, but buyers still need end-to-end performance measurements.



