Merged
fix: replace leftover torchao_npu references in benchmarks with torchao_ascend #191
fix: replace leftover torchao_npu references in benchmarks with torchao_ascend #191
Merged
pengpeng7872Add on 2 days ago
pengpeng7872
pengpeng7872
2 days ago

【合入来源】

  • issue/工单:#99(benchmarks 下 6 个文件仍引用旧包名 torchao_npu,改名 8837ea3 遗漏)

【修改方案】

将 6 个文件中的 torchao_npu 统一替换为 torchao_ascend(共 7 处):

文件 改动
benchmarks/prototype/hifloat8/benchmark_hifloat8_grouped_mm.py 2 处 import
benchmarks/prototype/hifloat8/benchmark_hifloat8_inference.py 1 处 import
benchmarks/prototype/hifloat8/benchmark_hifloat8_linear.py 1 处 import
benchmarks/prototype/hifloat8/utils.py import torchao_ascend 副作用导入
benchmarks/quantization/README.md 错误信息文本
benchmarks/quantization/measure_accuracy_and_performance.sh 注释

纯字符串替换,无逻辑改动。目标模块在 torchao_ascend/features/training/hifloat8/ 下均已存在(改名提交已迁移),替换后 import 有效。

【资料变更】

README.md 内错误信息文本随仓名同步(见上表)。

【接口变更】

不涉及

【功能验证】

  • 4 个 Python 文件 py_compile 通过;shell 脚本 bash -n 通过
  • 替换后 benchmarks/ 下 grep -rn torchao_npu 无残留
  • 被引用的 torchao_ascend/features/training/hifloat8/ 模块在 main 上均存在

【CheckList】

likedislike
Pull Request has been successfully merged by ascend-robot.
(Thank you for pengpeng7872's contribution.)
pengpeng7872pengpeng7872
2 days ago Created pull request, commit a313b2e5
pengpeng7872pengpeng7872
2 days ago Associated issue: [Bug]: benchmarks 下 6 个文件仍引用旧包名 torchao_npu(改名 8837ea3 遗漏)
pengpeng7872
pengpeng7872
2 days ago Comments:

compile

likedislike
pengpeng7872pengpeng7872
2 days ago Pre merge succeeded (commit_id: 0b86d16e53862c1884efea1fd27ae4a422b101b2)
ascend-robotascend-robotCollaborators
2 days ago Added label: ascend-cla/yes
ascend-robot
ascend-robotCollaborators
2 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
repo-Ascend/torchao-ascend ✅ wanglijun55, liangsongwei (2/2) ✅ wanglijun55, liangsongwei (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
AtlasAccountAtlasAccountCollaborators
2 days ago Added label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
2 days ago Removed label: ci-pipeline-running
AtlasAccountAtlasAccountCollaborators
2 days ago Added label: ci-pipeline-failed
AtlasAccountAtlasAccountCollaborators
2 days ago Removed label: ci-pipeline-failed
AtlasAccountAtlasAccountCollaborators
2 days ago Added label: ci-pipeline-passed
AtlasAccount
AtlasAccountCollaborators
2 days ago Comments:
流水线 PR-pipeline_torchao_npu#293 [ commitID:732bc825 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 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
wanglijun55
wanglijun55Collaborators
2 days ago Comments:

/approve

likedislike
ascend-robotascend-robotCollaborators
2 days ago Added label: approved
梁松伟
梁松伟Collaborators
2 days ago Comments:

/approve

likedislike
ascend-robotascend-robotCollaborators
2 days ago Added label: lgtm
ascend-robotascend-robotCollaborators
2 days ago Merged pull request