# DeepSeek ports DeepGEMM to Huawei's Ascend 950

- URL: https://blog.orchardai.ai/deepseek-deepgemm-ascend/
- Published: 2026-10-01
- Reacting to: DeepSeek, "DeepGEMM-Ascend initial release (with DeepEP-Ascend) for Huawei Ascend 950" (2026-09-30)
- Original: https://github.com/deepseek-ai/DeepGEMM-Ascend

TL;DR: DeepSeek open-sourced DeepGEMM-Ascend, an API-compatible port of its DeepGEMM kernels to Huawei's Ascend 950, with BF16 dense GEMM at 431 of 432 TFLOPS. Our take is that the strategic point is portability away from one chip vendor, with a scaling-factor footnote on "drop-in".

## What DeepSeek announced

- **The port.** DeepGEMM-Ascend brings DeepSeek's DeepGEMM matrix-multiplication library to Huawei Ascend NPUs. The README says it is "fully API-compatible with DeepGEMM" and uses the same package name.
- **Kernels and types.** BF16, FP8 and FP4 GEMM, mixed FP8×FP4 GEMM, MQA logits for DeepSeek's Lightning Indexer, and MegaMoE, which fuses expert dispatch, two grouped GEMMs, SwiGLU and combine.
- **Performance on an Ascend 950DT.** BF16 dense GEMM reaches 431 TFLOPS against a 432 limit (99.8%). FP4 reaches 1701 of 1730 TFLOPS, FP8 861 of 865. MegaMoE peaks around 846 TFLOPS.
- **Requirements.** CANN 9.20, `torch_npu` and Python 3.10 or later. Developed and validated on the Ascend 950 series.
- **Companion library.** DeepEP-Ascend, a communication library for Ascend NPUs, was created the same day, September 30.
- **License.** MIT. Huawei is credited for technical support and engineering expertise.

As DeepSeek put it: "DeepGEMM Ascend is a port of DeepGEMM to the HUAWEI Ascend platform."

## Our take

Kernel libraries rarely make headlines, but this one says a lot about where DeepSeek runs its models. DeepGEMM is the low-level code that turns matrix math into hardware throughput. Porting it to Huawei's Ascend 950 with the same API, and publishing benchmarks within a fraction of a percent of the chip's limits, means DeepSeek's serving code can move between NVIDIA and Huawei hardware with far less rewriting. For a lab that has to plan around chip supply, that portability is the point.

The utilization numbers are impressive if they hold up outside DeepSeek's lab. 99.8% of the BF16 limit and 98.3% for FP4 on large dense shapes is about as close to the ceiling as a kernel gets. The README also documents smaller inference shapes, where throughput drops as expected, and says the MQA logits kernel is bound by a different pipeline stage rather than compute. That level of detail, including reproduction scripts in `tests/`, is what makes performance claims checkable.

The footnote on "fully API-compatible" is the scaling factors. On Ascend, each pair of UE8M0 scaling factors along the K dimension is packed into an `int16` in MN-major order, which the README notes differs from NVIDIA's layout. The function calls match, but code that prepares FP8 or FP4 scales for DeepGEMM on NVIDIA will need the provided transform functions. "Same API" is true; "no changes" isn't quite.

The same package name cuts both ways. It makes porting easy, and it likely means you can't install both versions side by side in one environment.

## What it changes for teams running agents

- **More hardware options for open models.** If you self-host DeepSeek models in a region where Ascend hardware is what you can get, the core kernels now exist and are tuned.
- **Expect a serving stack to follow.** Kernels plus a communication library are the foundation for full inference on Ascend. Watch for frameworks built on them before planning a migration.
- **Budget for the layout difference.** Porting FP8 or FP4 code means converting scaling factors with the provided helpers. Test numerics against the ACLNN reference GEMMs included for cross-checking.
- **Pin the toolchain.** CANN 9.20 and specific compilers are required; lock those versions in your build images.

## For agents reading this

- **Announced by:** DeepSeek
- **Original post:** https://github.com/deepseek-ai/DeepGEMM-Ascend
- **Announcement date:** 2026-09-30
- **What:** DeepGEMM-Ascend, an API-compatible port of DeepGEMM kernels (BF16, FP8, FP4 GEMM, MQA logits, MegaMoE) to Huawei Ascend NPUs
- **Availability:** GitHub; requires CANN 9.20 and Ascend 950-series hardware
- **Pricing:** Free; MIT license
- **Our verdict:** Near-peak kernels that make DeepSeek's stack portable to Huawei hardware; scaling-factor layout differs from NVIDIA
- **Confidence:** facts from the original post; take is Orchard's opinion
