DeepSeek has updated DeepGEMM-Ascend, a collection of compute kernels for Huawei Ascend. Teams developing models on these accelerators can use dedicated kernels for routing and connection computations as well as matrix multiplication. Adoption requires aligning development tools with the new baseline.
This public update was merged on November 26, 2026. It promises the same API and development workflow as existing DeepGEMM, but installation requires CANN 9.3.0 or later. Existing Ascend development environments therefore need to check the toolkit requirements.
1. Inference kernels added to the Ascend port
DeepGEMM-Ascend is an implementation of DeepGEMM for the Huawei Ascend platform. It retains the API and package name used on other supported platforms. It was first released on September 30, 2026.
MegaMoE combines routing inputs to multiple experts, computing results, and merging them into one kernel. It now optionally applies FP32 RMSNorm, which normalizes value magnitudes, after merging results and can exclude some routing paths. It also adds a low-latency mode for shorter response times and reuse of symmetric communication buffers, memory spaces accessible by multiple devices.
2. Combining mHC and gating operations
The mHC module, which handles connections within the model, now includes a Mega mHC inference kernel that fuses multiple operations. It supports BF16 and FP8 outputs and NPU graph replay, which records execution as a graph for reuse.
Mega Gate adds a BF16 fused kernel for gating computations. It also offers a deterministic mode that keeps computation results consistent across different batch configurations. Both kernels expand the integration of related processing within a kernel.
3. Installation baseline is CANN 9.3.0
The minimum toolkit requirement is CANN 9.3.0, along with the aclnnGemmSyrk header and library. The Ascend 950 series is listed as the hardware used for development and validation.
Python 3.10 or later and a compiler and standard library supporting C++20 string formatting are required. The PyTorch package for NPUs is also an installation requirement.
Building from source involves cloning the repository with its submodules and running the development script. The installation command is:
pip install . --no-build-isolationThe Ascend version uses a different scaling-factor layout from the NVIDIA version. Two factors along the K dimension must be packed into int16 and stored in MN-major order. Rather than passing existing data unchanged, prepare the input layout, the order of data in memory, using the provided conversion tools.
4. Company-reported performance uses Ascend 950DT
The company-reported performance was measured on Ascend 950DT with CANN 9.20. Measurements used bench_msprof with the L2 cache, high-speed memory close to the processor, cleared.
The four rows below use the same matrix dimensions and differ only in compute format. Throughput is the computation rate per second, while utilization is the achieved proportion of each format's hardware limit.
Table: Dense matrix multiplication performance
Conditions: Ascend 950DT, CANN 9.20, bench_msprof, cold L2, M=4096·N=7168·K=16384
Units: Latency (us), compute throughput and hardware limit (TFLOPS), utilization (%)
| Compute format | Latency | Compute throughput | Hardware limit | Utilization |
|---|---|---|---|---|
| FP4×FP4 | 565.6 | 1701 | 1730 | 98.3 |
| FP8×FP4 | 1117.8 | 861 | 865 | 99.5 |
| FP8×FP8 | 1117.6 | 861 | 865 | 99.5 |
| BF16×BF16 | 2229.9 | 431 | 432 | 99.8 |
All four formats approach their stated hardware limits. The performance tests use CANN 9.20, a separate condition from the minimum installation requirement of 9.3.0.
The company averaged MegaMoE results across 8 ranks, the device units participating in distributed computation. Conditions were expert parallelism of 8, the degree of distributing expert computation across devices, 6 selected experts per token, and 1 shared expert. With 96 experts, a hidden dimension of 5120, an intermediate dimension of 2304, and 64 tokens, latency was 138.7us and throughput was 228.5TFLOPS.
The company reported 136.7us and memory bandwidth of 3463GB/s for HC pre-normalization matrix multiplication at M=8192·N=24·K=28672.
For the MQA logits kernel, which scores retrieval targets, the company identifies the FIX processing pipeline rather than compute units as the bottleneck. That pipeline's utilization was 99%.
5. Benefits of kernel integration and environment migration costs
Fusing kernels can turn separate routing, computation, and merging stages into one flow on Ascend. The same interface as existing DeepGEMM can reduce code migration effort. In return, teams must adapt to Ascend-specific scaling-factor layouts and prepare the build environment for the new minimum toolkit.
The table measures specific matrix multiplication conditions. Whole-model inference speed can vary with input shapes and the mix of operations. Low-latency mode and buffer reuse also depend on input and communication conditions.
The November DeepGEMM-Ascend update expands DeepSeek inference kernels on Ascend, but adoption depends on meeting both the CANN baseline and input-layout requirements.
