deepseek-ai/DeepGEMM-Ascend
DeepGEMM-Ascend: clean and efficient matrix multiplication kernel library for Huawei Ascend NPUs
What it solves
DeepGEMM Ascend provides a lightweight, efficient matrix multiplication (GEMM) and low-level kernel library specifically ported to the HUAWEI Ascend NPU platform, keeping full API compatibility with DeepGEMM.
How it works
It abstracts Ascend matrix multiply-add (MAD) primitives to hide low-level complexities like fractal layouts and alignment constraints, leveraging Ascend-specific optimizations such as sparse data loading and coroutine-based pipelining to approach hardware limits.
Who it’s for
Developers and engineers working with DeepSeek model workloads on HUAWEI Ascend NPUs who need high-performance training and inference acceleration.
Highlights
- Fully API-compatible with DeepGEMM, using the same package name and workflow
- Supports BF16, FP8, FP4 GEMM, MQA logits, and MegaMoE
- Utilizes a Just-In-Time (JIT) compilation runtime for dynamic kernel generation
- Reaches up to 99.8% of the hardware limit across various matrix shapes
Related
- Project
- Project
- Project
- Project
- Project