DeepSeek DeepInfer on Huawei Ascend: Production Code Open-Sourced Dec 2026 DeepSeek open-sourced its DeepInfer production inference framework for Huawei Ascend NPUs on December 1, 2026, publishing an Apache-2.0 repository on GitHub with Ascend 950 support, CANN 9.3 prerequisites, and an offline inference path for DeepSeek-V4.1-Flash. The release includes a PlatformNPU class in deepinfer/platform.py, HCCL distributed backend wiring, and TileLang 'asc' backend selection, but the README explicitly lists gaps for a full serving stack: full KV cache, disaggregated serving, and replica load balancing are not shipped. DeepSeek's latency and revenue figures for production V4.1-Flash traffic, reported by National Business Daily and Yicai, are company claims rather than independent benchmarks. DeepSeek open-sourced production DeepInfer code for Huawei Ascend NPUs on December 1, 2026 , posting an Apache-2.0 drop on GitHub https://github.com/deepseek-ai/DeepInfer/?ref=explainx with Ascend 950 support, CANN 9.3 prerequisites, and DeepSeek-V4.1-Flash offline inference. Chinese outlets including National Business Daily https://www.nbd.com.cn/articles/2026-12-01/4664910.html?ref=explainx and Yicai https://www.yicai.com/news/103463118.html?ref=explainx quote DeepSeek on latency and revenue stats for production V4.1-Flash traffic —attribute those figures to DeepSeek via press paraphrase , not independent benchmarks. TL;DR | Item | Detail | |---|---| | Repo | deepseek-ai/DeepInfer https://github.com/deepseek-ai/DeepInfer/?ref=explainx | | Hardware | Ascend 950 and Nvidia SM100 | | Model | DeepSeek-V4.1-Flash offline path | | Build flag | DEEPINFER ACCELERATOR=ascend + CANN 9.3 | | Not shipped | Full KV cache , disaggregated serving , replica LB | What changed from rumor to repository explainx.ai tracked DeepSeek–Huawei co-design and 950DT versus H200 https://explainx.ai/blog/huawei-ascend-950dt-h200-inference-86-percent-leak-claimed-vs-verified-2026 stories as claimed-vs-verified threads. The December 1 move is different: inspectable code in deepinfer/platform.py with a PlatformNPU class, HCCL distributed backend wiring, and TileLang asc backend selection. The README states DeepInfer is the high-performance framework behind DeepSeek production services and that this open release provides offline inference with features needed at scale , while explicitly listing gaps for a full serving stack . That honesty matters for SRE teams: you can compile and run examples/offline inference.py , but you should not assume multi-replica load balancing ships today. Ascend-specific engineering highlights A bridge between landmasses with green dots, illustrating dual-stack DeepInfer on Ascend and Nvidia The platform.py https://github.com/deepseek-ai/DeepInfer/blob/main/deepinfer/platform.py?ref=explainx module shows how DeepSeek maps CUDA-style environment variables onto Ascend : - Mirrors ASCEND RT VISIBLE DEVICES into CUDA VISIBLE DEVICES when only Ascend IDs are set. - Sets TILELANG DEFAULT TARGET=ascend so TileLang does not auto-compile for CUDA on NPU hosts. - Configures HCCL buffer sizes and timeouts for multi-device runs. - Implements host memory pinning through Ascend aclrtHostRegisterV2 APIs with explicit error handling. These details are the kind of integration glue missing from leaked benchmark decks . Compare to DeepSeek DeepInfer earlier claimed-vs-verified coverage https://explainx.ai/blog/deepseek-deepinfer-open-source-inference-engine-v4-1-flash-155-trillion-tokens-claimed-vs-verified-2026 when the engine was partially described without full Ascend platform files. Supported features in the README DeepInfer''s public feature list includes: - FlashMLA , DeepGEMM , DeepEP , TileKernels , DeepSelect , and custom TileLang kernels - Attention DP , balanced CP , MoE EP + EPLB - DSpark and confidence-scheduled verification - SWA bounded replay and asynchronous scheduling - Batch-invariant and deterministic sampling noted NVIDIA only for some modes - Structured outputs via regex, JSON schema, or EBNF in SamplingParams Read the collapsible Feature details section in the README before toggling MTP varlen flags—defaults affect draft length and verification scheduling . Build and run path Prerequisites per README: | Component | Ascend path | Nvidia path | |---|---|---| | OS | Linux | Linux | | Compiler | GCC ≥ 13 | GCC ≥ 13 | | Python | 3.12 | 3.12 | | Accelerator stack | CANN 9.3 | CUDA 13.2+ | | Export | DEEPINFER ACCELERATOR=ascend | DEEPINFER ACCELERATOR=nvidia | Run ./build.sh , then python examples/offline inference.py . Default weights pull deepseek-ai/DeepSeek-V4.1-Flash-1017 into the Hugging Face cache unless you set DEEPINFER HF MODEL DIR . For teams already serving V4.1 Flash on Nvidia , this is your diff fork to see which kernels diverge on Ascend . Press-reported production stats National Business Daily and Yicai say DeepSeek claimed: - ~98K token average inputs in production - 277ms P50 time-to-first-token - 138 tokens/s single-stream output - About 118 yuan per card per hour at off-peak pricing, per National Business Daily''s paraphrase of DeepSeek Verify independently. Vendor economics depend on electricity tariffs , utilization , and batching your deployment will not share. Use the stats as signals that DeepSeek runs paid traffic on Ascend , not as SLA guarantees . Strategic context DeepSeek continues dual-stack inference : - Nvidia SM100 for global and research paths documented in prior posts. - Ascend 950 for domestic sovereignty and Huawei co-design narratives. U.S. export rules and Megaspeed enforcement week https://explainx.ai/blog/megaspeed-13-3-billion-nvidia-alibaba-reuters-december-2026 push Chinese labs to prove domestic silicon works for frontier-class models . Shipping production code is stronger evidence than percentage-of-H200 slides . Pair with Tencent RiRoPE long-context kernels https://explainx.ai/blog/tencent-rirope-sparse-attention-long-context-github-2026 and Soket EKA-1 India weights https://explainx.ai/blog/soket-eka-1-indiaai-apache-weights-huggingface-december-2026 to see how non-U.S. stacks publish weights + runtime together. What builders should do this week 1. Clone DeepInfer on a CANN 9.3 lab machine before procurement signs Ascend-only deals. 2. Diff platform.py against your internal CUDA inference fork to estimate porting cost . 3. Read missing-feature list —plan KV and disaggregation elsewhere until DeepSeek ships them. 4. Run parity tests on V4.1-Flash prompts you already use on vLLM or SGLang . 5. Train staff via AI builder workshops https://explainx.ai/workshops/ai-builder if Ascend ops are new to your team. Comparison table: open stacks on custom silicon | Stack | Dec 2026 signal | |---|---| | DeepInfer on Ascend | Production code + V4.1-Flash | | Huawei 950DT claims https://explainx.ai/blog/huawei-ascend-950dt-h200-inference-86-percent-leak-claimed-vs-verified-2026 | Leak benchmarks , not full runtime | | DeepSeek co-design story https://explainx.ai/blog/deepseek-huawei-chip-co-design-ascend-950dt-pre-training-claimed-vs-verified-2026 | Strategic partnership narrative | | KMed on premises https://explainx.ai/blog/naver-kmed-31b-medical-llm-on-premises-healthbench-november-2026 | Domain model sovereignty pattern | Related reading Environment variables and operational pitfalls The PlatformNPU class enforces matching CUDA VISIBLE DEVICES and ASCEND RT VISIBLE DEVICES when both are set. Mismatch raises RuntimeError early—better than silent wrong-device runs. Other defaults worth noting from platform.py https://github.com/deepseek-ai/DeepInfer/blob/main/deepinfer/platform.py?ref=explainx : - PYTORCH NPU ALLOC CONF=expandable segments:True to fight fragmentation . - TASK QUEUE ENABLE=0 disables a queue path DeepSeek labels temporary on Ascend. - HCCL BUFFSIZE=16 and timeouts tuned for large MoE shards. SREs porting from CUDA should read warnings about transfer to npu remapping torch.cuda. to torch.npu. , which makes torch.cuda.is available true on NPU-only hosts —scripts that branch on CUDA presence may lie unless you set TILELANG DEFAULT TARGET=ascend . Offline inference versus production serving gap The README''s missing pieces matter for capacity planning : | Missing in open drop | Why production still needs it | |---|---| | KV cache system | Long-context sessions without recompute | | Prefill/decode disaggregation | Cost-efficient mixture-of-experts serving | | Replica load balancing | HA and autoscale | DeepSeek''s Chinese press quotes describe live V4.1-Flash traffic —that stack presumably runs closed components atop this open core . Do not assume GitHub clone equals DeepSeek.com SLA . Benchmarking responsibly on Ascend Before repeating 277ms TTFT or 138 tok/s : 1. Match 98K input distribution or disclose your shorter prompts . 2. Log CANN driver versions and firmware . 3. Compare against Nvidia SM100 path in the same commit using DEEPINFER ACCELERATOR=nvidia . 4. Cross-check Together compiler TPS claims https://explainx.ai/blog/together-compiler-agents-optimize-inference-1111-tps-minimax-1205-tps-deepseek-claimed-vs-verified-2026 methodology—vendor TPS depends on batching and quantization . Integration with wider China AI stack Ascend production code complements: - Huawei substrate and HBM smuggling reporting https://explainx.ai/blog/huawei-ascend-960dt-customers-source-own-hbm-smuggled-memory-the-information-claimed-vs-verified-2026 for supply realism . - Malaysia GPU importer lists https://explainx.ai/blog/malaysia-us-nvidia-gpu-importer-list-parliament-december-2026 for regional routing context . - Soket EKA-1 Indian weights https://explainx.ai/blog/soket-eka-1-indiaai-apache-weights-huggingface-december-2026 as another sovereign open-weight pattern. Troubleshooting first builds Common failure modes when teams first run ./build.sh on Ascend: - GCC below 13 — README is explicit; CentOS 7 default compilers fail. - Python not 3.12 — venv drift from 3.10 notebooks . - CANN mismatch — 9.2 required; 8.x clusters need upgrade windows . - Missing HF cache permissions on air-gapped mirrors — set DEEPINFER HF MODEL DIR to internal artifact storage . Document kernel module versions in runbooks the same way Quixiai NVDriver posts https://explainx.ai/blog/quixiai-nvdriver-clean-room-rust-nvidia-linux-kernel-driver-2026 document driver pinning on Linux AI nodes . When to choose Ascend versus Nvidia for DeepSeek | Choose Ascend when | Choose Nvidia when | |---|---| | Policy mandates domestic accelerators | You already standardized CUDA 13 SM100 | | Power tariffs favor local NPU deals | You need batch-invariant sampling flags NVIDIA-only today | | You partner with Huawei field teams | You rely on third-party vLLM extensions not yet ported | The December 1 release narrows the "no code" argument but does not erase 950DT leak benchmarks https://explainx.ai/blog/huawei-ascend-950dt-h200-inference-86-percent-leak-claimed-vs-verified-2026 —run your own evals . Community and upstream expectations DeepInfer''s GitHub shows hundreds of open issues —expect rapid iteration . Pin commits in production Dockerfiles , not main floating heads . Watch DeepSeek announcements for KV and disaggregation modules; when they land, update this post''s FAQ via the daily bot , not guesswork . Contributors should read DeepSeek V4.1 Flash benchmarks post https://explainx.ai/blog/deepseek-v4-1-flash-1017-open-weights-mit-terminal-bench-4-42-benchmarks-pricing-2026 before claiming parity with frontier closed models on agent tasks . Structured outputs and agent hooks The README documents structured outputs through so args on SamplingParams with regex , JSON schema , or EBNF grammar constraints. That is the same JSON-mode surface agent frameworks expect from OpenAI-compatible servers . When you wire DeepInfer behind an internal gateway : 1. Pin schema type in integration tests —grammar mistakes fail at compile time, not runtime . 2. Separate NVIDIA deterministic sampling flags from Ascend runs until parity tables exist in the README. 3. Log MoE expert load if EPLB is enabled— Ascend EP paths differ from CUDA . For MoE-heavy stacks, revisit Prime Mega MoE fused kernel https://explainx.ai/blog/prime-mega-moe-fused-kernel-training-qwen3-55-percent-faster-torchtitan-deepseek-mega-moe-backward-2026 training posts to see how DeepSeek thinks about expert parallelism upstream of inference . Licensing note: Apache-2.0 allows commercial forks , but model weights remain under their own licenses on Hugging Face. Compliance teams should not conflate inference engine freedom with weight redistribution rights. Hardware procurement: If Ascend 950 racks are scarce in your region, treat this repo as software readiness evidence while supply catches up—similar to how Israel AI factory GPU pledges https://explainx.ai/blog/nvidia-israel-200000-gpu-ai-factories-2030-buildout-2026 precede physical install dates . Observability: Export HCCL timeout errors and TileLang compile failures to the same dashboard you use for CUDA OOM today. Ascend-first teams often discover silent fallbacks only after cost spikes on backup cloud APIs . Documentation debt: Mirror the README''s feature flags table into your internal wiki with owner teams — MTP varlen , YOCO prefill truncation , and batch-invariant toggles interact in non-obvious ways during agent rollouts. Workshop tie-in: Teams new to non-Nvidia serving should pair this release with hands-on inference labs in explainx.ai builder training so SRE and ML share the same build.sh checklist. If you want to use this at work, not just read about it, this is the fastest path.