Files
TorchNPU/docs/en/release_notes.md
m0_68000167 bc7fb138b7 modify document
Co-authored-by: m0_68000167<wangzhiyuan86@h-partners.com>



# message auto-generated for no-merge-commit merge:
!46094 merge master into master

modify document

Created-by: m0_68000167
Commit-by: m0_68000167
Merged-by: ascend-robot
Description: <!--
PR描述模板更新日期:20260203
-->

# 【合入来源】
> <font color="red">**如有社区issue,请关联issue链接**</font>\
> <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font>

- [ ] 需求
- [ ] 问题单
- [x] issue/工单https://gitcode.com/Ascend/op-plugin/issues/320
- [ ] 重构优化
- [x] 资料更新

# 【修改方案】
英文资料合入

# 【资料变更】
涉及

# 【接口变更】
不涉及

# 【功能验证】
> 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\
> 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

# 【CheckList】
> PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常


See merge request: Ascend/pytorch!46094
2026-09-09 18:22:45 +08:00

32 KiB
Raw Permalink Blame History

Release Notes

Version Mapping

Product Version Information

Product Name

TorchNPU

Product Version

26.1.0

Version Type

Official Release

Release Date

July 2026

Maintenance Period

For details, see the Branch Maintenance Strategy

The version mapping tables of firmware and drivers are related to all Ascend hardware and CANN versions. For the specific selection, see CANN Release Notes. TorchNPU code branch names follow the naming convention {PyTorch version}-{TorchNPU version}, where the former is the PyTorch version matched by TorchNPU. The detailed mapping is as follows:

TorchNPU Code Branch Name PyTorch Version TorchNPU Version TorchNPU Installation Package Version CANN Version Python Version
v2.7.1-26.1.0 2.7.1 26.1.0 2.7.1.post8 9.1.0 Python3.9.x, Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x
v2.9.0-26.1.0 2.9.0 26.1.0 2.9.0.post6 9.1.0 Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x
v2.10.0-26.1.0 2.10.0 26.1.0 2.10.0.post4 9.1.0 Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x
v2.11.0-26.1.0 2.11.0 26.1.0 2.11.0 9.1.0 Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x
v2.12.0-26.1.0 2.12.0 26.1.0 2.12.0 9.1.0 Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x

Version Compatibility

Note

"Y" in the table indicates compatibility.

<style type="text/css"> .tg {border-collapse:collapse;border-spacing:0;} .tg .tg-rhr9{font-weight:bold;text-align:center;vertical-align:middle} .tg .tg-baqh{text-align:center;vertical-align:top} .tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top} .tg .tg-amwm{font-weight:bold;text-align:center;vertical-align:top} </style>

TorchNPU CANN Version
8.5.X 9.0.X 9.1.X
7.3.X Y Y Y
26.0.X Y Y Y
26.1.X Y Y Y

Update Notes

New Features

Component Feature Description
TorchNPU The former Ascend Extension for PyTorch and torch_npu are uniformly renamed to TorchNPU. Except for the import name and the Whl package name prefix, which remain unchanged, all other parts are changed to TorchNPU.
Added support for the Ascend 950DT product. The existing TorchNPU capabilities are adapted to Ascend 950DT.
Eager mode enables DVM graphless fusion operators. Eager mode supports DVM (Device Virtual Machine) operator fusion, reducing scheduling and execution overhead and accelerating network execution.
LibTorch Stable ABI is supported on the NPU. The NPU has implemented LibTorch Stable ABI capabilities aligned with CUDA.
Key computation APIs support heterogeneous inputs. Key computation APIs support computation with scalar tensors on the CPU and non-scalar tensors on the NPU as inputs, improving API consistency.
Supports operator compilation for input tensors with dynamic all axes. In graph mode, operator compilation for input tensors with dynamic all axes (for example, [-1,-1,-1,-1]) is supported, improving the generalization and performance of graph mode in dynamic shape scenarios.

Removed Features

None

API Changes

This section covers API changes, including additions, modifications, deprecations, and removals. API changes only reflect code-level modifications and do not include optimization improvements to the documentation itself in terms of language, formatting, links, and so on.

  • Added: APIs added in this version.
  • Modified: APIs modified compared with the previous version.
  • Deprecated: APIs that stop evolving from the version in which the deprecation is announced and may be removed one year after the announcement.
  • Deleted: APIs removed in this version.

Table 1 Summary of TorchNPU API changes

