DeepGEMM-Ascend
DeepGEMM-Ascend: clean and efficient matrix multiplication kernel library for Huawei Ascend NPUs.
deepseek-ai/DeepGEMM-Ascend is ranked 3,201 with 583 stars.
deepseek-ai/DeepGEMM-Ascend is ranked 3,201 among these 8 peers; humancomputerlab/LeLamp is ranked 3,199.
| Name | Rank | Metrics |
|---|---|---|
| LiteReality/LiteReality-Agent | 3,190 |
|
| MiaAI-Lab/Qwen3.8-Flash-Next-Single-DGX-Spark | 3,191 |
|
| gargpratyush/jev-router | 3,196 |
|
| humancomputerlab/LeLamp | 3,199 |
|
| wuphilipp/gello_software | 3,212 |
|
| cubeplexai/cubeplex | 3,215 |
|
| ndycode/codex-multi-auth | 3,217 |
|
| nomic-ai/gpt4all | 3,240 |
|
| Parameter | Value |
|---|---|
| Language | C++ |
| Category | Infrastructure |
| Subcategory | Kernels, Model optimization |
| Keywords | Compiler, Inference optimization, Memory management |
| Stars | 583 |
| Forks | 48 |
| Contributors | 3 |
| Created date | 2026-09-29 |
| Updated date | 2026-10-16 |
| Stars in 1 day | 3 |
| Stars in 7 days | 29 |
| Rank | 3,201 |
| Previous rank | 3,375 |
| Rank change | 174 |
| 7-day stars rank | 2,209 |
| Previous 7-day stars rank | 1,799 |
| 7-day stars rank change | -410 |
| Total stars rank | 17,159 |
| Previous total stars rank | 17,203 |
| Total stars rank change | 44 |
| Country | China |
DeepGEMM Ascend DeepGEMM Ascend is a port of DeepGEMM to the HUAWEI Ascend platform. It is fully API-compatible with DeepGEMM and supports BF16, FP8, FP4 GEMM, MQA logits, and MegaMoE. On Ascend platforms, users can simply install the package and use the same APIs and development workflow as DeepGEMM on other supported platforms. DeepGEMM Ascend provides a lightweight abstraction over the Ascend MAD (matrix multiply-add) primitives, hiding much of the complexity associated with fractal layouts, alignment constraints, address
calculations, and verbose low-level parameters. This enables GEMM kernels to remain both concise and efficient. DeepGEMM Ascend makes extensive use of Ascend-specific optimization techniques, such as sparse data loading and coroutine-based pipelining, to approach the performance limits of the Ascend hardware. These implementations can also serve as references for extreme performance optimization on the Ascend platform. Despite its lightweight codebase, DeepGEMM Ascend can achieve peak hardware performance across a wide range of matrix shapes. 30: Initial release
of DeepGEMM Ascend, with support for Ascend 950 devices. The kernels are designed to achieve near-peak hardware performance. Quick Start Requirements HUAWEI Ascend NPU (developed and validated on the Ascend 950 series) CANN 9. 20 toolkit providing , Torch NPU package Python 3. 10 or higher Compilers and standard libraries with C++20 support , used by the HC prenorm kernel (declared as a package dependency) and , used to generate Python type stubs when building from source Development Installation Interfaces Kernel
Interface Please refer to DeepGEMM's interfaces for the kernel APIs. NOTE] The scaling factor format on Ascend differs from NVIDIA's: each pair of UE8M0 scaling factors along the K dimension is packed into an , and the packed values are stored in MN-major order for optimal hardware efficiency. Dense BF16, FP8, FP4 and mixed FP8×FP4 GEMMs accept with shape or and the same dtype as . A contiguous bias is loaded and added in the AIV epilogue before the output
cast. The and interfaces take and : Utilities The library provides some utility functions besides the above kernels: / : set/get the number of AI cores the kernels may use / : override/query the NPU architecture used for JIT compilation, queries the device / : set/get the group-level M/K alignment for contiguous layout : get the theoretical minimum M/K alignment / : enable/disable deterministic algorithms : transform scaling factors into the required layout : transform K-grouped scaling factors into the required layout : build the
scheduling metadata for the paged MQA kernels and : ACLNN reference GEMMs used to cross-check the kernels in tests Environment Variables Ascend home path is given by or . Each variable falls back to the corresponding global variable when unset, and is snapshotted when the JIT runtime is first created. General JIT cache Compiler output and artifacts Debugging Performance Measured on Ascend 950DT (CANN 9. Shapes and cases follow the DeepGEMM test suite and cover inference and training workloads of the
DeepSeek model series; see for reproduction. Dense GEMM Dense GEMM reaches up to **99. 3 | | FP8×FP4 | 4096 | 7168 | 16384
How many stars and forks are recorded?
deepseek-ai/DeepGEMM-Ascend has 583 stars and 48 forks.
What is the repository rank?
deepseek-ai/DeepGEMM-Ascend is ranked 3,201.
What language and category are recorded?
deepseek-ai/DeepGEMM-Ascend has 583 stars, uses C++ and belongs to Infrastructure.
Which repository is closest in rank?
deepseek-ai/DeepGEMM-Ascend is compared with humancomputerlab/LeLamp, ranked 3,199 with 593 stars.