CANN

Compute Architecture for Neural Networks (CANN) is designed for AI tasks on Ascend hardware. It supports AI frameworks from MindSpore, PyTorch, to TensorFlow. Boosting the performance of AI processors and programming, CANN offers ready-to-use APIs for different uses, allowing you to quickly create AI applications and services with Ascend.

Key Features of CANN 9.2.0

  • The CANN version mapping assistant is now available in the Ascend community. You can quickly find the matching upstream and downstream software. Click here for details.
  • On Ascend 950PR&950DT products, operators such as Matmul, FA, SFA, and BSA support 8-bit low-precision computation. Operators such as Matmul, GroupedMatmul, and BSA further support 4-bit low-precision computation. This low-precision feature supports key parts of models like DeepSeek, GLM, and Kimi, including model weights, activations, KV cache, and attention. Click here for details.
  • Fused operators such as KDA, SMLA, and MegaMoe further improve pipeline parallelism, enhancing the performance of models such as Kimi-K3 and GLM 5.2 by 20%. Click here for details.
  • Forward and backward computations of sparse attention operators have been extended to cover key phases such as attention computation, sparse index selection, and gradient computation, supporting sparse training of large models. Click here for details.
  • Ascend 950PR&950DT products support dispatch and combine operations in MoE training. Background communication is initiated in the AIV direct URMA solution, and DualPipe scheduling enables parallel computation and communication during training. Click here for details.
  • Ascend 950PR&950DT products support Engram distributed inference. Engram tables are offloaded to the host memory. The relay capability of URMA and Ubmem enables cross-device access to the remote host memory. Click here for details.
  • The new PyPTO PRO programming mode further empowers operator developers with hardware control. Click here for details.
  • On Ascend 950PR&950DT products, CATLASS now supports Python-style kernel functions and provides an extensive sample library. Click here for details.
  • Operators now support batch consistency for computation. Click here for details.
  • Automatic fusion is now available for inductor routes. Operators such as view, Norm, elementwise, and Concat can be automatically identified and fused, improving model execution performance. Click here for details.

CANN Documentation

View CANN documents by workflow, function, API, and more.

Table 2 Learning and tutorials

Resource

CANN-learning-hub

CANN-samples

Table 6 Operator libraries

Resource

ops-math

ops-cv

ops-nn

ops-transformer