已合并
test: verify community 2.11.0 features and fixes #36311
test: verify community 2.11.0 features and fixes #36311
已合并
kuhn7创建于 5月21日
kuhn7成员
5月21日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

PyTorch 社区新增特性和bugfix,需要基于torch_npu进行验证,运行torch_npu或社区用例,保障功能正常运行。

【资料变更】

不涉及

【接口变更】

不涉及

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 kuhn7 的贡献)
Kkuhn7成员
5月21日 创建了 pull request,commit b8df28be
Kkuhn7成员
5月21日 关联了issue:【分布式】社区2.11.0版本特性和修复验证
ascend-robot
ascend-robot成员
5月21日 评论:

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


PR Approval Progress

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

Module Approval Details

module lgtm status approve status
test kisnwang, renyujin (2/2) renyujin (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
5月21日 添加了label:ascend-cla/yes
kuhn7成员
5月21日 评论:

compile

likedislike
ascend-robot
ascend-robot成员
5月21日 评论:

当前仓库存在以下 保护分支

Protected Branch Version Release
master
v2.10.0
v2.7.1
v2.9.0
v2.11.0
v2.12.0

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
ascend-robot
ascend-robot成员
5月21日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月21日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月21日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-success
ascend-robot
ascend-robot成员
5月21日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月21日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月21日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月21日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-success
atomgit-bot
atomgit-bot
5月21日 评论:

代码审查

5 个文件的新增测试代码整体质量可接受,发现 1 个高严重度编译级 bug(current_accelerator(True) 参数错误)和若干中等/低严重度问题(死代码、拼写错误、MRO 反模式)

类型 数量
🔴 阻塞 1 处
🟡 建议 0 处

⛔ 需要修改

likedislike
atomgit-bot
atomgit-bot5月21日进行代码检视1
test/distributed/test_functional_differentials.py
@@ -0,0 +48,4 @@
48+ finally:
49+ torch.distributed.destroy_process_group()
50+ 
51+ return wrapper
atomgit-bot
atomgit-bot5月21日评论:

🟠 High Priority

代码库中所有其他调用均为 current_accelerator() 无参数形式(见 test_pg_wrapper.py:28、test_accelerator.py:22 等)。PyTorch 标准 API 签名为 current_accelerator(device=None),传入布尔值 True 不是有效的 device 参数。该行在模块顶层执行,NPU 可用时将直接触发 TypeError,导致整个测试文件无法导入运行。

同一段代码其他问题

likedislike
Kkuhn7成员
5月21日 解决了最后一个问题
kuhn7成员
5月21日 评论:

compile

likedislike
ascend-robotascend-robot成员
5月21日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
5月21日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
5月21日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
5月21日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
5月21日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
5月21日 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
5月21日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
5月21日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
5月21日 评论:
流水线 PR-pipeline_pytorch#24541 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 >>>
UT_DIST_ARM_Part_02 >>>
UT_DIST_ARM_Part_03 >>>
UT_DIST_ARM_Part_04 >>>
流水线 PR-pipeline_pytorch >>>
此流水线已支持下列评论快捷指令,仅PR创建者评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
renyujin成员
5月21日 评论:

/lgtm

likedislike
kisnwang成员
5月21日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
5月21日 添加了label:lgtm
renyujin成员
5月21日 评论:

/approve

likedislike
ascend-robotascend-robot成员
5月21日 添加了label:approved
ascend-robot
ascend-robot成员
5月21日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: renyujin.
Reviewers who wrote a comment of /lgtm are: renyujin, kisnwang.

likedislike
ascend-robotascend-robot成员
5月21日 合入了pull request