Changed Version Class Name/API Prototype Class/API Category Change Category Change Description
v2.7.1 torch_npu.print_npugraph_tensor Custom API Added Depends on CANN 8.5.0 or later
torch_npu.npu_chunk_gated_delta_rule Custom API Added Depends on CANN 8.5.0 or later
torch_npu.npu_rotate_quant Custom API Added Depends on CANN 9.1.0
torch_npu.npu_apply_rotary_pos_emb Custom API Added Not dependent on a specific CANN version
torch_npu.npu_add_quant_matmul_ Custom API Added Depends on CANN 9.0.0 or later
torch_npu.npu_alltoallv_quant_gmm Custom API Added Depends on CANN 9.1.0
torch_npu.npu_dynamic_dual_level_mx_quant Custom API Added Depends on CANN 9.0.0 or later
torch_npu.npu_fused_causal_conv1d Custom API Added Depends on CANN 9.1.0
torch_npu.npu_grouped_dynamic_block_quant Custom API Added Depends on CANN 9.0.0 or later
torch_npu.npu_masked_causal_conv1d Custom API Added Depends on CANN 9.1.0
torch_npu.npu_mhc_post Custom API Added Depends on CANN 9.0.0 or later
torch_npu.npu_mhc_pre Custom API Added Depends on CANN 9.1.0
torch_npu.npu_mhc_sinkhorn Custom API Added Depends on CANN 9.1.0
torch_npu.npu_transpose_quant_batchmatmul Custom API Added Depends on CANN 9.0.0 or later
torch_npu.save_npugraph_tensor Custom API Modified Depends on CANN 8.5.0 or later
torch_npu.npu_rms_norm_quant Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_scaled_masked_softmax Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_cross_entropy_loss Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_attention_update Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_fusion_attention Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_gelu_mul Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_top_k_top_p Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_gather_sparse_index Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_swiglu_quant Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_add_rms_norm Custom API Modified Depends on CANN 9.1.0
(beta)torch_npu.npu.finalize_dump Custom API Modified Depends on CANN 9.1.0
(beta)torch_npu.npu.init_dump Custom API Modified Depends on CANN 9.1.0
(beta)torch_npu.npu.set_dump Custom API Modified Depends on CANN 9.1.0
(beta)torch_npu.npu_ciou Custom API Modified Depends on CANN 9.1.0
(beta)torch_npu.npu_iou Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_grouped_matmul_swiglu_quant_v2 Custom API Modified Depends on CANN 9.0.0 or later
torch_npu.npu_mla_prolog_v3 Custom API Modified Depends on CANN 9.0.0 or later
torch_npu.npu_lightning_indexer Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_quant_lightning_indexer Custom API Modified Depends on CANN 9.1.0
torch_npu.npu_sparse_flash_attention Custom API Modified Depends on CANN 9.1.0
v2.9.0 Changes are the same as v2.7.1
v2.10.0 Changes are the same as v2.7.1
v2.11.0 Changes are the same as v2.7.1
v2.12.0 Changes are the same as v2.7.1

Note

TorchNPU has added support for some APIs and features. For details, see Custom API or Native API.

Non-Compatible Changes for Ascend 950DT

Component Change Description
TorchNPU Due to the architecture change of Ascend 950DT, some operators and communication interfaces have been adjusted. Therefore, when calling the related APIs, pay attention to the differences in interface constraints between Ascend 950DT and Atlas A2 training products/Atlas A3 training products. For details, see Native API.
Ascend 950DT currently supports only the Triton and DVM modes in the Inductor backend compiler, and does not support the MLIR mode. For details, see Inductor.

Resolved Issues

Issue Description

Symptom: During the custom adaptation of the GDN operator, the aclnn_extension module does not pass the stream parameter.

Impact: This causes abnormal execution order between operators, and the data synchronization mechanism fails to take effect correctly.

Severity Level

Minor

Root Cause Analysis

In EXEC_NPU_CMD_V1_EXT and EXEC_NPU_CMD_V2_EXT, memory allocation and release are not paired, and are not consistent with the corresponding EXEC_NPU_CMD_V1 and EXEC_NPU_CMD_V2. This causes memory allocation or release problems and therefore precision issues.

Solution

Correct the memory (including workspace) allocation and release in EXEC_NPU_CMD_V1_EXT and EXEC_NPU_CMD_V2_EXT to be consistent with EXEC_NPU_CMD_V1 and EXEC_NPU_CMD_V2.

