Merged
refactor: rename torchao_npu to torchao_ascend repo-wide(统一仓名 torchao-ascend 命名) #140
refactor: rename torchao_npu to torchao_ascend repo-wide(统一仓名 torchao-ascend 命名) #140
Merged
wanglijun55Add on 9 days ago
wanglijun55
wanglijun55Collaborators
9 days ago

背景

仓库已更名为 torchao-ascend,但 wheel 包名、Python 包目录、代码注释、文档、CI 配置中仍残留 torchao_npu 表述。本 PR 全仓统一修正。

改动内容

对象 旧 新
Python 包目录 / import 名 torchao_npu torchao_ascend
wheel 发行包名(pyproject [project].name) torchao_npu torchao-ascend
autoload 模块 / entry point _torchao_npu_autoload.py _torchao_ascend_autoload.py
环境变量 TORCHAO_NPU_AUTO_ACTIVATE TORCHAO_ASCEND_AUTO_ACTIVATE
CI 工件 / workflow / 脚本名 torchao-npu-* torchao-ascend-*
文档 / README / 注释产品名 TorchAONPU TorchAO-Ascend
README / CONTRIBUTING 分支引用 master main(默认分支已更名)

共 170 个文件,+623/-623,纯命名替换,无逻辑改动。

兼容性说明

  • import 名由 torchao_npu 改为 torchao_ascend,属于 breaking change,用户需同步修改 import torchao_ascend
  • torch 的 device-backend autoload 通过 entry_points(group="torch.backends") 遍历加载,不依赖固定模块名,重命名安全
  • wheel 文件名(torchao_ascend-0.18.0-.whl)与现有 CI 中 torchao_ascend.whl glob 保持兼容
  • 版本号保持 0.18.0

验证

likedislike
Pull Request has been successfully merged by ascend-robot.
(Thank you for wanglijun55's contribution.)
wanglijun55wanglijun55Collaborators
9 days ago Created pull request, commit 1293957d
ascend-robotascend-robotCollaborators
9 days ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
9 days ago Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
.gitcode/workflows/** ✅ 吴环宇, sylvia_wei, ll-pen, wangzhenwu (4/2) ✅ 吴环宇 (1/1)
repo-Ascend/torchao-ascend ✅ sylvia_wei, ll-pen, wangzhenwu, liangsongwei (4/2) ✅ liangsongwei (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

wanglijun55, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
wanglijun55wanglijun55Collaborators
9 days ago Pre merge succeeded (commit_id: 0ec897bf5e660ed429760a58c064b242fef855ff)
wanglijun55wanglijun55Collaborators
9 days ago Pushed 1 commits:de179eef-docs: use repo name torchao-ascend for prose references
wanglijun55wanglijun55Collaborators
9 days ago Pre merge succeeded (commit_id: 0fd17e8702f896d9712dd6aafdd909c182d0c205)
ascend-robotascend-robotCollaborators
9 days ago Removed label: ascend-cla/yes
ascend-robotascend-robotCollaborators
9 days ago Added label: stat/needs-squash
ascend-robotascend-robotCollaborators
9 days ago Added label: ascend-cla/yes
wanglijun55
wanglijun55Collaborators
9 days ago Comments:

compile

likedislike
wanglijun55wanglijun55Collaborators
9 days ago Pre merge succeeded (commit_id: 2aef23372ccba0cc18f9cf0e3f7c85e787a66091)
AtlasAccountAtlasAccountCollaborators
9 days ago Added label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
9 days ago Removed label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
9 days ago Added label: ci-pipeline-failed
AtlasAccount
AtlasAccountCollaborators
9 days ago Comments:
流水线 PR-pipeline_torchao_npu#206 [ commitID:de179eef ] 运行失败
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_x86 🟣 INIT >>>
恶意代码检查 Antipoison ✅ COMPLETED >>>
编码安全与规范检查 pre-commit ✅ COMPLETED >>>
开源片段检查 SCA ❌ FAILED >>>
流水线 PR-pipeline_torchao_npu ❌ FAILED >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, wanglijun55, wss_321]评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
wanglijun55
wanglijun55Collaborators
9 days ago Comments:

关联 issue:#71(统一清理仓内残留 torchao_npu 命名)

本 PR 落地该 issue 所述的命名统一修正;命名规范细节、影响面与验证结论见 issue 与 PR 描述。

likedislike
wanglijun55
wanglijun55Collaborators
9 days ago Comments:

备注:测试过程中发现一个既有问题(与改名无关,已在 origin/main 基线复现)——经 torch_npu 导入 torch 时 device-backend autoload 被跳过,导致依赖自动激活挂载的用例合跑收集失败。已单独记录为 #72,后续修复,不影响本 PR。

likedislike
wanglijun55wanglijun55Collaborators
9 days ago Associated issue: 统一清理仓内残留 torchao_npu 命名(wheel 包名/包目录/资料/CI/注释)
wanglijun55
wanglijun55Collaborators
9 days ago Comments:

compile

likedislike
AtlasAccountAtlasAccountCollaborators
9 days ago Removed label: ci-pipeline-failed
AtlasAccountAtlasAccountCollaborators
9 days ago Added label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
9 days ago Removed label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
9 days ago Added label: ci-pipeline-failed
AtlasAccountAtlasAccountCollaborators
9 days ago Removed label: ci-pipeline-failed
AtlasAccountAtlasAccountCollaborators
9 days ago Added label: ci-pipeline-passed
AtlasAccount
AtlasAccountCollaborators
9 days ago Comments:
流水线 PR-pipeline_torchao_npu#209 [ commitID:de179eef ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_x86 ✅ COMPLETED >>>
恶意代码检查 Antipoison ✅ COMPLETED >>>
编码安全与规范检查 pre-commit ✅ COMPLETED >>>
开源片段检查 SCA ✅ COMPLETED >>>
流水线 PR-pipeline_torchao_npu ✅ COMPLETED >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, wanglijun55, wss_321]评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
梁松伟
梁松伟Collaborators
9 days ago Comments:

/approve

likedislike
weixuan
weixuan
8 days ago Comments:

/lgtm

likedislike
wanglijun55
wanglijun55Collaborators
7 days ago Comments:

/check-pr

likedislike
ascend-robot
ascend-robotCollaborators
7 days ago Comments:

The following labels are not ready.

approved: Please wait for committers to review the code.

lgtm: Please wait for reviewers to review the code.

likedislike
weixuan
weixuan
7 days ago Comments:

/lgtm

likedislike
Lennon
Lennon
7 days ago Comments:

/lgtm

likedislike
ascend-robotascend-robotCollaborators
7 days ago Added label: lgtm
Kuteriod
KuteriodCollaborators
7 days ago Comments:

/lgtm

likedislike
dilililiwhy
dilililiwhyCollaborators
7 days ago Comments:

/approve

likedislike
ascend-robotascend-robotCollaborators
7 days ago Added label: approved
ascend-robotascend-robotCollaborators
7 days ago Merged pull request