explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR
  • What changed from rumor to repository
  • Ascend-specific engineering highlights
  • Supported features in the README
  • Build and run path
  • Press-reported production stats
  • Strategic context
  • What builders should do this week
  • Comparison table: open stacks on custom silicon
  • Related reading
  • Environment variables and operational pitfalls
  • Offline inference versus production serving gap
  • Benchmarking responsibly on Ascend
  • Integration with wider China AI stack
  • Troubleshooting first builds
  • When to choose Ascend versus Nvidia for DeepSeek
  • Community and upstream expectations
  • Structured outputs and agent hooks
← Back to blog

explainx / blog

DeepSeek DeepInfer on Huawei Ascend: Production Code Open-Sourced Dec 2026

DeepSeek, Huawei Ascend, Open Source, Inference, China AI

Part of Open-Weight Models

On Dec 1, 2026 DeepSeek open-sourced production DeepInfer code for Huawei Ascend 950 NPUs on GitHub Apache-2.0, with CANN 9.3 support and V4.1-Flash offline inference.

Dec 1, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
DeepSeek DeepInfer on Huawei Ascend: Production Code Open-Sourced Dec 2026

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

table · 2 cols
ItemDetail
Repodeepseek-ai/DeepInfer
HardwareAscend 950 and Nvidia SM100
ModelDeepSeek-V4.1-Flash offline path
Build flagDEEPINFER_ACCELERATOR=ascend + CANN 9.3
Not shippedFull KV cache, disaggregated serving, replica LB
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

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 NvidiaA 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_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 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:

table · 3 cols
ComponentAscend pathNvidia path
OSLinuxLinux
CompilerGCC ≥ 13GCC ≥ 13
Python3.123.12
Accelerator stackCANN 9.3CUDA 13.2+
ExportDEEPINFER_ACCELERATOR=ascendDEEPINFER_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

  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 if Ascend ops are new to your team.

Comparison table: open stacks on custom silicon

table · 2 cols
StackDec 2026 signal
DeepInfer on AscendProduction code + V4.1-Flash
Huawei 950DT claimsLeak benchmarks, not full runtime
DeepSeek co-design storyStrategic partnership narrative
KMed on premisesDomain 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: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:

table · 2 cols
Missing in open dropWhy production still needs it
KV cache systemLong-context sessions without recompute
Prefill/decode disaggregationCost-efficient mixture-of-experts serving
Replica load balancingHA 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 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_DIR to 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

table · 2 cols
Choose Ascend whenChoose Nvidia when
Policy mandates domestic acceleratorsYou already standardized CUDA 13 SM100
Power tariffs favor local NPU dealsYou need batch-invariant sampling flags NVIDIA-only today
You partner with Huawei field teamsYou 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:

  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 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.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Oct 20, 2026

DeepSeek DeepInfer: The Open-Source Inference Engine Behind V4.1 Flash, and What Is Still Missing

DeepSeek released DeepInfer, the inference framework it says powers its large-scale production service, under Apache 2.0. The repo is an offline-inference slice of the stack: no KV cache system, no load balancer, and only NVIDIA SM100 and Huawei Ascend 950 hardware. Here is what you can run, what is missing, and which headline numbers are claims.

Nov 26, 2026

llama-cpp-rdna-boosts: AMD Patches Claim 35 to 55 Tokens/s on llama.cpp

A community patch set called llama-cpp-rdna-boosts layers AMD-specific speedups on top of llama.cpp. One user reports prefill rising from about 700 to 1,300 tokens per second. Here is what the repo ships and what you should check before you trust it.

Nov 26, 2026

openset-llm: A 27B Model on a CPU With 8 GB of RAM

openset-llm, an MIT-licensed engine from opensetlabs, runs PrismML's ternary Bonsai-2-27B on plain x86 CPUs with 8 GB of RAM and no GPU. Its authors report 17 to 20 tokens per second on one user. Here is what that needs, what the benchmarks show, and the limits the README states.