docs: 更新README链接、安装说明、TC组织说明

Co-authored-by: Xinrui Chen<chenxinrui11@huawei.com>



# message auto-generated for no-merge-commit merge:
!46171 merge codex/readme-links-release-26-1-1 into master

docs: 更新README链接、安装说明、TC组织说明

Created-by: chenrayray
Commit-by: Xinrui Chen
Merged-by: ascend-robot
Description: # 【合入来源】


- [x] 资料更新
- [x] issue/工单:https://gitcode.com/Ascend/pytorch/issues/4740


# 【修改方案】


修正中英文 README 中过期的 SIG 和上游 CI 链接,更新安装说明与文档引用。


1. SIG 路径更新为 AscendForPyTorch;CI 徽章指向当前 PR 工作流并支持点击查看运行记录。
2. 安装示例与版本配套表对齐为 TorchNPU/PyTorch 2.12.0、CANN 9.1.0,更新环境脚本路径并补充驱动、固件与 Python 配套提示。
3. 修正徽章替代文本及 DTensor 拼写。支持版本章节保持原文,快速入门恢复官网文档链接。


# 【资料变更】


涉及 README.md、README.zh.md,保持中英文同步。


# 【接口变更】


不涉及。


# 【功能验证】


- git diff --check 通过。
- README 本地链接与导航锚点检查通过。
- 已核实 SIG 目标目录、CI 徽章及安装包可用性。
- 纯文档修改,未执行 NPU 安装及运行测试;最新提交的上游 CI 待完成。


# 【CheckList】


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

