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 |
| 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 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_DEVICESintoCUDA_VISIBLE_DEVICESwhen 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 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 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 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 a CANN 9.3 lab machine before procurement signs Ascend-only deals.
- Diff
platform.pyagainst your internal CUDA inference fork to estimate porting cost. - Read missing-feature list—plan KV and disaggregation elsewhere until DeepSeek ships them.
- Run parity tests on V4.1-Flash prompts you already use on vLLM or SGLang.
- Train staff via AI 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 | Leak benchmarks, not full runtime |
| DeepSeek co-design story | Strategic partnership narrative |
| KMed on premises | Domain model sovereignty pattern |
Related reading
- Huawei Ascend 950DT vs H200 claims
- DeepSeek Huawei co-design timeline
- DeepSeek V4 Flash open weights
- Megaspeed and chip export context
- Tencent RiRoPE sparse attention
- Nvidia Israel AI factory buildouts
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 fight fragmentation.TASK_QUEUE_ENABLE=0disables a queue path DeepSeek labels temporary on Ascend.HCCL_BUFFSIZE=16and 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:
- Match 98K input distribution or disclose your shorter prompts.
- Log CANN driver versions and firmware.
- Compare against Nvidia SM100 path in the same commit using
DEEPINFER_ACCELERATOR=nvidia. - Cross-check Together compiler TPS claims methodology—vendor TPS depends on batching and quantization.
Integration with wider China AI stack
Ascend production code complements:
- Huawei substrate and HBM smuggling reporting for supply realism.
- Malaysia GPU importer lists for regional routing context.
- Soket EKA-1 Indian weights 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_DIRto internal 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 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—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_typein integration tests—grammar mistakes fail at compile time, not runtime. - Separate NVIDIA deterministic sampling flags from Ascend runs until parity tables exist in the README.
- Log MoE expert load if EPLB is enabled—Ascend EP paths differ from CUDA.
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.