Modification Impact

After the fix, the end-to-end precision of models using the GDN operator is normal.

Known Issues

None

Upgrade Impact

Impact of the Upgrade on the Current System

  • Impact on services

    The software version upgrade process causes service interruption.

  • Impact on network communication

    No impact on communication.

Post-Upgrade Impact on the Current System

None

Version Mapping Documents

Document Name Description Update Notes
Software Installation Provides operations such as installing the PyTorch framework training environment on Ascend devices, as well as upgrading and uninstalling. • Added adaptation for PyTorch 2.11.0 and PyTorch 2.12.0.
• Added the software installation FAQ.
• Added content related to Ascend 950DT support.
TorchNPU Overview TorchNPU is a deep learning adaptation framework based on Ascend. It enables Ascend NPU to support the PyTorch framework and provides PyTorch users with the exceptional computing power of Ascend AI processors. • Updated the software architecture content.
• Added content about the initialization process during the startup of the TorchNPU plugin.
• Added content related to Ascend 950DT support.
Quick Start Provides a simple model migration example that uses the simplest automatic migration method, helping users quickly experience the process of migrating GPU model scripts to Ascend NPU. Added content related to Ascend 950DT support.
Torch.compile Significantly accelerates model training and inference tasks through "dynamic graph capture + static graph optimization + efficient code generation". • Content is independent and optimized.
• Added content related to Ascend 950DT support.
Companion Software Libraries Companion software libraries that provide extended capabilities for TorchNPU. • Only the "Ascend in-house plugins" part of the original Supported Suites and Third-Party Libraries is retained.
• Added the HyperParallel and AKG components.
Fault Handling Starting from the abnormal fault phenomena that developers may encounter during inference and training, provides self-service problem location and problem handling methods to help developers quickly locate and resolve faults. Added content related to "precision anomaly after using the NZ format".
Native API Provides the support status of native APIs for PyTorch 2.12.0/2.11.0/2.10.0/2.9.0/2.7.1 on Ascend devices. • Added the native API support lists for PyTorch 2.11.0 and PyTorch 2.12.0.
• Added content related to Ascend 950DT support.
Custom API Provides the function prototypes, feature descriptions, parameter descriptions, and call examples of TorchNPU custom APIs. • Added adaptation for PyTorch 2.11.0 and PyTorch 2.12.0.
• Added content related to Ascend 950DT support.
• For specific API changes, see API Changes.
Environment Variables Environment variables that can be used during TorchNPU training and online inference. • Added "TORCHINDUCTOR_USE_AKG".
• Added "(beta)TORCHINDUCTOR_ENABLE_MFUSION".
• Added "TORCH_NPU_LAZY_FUSION".
• Added "TORCH_HCCL_BLOCKING_WAIT".
• Added content related to Ascend 950DT support.
Framework Features Based on TorchNPU, provides the powerful computing power of Ascend AI processors and builds a series of unique features in areas such as memory optimization, error location, and high-performance computing. • Updated content related to "torch_npu.npu.NPUGraph".
• Added content related to Ascend 950DT support.
TorchAir As a graph mode capability extension library of Ascend TorchNPU, provides an Ascend device-friendly torch.compile graph mode backend, implementing graph mode inference acceleration and optimization of PyTorch networks on Ascend NPUs. • Enhanced the npugraph_ex function: added support for the SuperKernel fusion optimization function, the force_recapture function, graph capture security policy configuration, and so on.
• Enhanced the GE graph mode functions: extended the npu_stream_switch interface to support specifying concurrency policies, and so on.
• Added content related to Ascend 950DT support.
Security Statement Provides the software versions, system hardening requirements, security configurations (data storage, debugging interfaces, running environments, and so on), permission configurations, and firewall settings of the TorchNPU, OpPlugin, TorchAir, and Ascend Extension for TensorPipe components. Routine update.

Virus Scan and Vulnerability Patch List

Virus Scan Results

Antivirus Software Name Antivirus Software Version Virus Database Version Scan Time Scan Results
QiAnXin 8.0.5.5260 2026-07-05 08:00:00.0 2026-07-06 No viruses, no malware
Kaspersky 12.0.0.6672 2026-07-06 10:03:00.0 2026-07-06 No viruses, no malware
Bitdefender 7.5.1.200224 7.101156 2026-07-06 No viruses, no malware

Vulnerability Patch List

No vulnerability fixes in this version.