See merge request: Ascend/pytorch!46171
This commit is contained in:
chenrayray
2026-09-11 15:59:39 +08:00
committed by ascend-robot
parent dc967706b2
commit 0910fb0fc3
2 changed files with 39 additions and 37 deletions
+19 -18
View File
@@ -20,16 +20,16 @@
</p>
<p align="center">
<img src="https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white" alt="version">
<img src="https://img.shields.io/badge/C++-00599C?style=flat&logo=cplusplus&logoColor=white" alt="rust">
<img src="https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white" alt="Python">
<img src="https://img.shields.io/badge/C++-00599C?style=flat&logo=cplusplus&logoColor=white" alt="C++">
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-BSD--3--clause-8A2BE2" alt="license"></a>
<a href="https://pypi.org/project/torch-npu/"><img src="https://img.shields.io/pypi/v/torch-npu?label=PyPI&color=blue" alt="pypi"></a>
<img src="https://img.shields.io/badge/Platform-Ascend%20NPU-C31D20" alt="platform">
<a href="https://gitcode.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Repo-blue?labelColor=white&logo=gitcode&logoColor=D71D3A" alt="license"></a>
<a href="https://github.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Mirror%20Repo-blue?labelColor=white&logo=github&logoColor=black" alt="license"></a>
<a href="https://gitcode.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Repo-blue?labelColor=white&logo=gitcode&logoColor=D71D3A" alt="GitCode repository"></a>
<a href="https://github.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Mirror%20Repo-blue?labelColor=white&logo=github&logoColor=black" alt="GitHub mirror"></a>
<img src="https://gitcode.com/Ascend/pytorch/star/badge.svg" alt="GitCode Star"/>
<img src="https://gitcode.com/Ascend/pytorch/download/badge.svg" alt="download">
<!-- <img src="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger.yml/badge.svg" alt="ci"> -->
<a href="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger_pr.yml"><img src="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger_pr.yml/badge.svg" alt="PyTorch Upstream CI"></a>
</p>
---
@@ -71,26 +71,26 @@ For the compatibility matrix of released packages (TorchNPU / PyTorch / CANN / P
### From Binary
Take installing TorchNPU 2.10.0.post2 as an example. Run the following commands for installation. For other versions, please refer to the community download page: [TorchNPU Download](https://www.hiascend.com/developer/software/ai-frameworks/pytorch/download).
Take installing TorchNPU 2.12.0 as an example. Run the following commands for installation. For other versions, please refer to the community download page: [TorchNPU Download](https://www.hiascend.com/developer/software/ai-frameworks/pytorch/download).
#### Install CANN
Install CANN 9.0.0. For detailed steps, please refer to the [CANN Installation Guide](https://www.hiascend.com/cann/download).
Install CANN 9.1.0 and the NPU driver and firmware matching your hardware. Use a compatible Python version from the [compatibility matrix](./COMPATIBILITY.en.md). For detailed steps, please refer to the [CANN Installation Guide](https://www.hiascend.com/cann/download).
#### Install PyTorch
Run the following command to install PyTorch 2.10.0:
Run the following command to install PyTorch 2.12.0:
```bash
pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cpu
pip install torch==2.12.0 --index-url https://download.pytorch.org/whl/cpu
```
#### Install TorchNPU
Run the following command to install TorchNPU 2.10.0.post2:
Run the following command to install TorchNPU 2.12.0:
```bash
pip install torch-npu==2.10.0.post2
pip install torch-npu==2.12.0
```
### From Source
@@ -103,7 +103,7 @@ For detailed steps on compiling TorchNPU, please refer to the [Source Installati
```shell
# Default path, modify according to your actual installation location
source /usr/local/Ascend/ascend-toolkit/set_env.sh
source /usr/local/Ascend/cann/set_env.sh
```
### Run Example
@@ -131,14 +131,15 @@ For complete model migration and training tutorials, please refer to the [Quick
## Community
The Ascend for PyTorch community consists of multiple Special Interest Groups (SIGs), each responsible for development, maintenance, and community collaboration in specific technical areas. Below is a list of all current SIGs. Click the corresponding links for detailed descriptions.
The Ascend for PyTorch community is coordinated by the Technical Committee (TC), with Special Interest Groups (SIGs) responsible for development, maintenance, and community collaboration in specific technical areas. The table below introduces the TC and current SIGs. Click the corresponding links for details.
| SIG Name | Description | Link |
| TC / SIG Name | Description | Link |
|:---------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------:|
| Core SIG | Focuses on the development of the PyTorch core adaptation layer on the Ascend NPU platform, responsible for the design, implementation, and maintenance of the `TorchNPU` extension library and its operator plugin `OpPlugin`. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/core) |
| Distributed SIG | Dedicated to building efficient, easy-to-use, and scalable parallel training capabilities based on the PyTorch distributed training framework (torch.distributed) on the Ascend NPU hardware foundation, delivering extreme performance for LLM, multimodal, and reinforcement learning scenarios. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/distributed) |
| Graph Mode SIG | Focuses on core technologies such as Dynamo, Inductor, and NPUGraph, aiming to bridge the gap between "ease of use" and "high performance" through automated graph capture and compilation optimization. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/graph-mode) |
| Usability SIG | Dedicated to improving the usability experience of Ascend for PyTorch, including documentation, tutorials, examples, and more. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/usability) |
| TC | Oversees technical direction and major technical decisions, SIG governance, and release reviews for Ascend for PyTorch. | [🔗 Learn more](https://gitcode.com/Ascend/community/blob/master/AscendForPyTorch/README.md) |
| Core SIG | Focuses on the development of the PyTorch core adaptation layer on the Ascend NPU platform, responsible for the design, implementation, and maintenance of the `TorchNPU` extension library and its operator plugin `OpPlugin`. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/core) |
| Distributed SIG | Dedicated to building efficient, easy-to-use, and scalable parallel training capabilities based on the PyTorch distributed training framework (torch.distributed) on the Ascend NPU hardware foundation, delivering extreme performance for LLM, multimodal, and reinforcement learning scenarios. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/distributed) |
| Graph Mode SIG | Focuses on core technologies such as Dynamo, Inductor, and NPUGraph, aiming to bridge the gap between "ease of use" and "high performance" through automated graph capture and compilation optimization. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/graph-mode) |
| Usability SIG | Dedicated to improving the usability experience of Ascend for PyTorch, including documentation, tutorials, examples, and more. | [🔗 Learn more](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/usability) |
Each SIG holds regular meetings, mailing lists, and contribution guides. Click the corresponding SIG links to view detailed contact information, goals, and participation guidelines. Everyone is welcome to contribute to the community. If you have any questions or suggestions, please submit [GitHub Issues](https://github.com/Ascend/pytorch/issues). We will reply as soon as possible. Thank you for your support.
+20 -19
View File
@@ -20,16 +20,16 @@
</p>
<p align="center">
<img src="https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white" alt="version">
<img src="https://img.shields.io/badge/C++-00599C?style=flat&logo=cplusplus&logoColor=white" alt="rust">
<img src="https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white" alt="Python">
<img src="https://img.shields.io/badge/C++-00599C?style=flat&logo=cplusplus&logoColor=white" alt="C++">
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-BSD--3--clause-8A2BE2" alt="license"></a>
<a href="https://pypi.org/project/torch-npu/"><img src="https://img.shields.io/pypi/v/torch-npu?label=PyPI&color=blue" alt="pypi"></a>
<img src="https://img.shields.io/badge/Platform-Ascend%20NPU-C31D20" alt="platform">
<a href="https://gitcode.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Repo-blue?labelColor=white&logo=gitcode&logoColor=D71D3A" alt="license"></a>
<a href="https://github.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Mirror%20Repo-blue?labelColor=white&logo=github&logoColor=black" alt="license"></a>
<a href="https://gitcode.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Repo-blue?labelColor=white&logo=gitcode&logoColor=D71D3A" alt="GitCode repository"></a>
<a href="https://github.com/Ascend/pytorch"><img src="https://img.shields.io/badge/Mirror%20Repo-blue?labelColor=white&logo=github&logoColor=black" alt="GitHub mirror"></a>
<img src="https://gitcode.com/Ascend/pytorch/star/badge.svg" alt="GitCode Star"/>
<img src="https://gitcode.com/Ascend/pytorch/download/badge.svg" alt="download">
<!-- <img src="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger.yml/badge.svg" alt="ci"> -->
<a href="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger_pr.yml"><img src="https://github.com/Ascend/pytorch/actions/workflows/pytorch_ci_trigger_pr.yml/badge.svg" alt="PyTorch Upstream CI"></a>
</p>
---
@@ -51,7 +51,7 @@ TorchNPU 充分继承和复用上游 PyTorch 的大量成熟功能,并在此
**TorchNPU 主要模块介绍:**
- **基础计算:** 广泛支持 PyTorch 原生 API 及自定义 API,覆盖主流AI场景,提供一致性体验,支撑用户快速实现模型和算法。
- **分布式:** 支持通过 FSDP2 加速分布式训练,核心计算 API 支持 Dtensor,支持 AllGather、AllReduce、AllToAll 等集合通信原语,和 Send、Recv 等点对点通信原语。
- **分布式:** 支持通过 FSDP2 加速分布式训练,核心计算 API 支持 DTensor,支持 AllGather、AllReduce、AllToAll 等集合通信原语,和 Send、Recv 等点对点通信原语。
- **图模式:** 通过“动态图捕获+静态图优化+高效代码生成”的方式显著加速模型训练和推理任务,并支持通过 NPUGraph 下沉执行,在 2.6.0 以上版本已支持。
- **调试调优:** 支持 Profiling 分析计算、通信和内存使用,支持通过 WatchDog 实时监控分析通信异常。
- **TorchNPU Core:** 支持虚拟内存管理降低内存碎片,在分布式场景支持跨流内存复用优化,通过 PrivateUse1 将算子和设备资源接入 PyTorch。
@@ -71,26 +71,26 @@ TorchNPU 充分继承和复用上游 PyTorch 的大量成熟功能,并在此
### 软件包安装
以安装 TorchNPU 2.10.0.post2 版本为例,请按照以下命令进行安装。下载其他版本的方式请参见社区下载页面 [TorchNPU 下载](https://www.hiascend.com/developer/software/ai-frameworks/pytorch/download)。
以安装 TorchNPU 2.12.0 版本为例,请按照以下命令进行安装。下载其他版本的方式请参见社区下载页面 [TorchNPU 下载](https://www.hiascend.com/developer/software/ai-frameworks/pytorch/download)。
#### 安装 CANN
安装 9.0.0 版本的 CANN,具体步骤请参见 [CANN 安装指南](https://www.hiascend.com/cann/download)。
安装 CANN 9.1.0 及与硬件配套的 NPU 驱动和固件,并按照[版本配套](./COMPATIBILITY.md)选择兼容的 Python 版本。具体步骤请参见 [CANN 安装指南](https://www.hiascend.com/cann/download)。
#### 安装 PyTorch
执行以下命令安装 PyTorch 2.10.0:
执行以下命令安装 PyTorch 2.12.0:
```bash
pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cpu
pip install torch==2.12.0 --index-url https://download.pytorch.org/whl/cpu
```
#### 安装 TorchNPU
执行以下命令安装 TorchNPU 2.10.0.post2:
执行以下命令安装 TorchNPU 2.12.0:
```bash
pip install torch-npu==2.10.0.post2
pip install torch-npu==2.12.0
```
### 源码编译安装
@@ -103,7 +103,7 @@ pip install torch-npu==2.10.0.post2
```shell
# 默认路径,请根据实际安装位置修改
source /usr/local/Ascend/ascend-toolkit/set_env.sh
source /usr/local/Ascend/cann/set_env.sh
```
### 运行示例
@@ -131,14 +131,15 @@ tensor([[-0.0515, 0.3664],
## 社区交流
Ascend for PyTorch 社区由多个 Special Interest Groups(SIGs)组成,每个 SIG 负责特定技术领域的开发、维护和社区协作。以下是当前所有 SIG 的列表,点击对应链接可查看详细说明。
Ascend for PyTorch 社区由技术委员会(Technical Committee,TC)统筹管理,下设多个特别兴趣小组(Special Interest Groups,SIGs),各 SIG 负责特定技术领域的开发、维护和社区协作。以下是 TC 和当前各 SIG 的介绍,点击对应链接可查看详细说明。
| SIG名称 | 简要描述 | 链接 |
| TC / SIG名称 | 简要描述 | 链接 |
|:---------------:|:-------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------:|
| Core SIG | 聚焦于昇腾 NPU 平台上的 PyTorch 核心适配层开发,负责 `TorchNPU` 扩展库及其算子插件 `OpPlugin` 的设计、实现与维护。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/core) |
| Distributed SIG | 致力于在昇腾 NPU 硬件底座上,围绕 PyTorch 分布式训练框架(torch.distributed)构建高效、易用、可扩展的并行训练能力,为大语言模型、多模态模型和强化学习等场景提供极致性能体验。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/distributed) |
| Graph Mode SIG | 聚焦于 Dynamo、Inductor、NPUGraph等核心技术,旨在通过自动化的图捕捉与编译优化技术,弥合“易用性”与“高性能”之间的鸿沟。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/graph-mode) |
| Usability SIG | 致力于推动Ascend for PyTorch易用性体验提升,包含文档、教程、案例等。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/FrameworkPTAdapter/sigs/usability) |
| TC | 负责 Ascend for PyTorch 项目的技术方向与重大技术方案决策、SIG 治理及版本发布评审。 | [🔗 了解更多](https://gitcode.com/Ascend/community/blob/master/AscendForPyTorch/README.md) |
| Core SIG | 聚焦于昇腾 NPU 平台上的 PyTorch 核心适配层开发,负责 `TorchNPU` 扩展库及其算子插件 `OpPlugin` 的设计、实现与维护。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/core) |
| Distributed SIG | 致力于在昇腾 NPU 硬件底座上,围绕 PyTorch 分布式训练框架(torch.distributed)构建高效、易用、可扩展的并行训练能力,为大语言模型、多模态模型和强化学习等场景提供极致性能体验。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/distributed) |
| Graph Mode SIG | 聚焦于 Dynamo、Inductor、NPUGraph等核心技术,旨在通过自动化的图捕捉与编译优化技术,弥合“易用性”与“高性能”之间的鸿沟。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/graph-mode) |
| Usability SIG | 致力于推动Ascend for PyTorch易用性体验提升,包含文档、教程、案例等。 | [🔗 了解更多](https://gitcode.com/Ascend/community/tree/master/AscendForPyTorch/sigs/usability) |
每个SIG都有自己的例会、邮件列表和贡献指南。点击对应的SIG链接可查看详细联系方式、工作目标及参与方式。欢迎大家为社区做贡献。如果有任何疑问或建议,请提交 [GitCode Issues](https://gitcode.com/Ascend/pytorch/issues),我们会尽快回复。感谢您的支持。