DeepSeek open-sourced production DeepInfer code for Huawei Ascend NPUs on December 1, 2026, posting an Apache-2.0 drop on GitHub with Ascend 950 support, CANN 9.3 prerequisites, and DeepSeek-V4.1-Flash offline inference. Chinese outlets including National Business Daily and ** Yicai** 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 andNvidia 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 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 module shows how DeepSeek maps CUDA-style environment variables onto Ascend:
- Mirrors
ASCEND_RT_VISIBLE_DEVICESinto**CUDA_VISIBLE_DEVICES** when only Ascend IDs are set. - Sets
TILELANG_DEFAULT_TARGET=ascendso 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 AscendaclrtHostRegisterV2 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** 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 customTileLang kernels
- Attention DP ,balanced CP ,MoE EP + EPLB
- DSpark andconfidence-scheduled verification
- SWA bounded replay andasynchronous scheduling
- Batch-invariant anddeterministic sampling (notedNVIDIA 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, perNational 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 fordomestic sovereignty andHuawei co-design narratives.
U.S. export rules and Megaspeed enforcement week 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 and ** Soket EKA-1 India weights** to see how non-U.S. stacks publish weights + runtime together.
What builders should do this week #
- Clone DeepInfer on aCANN 9.3 lab machine before procurement signsAscend-only deals.
- Diff
platform.pyagainst your internalCUDA inference fork to estimateporting cost . - Read missing-feature list —planKV anddisaggregation elsewhere until DeepSeek ships them.
- Run parity tests onV4.1-Flash prompts you already use onvLLM orSGLang .
- Train staff viaAI builder workshops 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:
PYTORCH_NPU_ALLOC_CONF=expandable_segments:Trueto fightfragmentation .TASK_QUEUE_ENABLE=0disables a queue path DeepSeek labelstemporary on Ascend.HCCL_BUFFSIZE=16andtimeouts tuned forlarge 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 withoutrecompute |
| Prefill/decode disaggregation | Cost-efficient****mixture-of-experts serving |
| Replica load balancing | HA andautoscale |
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:
- Match 98K input distribution or disclose yourshorter prompts .
- Log CANN driver versions andfirmware .
- Compare against Nvidia SM100 path in thesame commit using**
DEEPINFER_ACCELERATOR=nvidia** . - Cross-check Together compiler TPS claims methodology—vendorTPS depends onbatching andquantization .
Integration with wider China AI stack #
Ascend production code complements:
- Huawei substrate and HBM smuggling reporting 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 from3.10 notebooks .
- CANN mismatch —9.2 required;8.x clusters needupgrade windows .
- Missing HF cache permissions onair-gapped mirrors — set**
DEEPINFER_HF_MODEL_DIR** tointernal artifact storage .
Document kernel module versions in runbooks the same way Quixiai NVDriver posts document driver pinning on Linux AI nodes.
When to choose Ascend versus Nvidia for DeepSeek #
| Choose Ascend when | Choose Nvidia when |
|---|---|
| Policy mandatesdomestic accelerators | You already standardized CUDA 13 SM100 |
| Power tariffs favorlocal NPU deals | You need batch-invariant sampling flagsNVIDIA-only today |
| You partner with Huawei field teams | You rely on third-party vLLM extensionsnot yet ported |
The December 1 release narrows the "no code" argument but does not erase 950DT leak benchmarks—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 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:
- Pin
schema_typeinintegration tests —grammar mistakes fail atcompile time, notruntime . - Separate NVIDIA deterministic sampling flags fromAscend runs untilparity tables exist in the README.
- Log MoE expert load ifEPLB is enabled—Ascend EP paths differ fromCUDA .
For MoE-heavy stacks, revisit Prime Mega MoE fused kernel 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 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.