Release Notes
Key Features
- Supports the alltoallvc communication operator, optimizing alltoall communication performance.
- Supports initializing communicators through hierarchical link establishment, optimizing performance.
- Supports Inductor's automatic operator fusion based on the Ascend C IR.
- Inherits DeviceAllocator and supports enabling accelerator memory and graph-related APIs in Eager mode.
- Starting from this version, the Torch-MLIR compiler in the Inductor backend is deprecated, affecting the Torch.compile and Environment Variables documents. For the specific changes, refer to Related Documents.
- Starting from this version, the compilation optimization functions provided based on the BiSheng compiler are deprecated and can be replaced with Clang.
Version Mapping
Product Version Information
Product Name |
TorchNPU |
|---|---|
Product Version |
26.2.0 |
Version Type |
Official Release |
Release Date |
October 2026 |
Maintenance Period |
Related Product Version Mapping
The version compatibility table of firmware and drivers is related to all Ascend hardware and CANN versions. For specific selection, refer to CANN Release Notes.
To expand TorchNPU capabilities, for the version requirements of the Ascend-developed plugins, refer to Companion Software Libraries.
TorchNPU code branch names follow the naming rule {PyTorch version}-{TorchNPU version}, where the former is the PyTorch version matched by TorchNPU. The detailed matching is shown in the following table:
| TorchNPU Code Branch Name | PyTorch Version | TorchNPU Version | TorchNPU Installation Package Version | CANN Version | Python Version | Triton-Ascend Version |
|---|---|---|---|---|---|---|
| v2.7.1-26.2.0 | 2.7.1 | 26.2.0 | 2.7.1.post11 | 9.2.0 | Python3.9.x, Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x | v3.2.2 (Triton-Ascend is not supported in the Python3.9.x environment on the AArch64 architecture) |
| v2.9.0-26.2.0 | 2.9.0 | 26.2.0 | 2.9.0.post9 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | No matching version |
| v2.10.0-26.2.0 | 2.10.0 | 26.2.0 | 2.10.0.post7 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | v3.6.0 (Triton-Ascend is not supported in the Python3.14.x environment) |
| v2.11.0-26.2.0 | 2.11.0 | 26.2.0 | 2.11.0.post3 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | No matching version |
| v2.12.0-26.2.0 | 2.12.0 | 26.2.0 | 2.12.0.post3 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | No matching version |
| v2.13.0-26.2.0 | 2.13.0 | 26.2.0 | 2.13.0 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | v3.6.0 (Triton-Ascend is not supported in the Python3.14.x environment) |
| v2.14.0-26.2.0 | 2.14.0 | 26.2.0 | 2.14.0 | 9.2.0 | Python3.10.x, Python3.11.x, Python3.12.x, Python3.13.x, Python3.14.x | No matching version |
Version Compatibility
In the table, "Y" indicates compatibility.
| TorchNPU | CANN Version | |||
|---|---|---|---|---|
| 8.5.0 | 9.0.X | 9.1.X | 9.2.X | |
| 7.3.0 | Y | Y | Y | Y |
| 26.0.X | Y | Y | Y | Y |
| 26.1.X | Y | Y | Y | Y |
| 26.2.X | Y | Y | Y | Y |
Update Notes
New Features
| Component | Feature | Feature Description | Adaptation Description |
|---|---|---|---|
| TorchNPU | DTensor completion. | Full coverage of sharding strategies for math ops; adds the linspace factory function on DeviceMesh. | Added adaptation for PyTorch 2.14.0 |
| c10d architecture standardization. | The backend discovery mechanism is refactored to dynamic registration through Python entrypoints. | Added adaptation for PyTorch 2.14.0 | |
| Communication fault tolerance. | NCCL2 adds the reconfigure capability, supporting communicator rebuilding for fault recovery. | Added adaptation for PyTorch 2.14.0 | |
| Simplified compilation configuration. | Supports globally setting the default compile backend. | Added adaptation for PyTorch 2.14.0 | |
| Expanded operator coverage. | uniform enters the compiler decomposition path; shallow_copy_data_ is added to support cross-device tensor.data= assignment (the full stack from Dynamo to Inductor). | Added adaptation for PyTorch 2.14.0 | |
| Enhanced FSDP2 sharding flexibility. | Supports independent per-parameter sharding on different DeviceMeshes; fully_shard can explicitly declare the data parallel dimension on the SPMD mesh through DataParallelMeshDims. | Added adaptation for PyTorch 2.13.0 and later versions | |
| FSDP2 chunked loss. | The norm/head parts are computed in the forward pass, reducing the peak memory usage during large model training. | Added adaptation for PyTorch 2.13.0 and later versions | |
| Expanded quantization support. | The AOTInductor C shim layer supports MXFP4. | Added adaptation for PyTorch 2.13.0 and later versions | |
| Recompilation control. | Adds recompile_limit to limit the number of recompilations of a single function at the call level. | Added adaptation for PyTorch 2.13.0 and later versions | |
| Expanded operator coverage. | Inplace custom operators support compile; the scan output dimension uses movedim; BatchLinearLHSFusion recognizes more linear calls. | Added adaptation for PyTorch 2.13.0 and later versions | |
| Mempool community feature follow-up. | The architecture follows the community mainline, fixes the memory leak issue, supports a separate ID control mechanism, and catches up with the features newly added in the community. | Added adaptation for PyTorch 2.13.0 and later versions | |
| Eager mode APIs support torch.accelerator. | Inherits DeviceAllocator and supports enabling accelerator memory and graph-related APIs in Eager mode. | Added adaptation for PyTorch 2.13.0 and later versions | |
| torch.bitwise_right_shift and torch.bitwise_left_shift are supported on the NPU. | torch.bitwise_right_shift and torch.bitwise_left_shift support computation on the NPU, avoiding fallback to the CPU. | Adapted for PyTorch 2.12.0 and later versions | |
| Supports the Inductor Ascend C backend. | Supports Inductor's automatic operator fusion based on the Ascend C IR. | Adapted for PyTorch 2.11.0 and later versions | |
| Standardized memory optimization configuration. | Refactors memory configuration items, reusing community common configurations implemented through a registration mechanism; supports dynamic configuration through the PYTORCH_ALLOC_CONF environment variable. | Adapted for PyTorch 2.10.0 and later versions | |
| Supports the alltoallvc communication operator. | Supports the alltoallvc communication operator, optimizing alltoall communication performance. | • Adapted for PyTorch 2.7.1 • Adapted for PyTorch 2.9.0 and later versions |
|
| Communicators support initialization through hierarchical link establishment. | Supports initializing communicators through hierarchical link establishment, optimizing performance. | • Adapted for PyTorch 2.7.1 • Adapted for PyTorch 2.9.0 and later versions |
|
| Communication operators support symmetric memory. | Supports memory window registration; key communication operators support symmetric memory, improving data transmission efficiency. | • Adapted for PyTorch 2.7.1 • Adapted for PyTorch 2.9.0 and later versions |
|
| Supports Batch consistency configuration. | The torch_npu.npu.set_deterministic_level(level) API adds enumeration value 3 to specify consistency at the Batch level; the get API returns the current level. Both deterministic computation and Batch consistency support dynamic configuration. | • Adapted for PyTorch 2.7.1 • Adapted for PyTorch 2.9.0 and later versions |
Key Feature Changes
This version inherits all features of the 26.1.X version of this product.
API Changes
The API change summary in this section covers added, modified, deprecated, and deleted APIs. API changes only reflect modifications at the code level and do not include optimizations or improvements to the document itself in terms of language, format, links, and so on.
- Added: indicates APIs added in this version.
- Modified: indicates that the API has been modified compared with the previous version.
- Deprecated: indicates that the API stops evolving from the version in which the deprecation is announced and may be removed one year after the announcement.
- Deleted: indicates that the API has been removed in this version.
Table 1 TorchNPU API change summary
| Changed Version | Class Name/API Prototype | Class/API Category | Change Category | Change Description |
|---|---|---|---|---|
| v2.7.1 | torch_npu.batch_norm_reduce | Custom API | Added | Depends on CANN 9.0.0 and later versions |
| torch_npu.distributed.all_to_all_vc | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_add_quant_gmm_ | Custom API | Added | Depends on CANN 9.1.0 | |
| torch_npu.npu_add_rms_norm_cast | Custom API | Added | Depends on CANN 9.0.0 | |
| torch_npu.npu_add_rms_norm_dynamic_mx_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_add_rms_norm_v2 | Custom API | Added | Depends on CANN 9.0.0 | |
| torch_npu.npu_all_gather_quant_mm | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_all_to_all_quant_matmul | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_anti_mx_quant | Custom API | Added | Depends on CANN 9.2.0 | |
| torch_npu.npu_apply_adam_w | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_dual_level_quant_matmul | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_dynamic_block_mx_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_dynamic_mx_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_dynamic_mx_quant_with_dual_axis | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_fused_cross_entropy_loss_with_max_sum | Custom API | Added | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_fused_linear_cross_entropy_loss_with_max_sum_backward | Custom API | Added | Depends on CANN 9.0.0 | |
| torch_npu.npu_fused_linear_online_max_sum | Custom API | Added | Depends on CANN 9.0.0 | |
| torch_npu.npu_fused_matmul | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_fusion_attention_v2 | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_gelu_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_grouped_dynamic_mx_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_grouped_matmul_add | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_grouped_matmul_add_ | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_grouped_matmul_swiglu_quant | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_kronecker_quant | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_kv_rmsnorm_rope_cache_v2 | Custom API | Added | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_moe_token_permute | Custom API | Added | Depends on CANN 9.2.0 | |
| torch_npu.npu_moe_token_permute_with_routing_map | Custom API | Added | • On • On |
|
| torch_npu.npu_moe_token_unpermute | Custom API | Added | Depends on CANN 9.2.0 | |
| torch_npu.npu_moe_token_unpermute_with_routing_map | Custom API | Added | • On • On |
|
| torch_npu.npu_quant_gmm_alltoallv | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_quant_matmul_all_to_all | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_quant_mm_reduce_scatter | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu_rms_norm_dynamic_mx_quant | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_rms_norm_quant_v2 | Custom API | Added | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_scatter_pa_cache | Custom API | Added | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_swiglu_mx_quant | Custom API | Added | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_weight_quant_preprocess | Custom API | Added | Depends on CANN 9.2.0 | |
| torch_npu.npu.get_task_queue_enable | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu.set_task_queue_enable | Custom API | Added | Does not depend on a specific CANN version | |
| torch_npu.npu.NPUPluggableAllocator | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.change_current_allocator | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.distributed.reduce_scatter_tensor_uneven | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.empty_with_swapped_memory | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.erase_stream | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.npu.get_device_limit | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.npu.get_stream_limit | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.matmul_checksum | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.ExternalEvent | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.SyncLaunchStream | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.aclnn.allow_hf32 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.are_compatible_impl_enabled | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.conv.allow_hf32 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.empty_virt_addr_cache | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.graph_task_group_begin | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.graph_task_group_end | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.graph_task_update_begin | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.graph_task_update_end | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.host_empty_cache | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.matmul.allow_hf32 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.matmul.cube_math_type | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.mstx.mark | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.mstx.mstx_range | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.mstx.range_end | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.mstx.range_start | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.mstx | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_deterministic_level | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_op_timeout_ms | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.use_compatible_impl | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_add_rms_norm_dynamic_quant | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_add_rms_norm_quant | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_all_gather_base_mm | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_alltoallv_gmm | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_anti_quant | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_block_sparse_attention | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_chunk_gated_delta_rule | Custom API | Modified | Depends on CANN 9.2.0 | |
| torch_npu.npu_clipped_swiglu | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_convert_weight_to_int4pack | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dense_lightning_indexer_grad_kl_loss | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dense_lightning_indexer_softmax_lse | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dequant_swiglu_quant | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dynamic_block_quant | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dynamic_quant | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_dynamic_quant_asymmetric | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_fast_gelu | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_fused_infer_attention_score | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_fused_infer_attention_score_v2 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_gelu | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_gmm_alltoallv | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_group_norm_silu | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_group_norm_swish | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_grouped_matmul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_grouped_matmul_finalize_routing | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_interleave_rope | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_kv_quant_sparse_flash_attention | Custom API | Modified | Depends on CANN 9.2.0 | |
| torch_npu.npu_kv_rmsnorm_rope_cache | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_mm_all_reduce_base | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_mm_reduce_scatter_base | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_compute_expert_tokens | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_distribute_combine | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_distribute_combine_add_rms_norm | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_distribute_combine_v2 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_distribute_dispatch | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_distribute_dispatch_v2 | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_finalize_routing | Custom API | Modified | Depends on CANN 8.5.0 and later versions | |
| torch_npu.npu_moe_gating_top_k | Custom API | Modified | Depends on CANN 8.5.0 and later versions | |
| torch_npu.npu_moe_gating_top_k_softmax | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_moe_init_routing | Custom API | Modified | Depends on CANN 8.5.0 and later versions | |
| torch_npu.npu_moe_init_routing_v2 | Custom API | Modified | Depends on CANN 8.5.0 and later versions | |
| torch_npu.npu_moe_update_expert | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_mrope | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.NpuGraphOpHandler | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_quant_matmul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_quant_scatter | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_quant_scatter_ | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_quantize | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_recurrent_gated_delta_rule | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_rotary_mul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_rotate_quant | Custom API | Modified | Depends on CANN 9.2.0 | |
| torch_npu.npu_scatter_nd_update | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_scatter_nd_update_ | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_scatter_pa_kv_cache | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_sim_exponential_ | Custom API | Modified | Depends on CANN 9.1.0 and later versions | |
| torch_npu.npu_sparse_lightning_indexer_grad_kl_loss | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_trans_quant_param | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_transpose_batchmatmul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_weight_quant_batchmatmul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedAdadelta | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedAdam | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedAdamP | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedAdamW | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedBertAdam | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedLamb | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedOptimizerBase | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedRMSprop | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedRMSpropTF | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.optim.NpuFusedSGD | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.AiCMetrics | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.ExportType | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.ProfilerAction | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.ProfilerActivity | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.ProfilerLevel | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler._ExperimentalConfig | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler._KinetoProfile | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.dynamic_profile.init | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.dynamic_profile.start | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.dynamic_profile.step | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.profile.disable_profiler_in_child_thread | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.profile.enable_profiler_in_child_thread | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.profile | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.profiler.analyse | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.schedule | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.supported_activities | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.supported_ai_core_metrics | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.supported_export_type | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.profiler.supported_profiler_level | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.npu.reset_stream_limit | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.scatter_update | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.scatter_update_ | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.npu.set_device_limit | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.npu.set_stream_limit | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.get_cann_version | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.reset_thread_affinity | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.set_thread_affinity | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.distributed.ProcessGroupHCCL | Custom API | Modified | Does not depend on a specific CANN version | |
| torch.distributed.is_hccl_available | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu._npu_dropout | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.distributed.all_gather_into_tensor_uneven | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.distributed.reinit_process_group | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.jit.optimize | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.aclnn.version | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.check_uce_in_memory | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.clear_npu_overflow_flag | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.config.allow_internal_format | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.get_amp_supported_dtype | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.get_autocast_dtype | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.get_mm_bmm_format_nd | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.is_autocast_enabled | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.is_jit_compile_false | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.restart_device | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_aoe | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_autocast_dtype | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_autocast_enabled | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_mm_bmm_format_nd | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.stop_device | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.stress_detect | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.utils.is_support_inf_nan | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.utils.npu_check_overflow | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_deformable_conv2d | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_linear | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_rms_norm | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_swiglu | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.FlopsCounter | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.get_part_combined_tensor | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.is_combined_tensor_valid | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.npu_combine_tensors | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.utils.save_async | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_add_rms_norm | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_fusion_attention | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_cross_entropy_loss | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_grouped_matmul_swiglu_quant_v2 | Custom API | Modified | Depends on CANN 9.2.0 | |
| torch_npu.npu_rms_norm_quant | Custom API | Modified | Depends on CANN 9.0.0 and later versions | |
| torch_npu.npu_format_cast | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_format_cast_ | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_lightning_indexer | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.set_compile_mode | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.enable_deterministic_with_backward | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.disable_deterministic_with_backward | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.Event().recorded_time() | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.ExternalEvent().record() | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.ExternalEvent().reset() | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu.ExternalEvent().wait() | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_matmul_all_to_all | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_attention_update | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_all_to_all_matmul | Custom API | Modified | Does not depend on a specific CANN version | |
| torch_npu.npu_scaled_masked_softmax | Custom API | Modified | Does not depend on a specific CANN version | |
| v2.9.0 | The changes are the same as those in v2.7.1. | |||
| v2.10.0 | The changes are the same as those in v2.7.1. | |||
| v2.11.0 | The changes are the same as those in v2.7.1. | |||
| v2.12.0 | The changes are the same as those in v2.7.1. | |||
| v2.13.0 | The changes are the same as those in v2.7.1. | |||
| v2.14.0 | The changes are the same as those in v2.7.1. | |||
TorchNPU adds support for some APIs and features. For details, refer to Custom APIs or Native APIs.
Resolved Issues
Issue Description |
Symptom: When the multi_stream_lazy_reclaim feature is enabled, random Core Dumps occur. Impact: The multi_stream_lazy_reclaim feature is unavailable. |
|---|---|
Severity Level |
Critical |
Root Cause Analysis |
In specific scenarios, free_block() in process_events() calls try_merge_blocks(), which may release params.block early after it has been obtained by get_free_block() but before it is marked as allocated. As a result, subsequent code accesses the freed memory (Use-After-Free), triggering a Core Dump. |
Solution |
1. After get_free_block() returns a Block, immediately mark its status as allocated. |
Impact of the Change |
After the fix, the feature works normally, and the Core Dump issue is fixed. |
Known Issues
None
Upgrade Impact
Impact on the Existing System During Upgrade
Impact on services
Service interruption may occur during the software version upgrade.
Impact on network communication
No impact on communication.
Impact on the Existing System After Upgrade
None
Related Documents
| Document Name | Description | Update Notes |
|---|---|---|
| Installation Guide | Describes how to install the PyTorch framework training environment on Ascend devices, as well as operations such as upgrade and uninstallation. | • Added adaptation for PyTorch 2.13.0 and PyTorch 2.14.0. • Added documentation about compilation acceleration and Clang compilation. |
| TorchNPU Overview | The TorchNPU plugin is a deep learning adaptation framework based on Ascend. It enables the Ascend NPU to support the PyTorch framework and provides PyTorch framework users with the powerful computing power of Ascend AI processors. | No updates |
| Quick Start | Provides a simple model migration example that uses the simplest automatic migration method to help users quickly experience the process of migrating GPU model scripts to the Ascend NPU. | Optimized the Quick Start document. |
| Torch.compile | Significantly accelerates model training and inference tasks through the approach of "dynamic graph capture + static graph optimization + efficient code generation". | • Added the Ascend C compiler to the Inductor backend. • Added a link to the official PyTorch reference documentation. • Deleted content about the Torch-MLIR compiler from the Inductor section |
| Companion Software Libraries | Provides companion software libraries that extend the capabilities of TorchNPU. | Added the Triton-Ascend component. |
| Troubleshooting | Uses various abnormal fault phenomena that developers may encounter during inference and training as the entry point, and provides self-service problem locating and handling methods to help developers quickly locate and resolve faults. | No updates |
| Native APIs | Describes the support of the native APIs of 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.13.0 and PyTorch 2.14.0. • Aligned the content format with the PyTorch community. |
| Custom APIs | Provides function prototypes, function descriptions, parameter descriptions, and usage examples of TorchNPU custom APIs. | • Added adaptation for PyTorch 2.13.0 and PyTorch 2.14.0. • For specific API changes, refer to API Changes. |
| Environment Variables | Environment variables that can be used during TorchNPU training and online inference. | • Added a mapping table of PyTorch environment variables. • Adjusted part of the directory structure. • Deleted content about the Torch-MLIR compiler from the TORCHINDUCTOR_NPU_BACKEND section. • Deleted content about the Torch-MLIR compiler from the (beta) INDUCTOR_ASCEND_CHECK_ACCURACY section. • Removed the TORCHINDUCTOR_USE_AKG section. • Removed the NPU_INDUCTOR_FALLBACK_LIST section. • Removed the (beta) TORCHINDUCTOR_ENABLE_MFUSION section. |
| Memory Management | TorchNPU has built a complete memory management system that deeply integrates PyTorch’s native memory management mechanisms and provides multiple unique optimization capabilities tailored to Ascend NPU hardware features. | The content is independent and optimized. |
| Distributed | Describes the supported core features, including key capabilities such as parallel strategies, sharding primitives, communication strategies, distributed startup, and fault tolerance, and explains how each feature is used on NPUs and the similarities and differences compared with native PyTorch. | • The Distributed section is displayed independently. • Added an overview section. • Added the parallel strategy feature. • Added the communication strategy feature. • Refactored the communicator parameters. |
| Operator Dispatch | Comprehensively improves TorchNPU dispatch and program running performance through automatic core binding, Stream-level TaskQueue parallel dispatch, and compilation optimization. | • The Operator Dispatch section is displayed independently. • Added the taskqueue feature. |
| NPUGraph | NPUGraph is a static graph capture technology used in Eager Mode (single-operator execution mode). It defines and encapsulates a series of NPU kernels as a unit (that is, an operation graph), and starts multiple NPU operations through a single CPU operation, thereby reducing startup overhead. | The content is independent and optimized. |
| Fault Diagnosis | Without affecting the training performance and accuracy of large models, uses silent data error feature value detection technology based on communication flows to quickly and stably identify accuracy problems. | The content is independent and optimized. |
| Custom Operator Adaptation Development | Writes and calls custom operators based on the OpPlugin plugin or C++ extensions. | The content is independent and optimized. |
| TorchAir | As the graph mode capability extension library of Ascend TorchNPU, provides a torch.compile graph mode backend friendly to Ascend devices, implementing graph mode inference acceleration and optimization of PyTorch networks on the Ascend NPU. | • Added the feature of importing custom operators into graphs with zero deliverables. • Added the function of skipping recapture verification before each replay. • Enhanced the SuperKernel fusion optimization function. |
| Security Statement | Provides the software versions, system hardening requirements, security configurations (data storage, debugging APIs, 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 Results
| Antivirus Software Name | Antivirus Software Version | Virus Database Version | Scan Time | Scan Result |
|---|---|---|---|---|
| QiAnXin | 8.0.5.5260 | 2026-09-19 08:00:00.0 | 2026-09-20 | No viruses or malicious code |
| Kaspersky | 12.0.0.6672 | 2026-09-20 10:13:00.0 | 2026-09-20 | No viruses or malicious code |
| Bitdefender | 7.5.1.200224 | 7.101048 | 2026-09-20 | No viruses or malicious code |
Vulnerability Patch List
None
Revision History
| Document | Release Date | Change Description |
|---|---|---|
| 01 | 2026-10-15 | First official release |