DeepSeek Open-Sources DeepInfer Production-Grade Inference Framework for Offline Inference of DeepSeek-V4.1-Flash on Huawei Ascend 950 NPUs and NVIDIA SM100 GPUs Under Apache-2.0

Narracomm · The RecordLaunch RadarDeepSeekChina & Restricted3 Dec 2026confirmed
The open-source release supplies the core offline inference features DeepSeek uses for large-scale production services, with optimized kernels, parallelism, scheduling and support for Huawei Ascend 950 NPUs on aarch64 hosts and NVIDIA SM100 GPUs.
In briefDeepSeek-AI released DeepInfer, the high-performance inference framework that powers its large-scale production services, as open-source software providing offline inference for DeepSeek-V4.1-Flash on Huawei Ascend 950 NPUs and NVIDIA SM100 GPUs under the Apache License 2.0.
Date
2026-12-01 (runtime and documentation update); 2026-11-28 (performance update)
Beat
Model Releases
Jurisdiction
China
Entity
DeepSeek-AI
Instrument / cite
DeepInfer (GitHub repository deepseek-ai/DeepInfer)
Amount
N/A
Source type
Official open-source repository
Confidence
confirmed
Record ID
N/A
"DeepInfer is the high-performance inference framework that powers DeepSeek's large-scale production services. This open-source release provides offline inference with the core features needed for serving at scale." — DeepSeek-AI, DeepInfer README

DeepSeek-AI has open-sourced DeepInfer, describing it as the high-performance inference framework that powers its large-scale production services. The release provides offline inference with the core features needed for serving at scale. The supported model is DeepSeek-V4.1-Flash. The default checkpoint is deepseek-ai/DeepSeek-V4.1-Flash-1017, which downloads into the Hugging Face cache on first run.

Supported Hardware and Core Features

Supported hardware consists of NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs with aarch64 hosts. Supported features include optimized kernels, model and sampler runtime; parallelism via Attention DP / balanced CP and MoE EP + EPLB; DSpark and confidence-scheduled verification; SWA bounded replay; asynchronous scheduling with a zero-overhead batch scheduler; batch-invariant inference; deterministic sampling; and structured outputs. Optimized kernels encompass FlashMLA, DeepGEMM, DeepEP, TileKernels, DeepSelect and custom TileLang kernels.

DSpark and confidence-scheduled verification accelerate decoding with draft tokens and use confidence estimates to schedule verification. The environment variable DEEPINFER_ENABLE_MTP_VARLEN is set to 1; DEEPINFER_USE_NEXTN_DECODE controls the maximum draft length, with a default of 5. Decoder SWA bounded replay reduces prefill work by replaying only a bounded suffix. Asynchronous scheduling overlaps CPU batch scheduling with device execution and is enabled by default. Batch-invariant inference keeps model results identical across different batch compositions when DEEPINFER_BATCH_INVARIANT is set to 1. Deterministic sampling produces identical outputs for identical input tokens and sampling parameters under specified settings. Structured outputs constrain generation to a regex, JSON schema or EBNF grammar.

Build Requirements and What Is Not Included

Prerequisites are Linux, GCC version 13.0 or higher, and Python 3.12. NVIDIA builds require CUDA version 13.2 or higher. Ascend builds require CANN 9.3. The accelerator is selected by setting the DEEPINFER_ACCELERATOR environment variable to nvidia or ascend before running the build script. A complete inference service requires additional components not included in this release: a KV cache system, VE/Prefill/Decode disaggregation (most required engine functionality is already implemented), and load balancing across data-parallel replicas for both prefill and decode.

Performance Update and Origin

A news entry dated 28 November 2026 records a DeepSeek-V4.1-Flash performance update with systematic optimizations for Ascend 950DT NPUs and substantial decode performance gains on SM100 GPUs. Ascend 950DT additions include fused attention, Mega Gate, Mega-MHC, FP8 einsum output, native DeepSelect, batch-invariant inference and deterministic sampling, together with optimizations for EPLB expert shuffling and KV cache allocation. Runtime changes capture target sampling and verification in device graphs, overlap prefill post-processing with model execution, and optimize CP, SWA, EPLB and startup. The framework was originally built primarily on vLLM, with additional inspiration from SGLang and TensorRT-LLM. It is released under the Apache License 2.0.

Operators running or evaluating large-scale inference of DeepSeek-V4.1-Flash now have access to the production offline inference code paths, kernels and scheduling mechanisms under an open-source license. The explicit support for Huawei Ascend 950 NPUs alongside NVIDIA SM100 GPUs, together with the listed prerequisites and the components left out of the release, defines the current scope of what can be built and run from the repository.

Why it mattersThe open-source release of the production inference framework used by DeepSeek places optimized kernels, parallelism, speculative decoding and hardware support for both Huawei Ascend 950 NPUs and NVIDIA SM100 GPUs into the public domain under Apache-2.0. Teams seeking to serve DeepSeek-V4.1-Flash at scale can examine and adapt the offline inference implementation, while the omitted service-layer components remain required for a full deployment.
Primary source — verify
https://github.com/deepseek-ai/DeepInfer
Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x