已合并
Update URL (gitcode) #24862
dilililiwhy创建于 2025年9月15日
Update URL (gitcode) #24862
已合并
dilililiwhy创建于 2025年9月15日
7 个文件变更+29-30
@@ -1,6 +1,6 @@
1[submodule "third_party/op-plugin"]1[submodule "third_party/op-plugin"]
2 path = third_party/op-plugin2 path = third_party/op-plugin
3- url = https://gitee.com/ascend/op-plugin.git3+ url = https://gitcode.com/ascend/op-plugin.git
4 ignore = dirty4 ignore = dirty
5[submodule "third_party/googletest"]5[submodule "third_party/googletest"]
6 path = third_party/googletest6 path = third_party/googletest
@@ -10,7 +10,7 @@
10 url = https://gitee.com/ascend/torchair.git10 url = https://gitee.com/ascend/torchair.git
11[submodule "third_party/Tensorpipe"]11[submodule "third_party/Tensorpipe"]
12 path = third_party/Tensorpipe12 path = third_party/Tensorpipe
13- url = https://gitee.com/ascend/Tensorpipe.git13+ url = https://gitcode.com/ascend/Tensorpipe.git
14[submodule "third_party/fmt"]14[submodule "third_party/fmt"]
15 path = third_party/fmt15 path = third_party/fmt
16 url = https://gitee.com/mirrors/fmt.git16 url = https://gitee.com/mirrors/fmt.git
@@ -16,9 +16,8 @@
16 16 
17<h2 id="入门.md">入门</h2>17<h2 id="入门.md">入门</h2>
18 18 
19-- 在[Gitee](https://gitee.com/ascend/pytorch)上Fork存储库。19+- 在[GitCode](https://gitcode.com/ascend/pytorch)上Fork存储库。
20-- 阅读[README.md](#https://gitee.com/ascend/pytorch/blob/master/README.zh.md)以获取项目信息和构建说明。20+- 阅读[README.md](#https://gitcode.com/ascend/pytorch/blob/master/README.zh.md)以获取项目信息和构建说明。
21-- 行为准则 [coc](https://gitee.com/ascend/community/blob/master/code-of-conduct_zh_cn.md)。
22 21 
23<h2 id="开发指导.md">开发指导</h2>22<h2 id="开发指导.md">开发指导</h2>
24 23 
@@ -159,9 +158,9 @@
159 如果要将代码下载到本地环境,git是很好的方法:158 如果要将代码下载到本地环境,git是很好的方法:
160 159 
161 ```160 ```
162- # For Gitee161+ # For GitCode
163- git clone https://gitee.com/{insert_your_forked_repo}/pytorch.git162+ git clone https://gitcode.com/{insert_your_forked_repo}/pytorch.git
164- git remote add upstream https://gitee.com/pytorch/pytorch.git163+ git remote add upstream https://gitcode.com/pytorch/pytorch.git
165 ```164 ```
166 165 
1673. 本地开发代码。1663. 本地开发代码。
@@ -213,7 +212,7 @@
213 212 
214<h2 id="提出PR.md">提出PR</h2>213<h2 id="提出PR.md">提出PR</h2>
215 214 
216-- 在[Gitee](https://gitee.com/ascend/pytorch/issues)上提出您的想法作为_问题_。215+- 在[GitCode](https://gitcode.com/ascend/pytorch/issues)上提出您的想法作为_问题_。
217- 如果是需要大量设计细节的新功能,还应提交设计方案。216- 如果是需要大量设计细节的新功能,还应提交设计方案。
218- 在问题讨论和设计提案审查中达成共识后,完成分叉回购的开发并提交 PR(Pull Request)。217- 在问题讨论和设计提案审查中达成共识后,完成分叉回购的开发并提交 PR(Pull Request)。
219- 在从批准者那里收到2+ LGTM(Looks Good To Me)之前,不允许任何PR 。请注意,审批人不允许在自己的 PR 上添加LGTM。218- 在从批准者那里收到2+ LGTM(Looks Good To Me)之前,不允许任何PR 。请注意,审批人不允许在自己的 PR 上添加LGTM。
MOWNERS+8-8
@@ -1,18 +1,18 @@
1approvers:1approvers:
2-- weili102+- liwei386
3- li_jing_hw3- li_jing_hw
4- clinglai4- clinglai
5-- xuepenginnanjing5+- aichunzheng
6- yskhhh6- yskhhh
7- brightlyking7- brightlyking
8- wangjiangben_hw8- wangjiangben_hw
9- wangchao2859- wangchao285
10-- atlasaccount10+- AtlasAccount
11- dilililiwhy11- dilililiwhy
12- chenhao_120912- chenhao_1209
13- sunboquan13- sunboquan
14-- wangchao14714+- wangchao430
15-- yanpengquan0715+- yanpengquan
16- kaixin197616- kaixin1976
17reviewers:17reviewers:
18- xiaxia318- xiaxia3
@@ -20,10 +20,10 @@ reviewers:
20- yskhhh20- yskhhh
21- li_jing_hw21- li_jing_hw
22- wangjiangben_hw22- wangjiangben_hw
23-- weili1023+- liwei386
24- clinglai24- clinglai
25- shaoyf25- shaoyf
26-- yanpengquan0726+- yanpengquan
27- liu-jiaweikf27- liu-jiaweikf
28- xiepeng2028- xiepeng20
29- brightlyking29- brightlyking
@@ -47,6 +47,6 @@ reviewers:
47- chuboning47- chuboning
48- guo-guanghao48- guo-guanghao
49- yuhaiyan49- yuhaiyan
50-- wangchao14750+- wangchao430
51- insanecoder51- insanecoder
52- Chen_LiQing52- Chen_LiQing
@@ -27,9 +27,9 @@
27 27 
28**Ascend Extension for PyTorch**的分支名称采用`{PyTorch版本}-{昇腾版本}`命名规则,前者为**Ascend Extension for PyTorch**匹配的PyTorch版本,后者为**Ascend Extension for PyTorch**版本号,详细匹配如下:28**Ascend Extension for PyTorch**的分支名称采用`{PyTorch版本}-{昇腾版本}`命名规则,前者为**Ascend Extension for PyTorch**匹配的PyTorch版本,后者为**Ascend Extension for PyTorch**版本号,详细匹配如下:
29 29 
30-| CANN版本 | 支持的PyTorch版本 | 支持的Extension版本 | Gitee分支 | 30+| CANN版本 | 支持的PyTorch版本 | 支持的Extension版本 | GitCode分支 |
31|-----------------------|--------------|------------------|-------------------|31|-----------------------|--------------|------------------|-------------------|
32-| CANN 8.3.RC1.alpha001 | 2.8.0 | 2.8.0rc1 | v2.8.0 |32+| CANN 8.3.RC1.alpha001 | 2.8.0 | 2.8.0rc1 | v2.8.0 |
33| CANN 8.2.RC1 | 2.6.0 | 2.6.0 | v2.6.0-7.1.0 |33| CANN 8.2.RC1 | 2.6.0 | 2.6.0 | v2.6.0-7.1.0 |
34| | 2.5.1 | 2.5.1.post1 | v2.5.1-7.1.0 |34| | 2.5.1 | 2.5.1.post1 | v2.5.1-7.1.0 |
35| | 2.1.0 | 2.1.0.post13 | v2.1.0-7.1.0 |35| | 2.1.0 | 2.1.0.post13 | v2.1.0-7.1.0 |
@@ -143,7 +143,7 @@
1431. **克隆torch_npu代码仓**1431. **克隆torch_npu代码仓**
144 144 
145 ```145 ```
146- git clone https://gitee.com/ascend/pytorch.git -b v2.8.0 --depth 1146+ git clone https://gitcode.com/ascend/pytorch.git -b v2.8.0 --depth 1
147 ```147 ```
148 148 
1492. **构建镜像**1492. **构建镜像**
@@ -245,7 +245,7 @@ torch_npu的卸载只需执行命令:
245 245 
246## 建议与交流246## 建议与交流
247 247 
248-欢迎大家为社区做贡献。如果有任何疑问或建议,请提交[Gitee Issues](https://gitee.com/Ascend/pytorch/issues),我们会尽快回复。感谢您的支持。248+欢迎大家为社区做贡献。如果有任何疑问或建议,请提交[GitCode Issues](https://gitcode.com/Ascend/pytorch/issues),我们会尽快回复。感谢您的支持。
249 249 
250## 分支维护策略250## 分支维护策略
251 251 
@@ -72,10 +72,10 @@ torch_npu支持源码编译安装,在编译时会下载依赖第三方库并
72 72 
73| 类型 | 开源代码地址 | 文件名 | 公网IP地址/公网URL地址/域名/邮箱地址 | 用途说明 |73| 类型 | 开源代码地址 | 文件名 | 公网IP地址/公网URL地址/域名/邮箱地址 | 用途说明 |
74|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|--------------------------------------------------------------------------------|--------------------------------|74|------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|--------------------------------------------------------------------------------|--------------------------------|
75-| 自研 | 不涉及 | .gitmodules | https://gitee.com/ascend/op-plugin.git | 依赖的开源代码仓 |75+| 自研 | 不涉及 | .gitmodules | https://gitcode.com/ascend/op-plugin.git | 依赖的开源代码仓 |
76| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/googletest.git | 依赖的开源代码仓 |76| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/googletest.git | 依赖的开源代码仓 |
77| 自研 | 不涉及 | .gitmodules | https://gitee.com/ascend/torchair.git | 依赖的开源代码仓 |77| 自研 | 不涉及 | .gitmodules | https://gitee.com/ascend/torchair.git | 依赖的开源代码仓 |
78-| 自研 | 不涉及 | .gitmodules | https://gitee.com/ascend/Tensorpipe.git | 依赖的开源代码仓 |78+| 自研 | 不涉及 | .gitmodules | https://gitcode.com/ascend/Tensorpipe.git | 依赖的开源代码仓 |
79| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/fmt.git | 依赖的开源代码仓 |79| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/fmt.git | 依赖的开源代码仓 |
80| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/nlohmann-json.git | 依赖的开源代码仓 |80| 自研 | 不涉及 | .gitmodules | https://gitee.com/mirrors/nlohmann-json.git | 依赖的开源代码仓 |
81| 自研 | 不涉及 | ci\docker\X86\Dockerfile | https://mirrors.huaweicloud.com/repository/pypi/simple | docker配置文件,用于配置pip源 |81| 自研 | 不涉及 | ci\docker\X86\Dockerfile | https://mirrors.huaweicloud.com/repository/pypi/simple | docker配置文件,用于配置pip源 |
@@ -84,10 +84,10 @@ torch_npu支持源码编译安装,在编译时会下载依赖第三方库并
84| 自研 | 不涉及 | ci\docker\X86\Dockerfile | https://mirrors.wlnmp.com/centos/Centos7-aliyun-altarch.repo | docker配置文件,用于配置yum源 |84| 自研 | 不涉及 | ci\docker\X86\Dockerfile | https://mirrors.wlnmp.com/centos/Centos7-aliyun-altarch.repo | docker配置文件,用于配置yum源 |
85| 自研 | 不涉及 | ci\docker\ARM\Dockerfile | https://mirrors.wlnmp.com/centos/Centos7-aliyun-altarch.repo | docker配置文件,用于配置yum源 |85| 自研 | 不涉及 | ci\docker\ARM\Dockerfile | https://mirrors.wlnmp.com/centos/Centos7-aliyun-altarch.repo | docker配置文件,用于配置yum源 |
86| 自研 | 不涉及 | .github\workflows\\_build-and-test.yml | https://mirrors.huaweicloud.com/repository/pypi/simple | workflow配置文件,用于配置pip源 |86| 自研 | 不涉及 | .github\workflows\\_build-and-test.yml | https://mirrors.huaweicloud.com/repository/pypi/simple | workflow配置文件,用于配置pip源 |
87-| 自研 | 不涉及 | setup.cfg | https://gitee.com/ascend/pytorch | 用于打包whl的url入参 |87+| 自研 | 不涉及 | setup.cfg | https://gitcode.com/ascend/pytorch | 用于打包whl的url入参 |
88-| 自研 | 不涉及 | setup.cfg | https://gitee.com/ascend/pytorch/tags | 用于打包whl的download_url入参 |88+| 自研 | 不涉及 | setup.cfg | https://gitcode.com/ascend/pytorch/tags | 用于打包whl的download_url入参 |
89-| 自研 | 不涉及 | third_party\op-plugin\ci\build.sh | https://gitee.com/ascend/pytorch.git | 编译脚本根据torch_npu仓库地址拉取代码进行编译 |89+| 自研 | 不涉及 | third_party\op-plugin\ci\build.sh | https://gitcode.com/ascend/pytorch.git | 编译脚本根据torch_npu仓库地址拉取代码进行编译 |
90-| 自研 | 不涉及 | third_party\op-plugin\ci\exec_ut.sh | https://gitee.com/ascend/pytorch.git | UT脚本根据torch_npu仓库地址下拉取代码进行UT测试 |90+| 自研 | 不涉及 | third_party\op-plugin\ci\exec_ut.sh | https://gitcode.com/ascend/pytorch.git | UT脚本根据torch_npu仓库地址下拉取代码进行UT测试 |
91| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/nn/test_convolution.py <br> https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_mps.py <br> https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/legacy_conv2d.pt | 用于test脚本下载相关pt文件 |91| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/nn/test_convolution.py <br> https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_mps.py <br> https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/legacy_conv2d.pt | 用于test脚本下载相关pt文件 |
92| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/legacy_serialized.pt | 用于test脚本下载相关pt文件 |92| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/legacy_serialized.pt | 用于test脚本下载相关pt文件 |
93| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/gpu_tensors.pt | 用于test脚本下载相关pt文件 |93| 开源引入 | https://github.com/pytorch/pytorch/blob/v2.8.0/test/test_serialization.py | test\url.ini | https://download.pytorch.org/test_data/gpu_tensors.pt | 用于test脚本下载相关pt文件 |
@@ -7,7 +7,7 @@ This folder hosts the `Dockerfile` to build docker images with various platforms
7**Clone torch-npu**7**Clone torch-npu**
8 8 
9```Shell9```Shell
10-git clone https://gitee.com/ascend/pytorch.git --depth 110+git clone https://gitcode.com/ascend/pytorch.git --depth 1
11```11```
12 12 
13**Build docker image**13**Build docker image**
@@ -1,3 +1,3 @@
1[metadata]1[metadata]
2-url = https://gitee.com/ascend/pytorch2+url = https://gitcode.com/ascend/pytorch
3-download_url = https://gitee.com/ascend/pytorch/tags3+download_url = https://gitcode.com/ascend/pytorch/tags