已合并
[feat] Add disable_tensor_unsafe_check option to restart_device #36164
一只食醉狗创建于 5月20日
[feat] Add disable_tensor_unsafe_check option to restart_device #36164
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 一只食醉狗 的贡献)ascend-robot
5月20日 评论:
5月20日 评论:
ascend-robot
5月20日 评论:
5月20日 评论:
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 | ✅ liujunzhu, hbhu_bin (2/2) | ✅ liujunzhu (1/1) |
| torch_npu/npu | ✅ liujunzhu, hbhu_bin (2/2) | ✅ liujunzhu (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
LiNuohang, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月20日 添加了label:ascend-cla/yes
ascend-robot
5月20日 评论:
5月20日 评论:
当前仓库存在以下 保护分支 :
| Protected Branch | Version | Release |
|---|---|---|
| master | ||
| v2.10.0 | ||
| v2.11.0 | ||
| v2.7.1 | ||
| v2.9.0 | ||
| v2.12.0 |
评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作
注意:
- /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
- 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭


ascend-robot
5月20日 评论:
5月20日 评论:
Ascend docs pipeline is running...


5月20日 添加了label:docs-ci-pipeline-running
ascend-robot
5月20日 评论:
5月20日 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


5月20日 删除了label:docs-ci-pipeline-running
5月20日 添加了label:docs-ci-pipeline-success
ascend-robot
5月20日 评论:
5月20日 评论:
Ascend docs pipeline is running...


5月20日 删除了label:docs-ci-pipeline-success
5月20日 添加了label:docs-ci-pipeline-running
ascend-robot
5月20日 评论:
5月20日 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


5月20日 删除了label:docs-ci-pipeline-running
此处折叠了7条事件消息 查看更多
5月20日 添加了label:ci-pipeline-failed
ascend-robot
5月20日 评论:
5月20日 评论:
流水线 PR-pipeline_pytorch#23973 (重试第1次) [ commitID:cf43cd2f ] 运行失败
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | 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 | ❌ | >>> |


5月20日 删除了label:ci-pipeline-failed
5月20日 添加了label:ci-pipeline-running
ascend-robot
5月20日 评论:
5月20日 评论:
Ascend docs pipeline is running...


5月20日 删除了label:docs-ci-pipeline-success
5月20日 添加了label:docs-ci-pipeline-running
ascend-robot
5月20日 评论:
5月20日 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


5月20日 删除了label:docs-ci-pipeline-running
5月20日 添加了label:docs-ci-pipeline-success
ascend-robot
5月20日 评论:
5月20日 评论:
5月20日 删除了label:ci-pipeline-running
5月20日 添加了label:ci-pipeline-passed
ascend-robot
5月20日 评论:
5月20日 评论:
流水线 PR-pipeline_pytorch#24065 已完成
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | 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 | ✅ | >>> |


ascend-robot
5月20日 评论:
5月20日 评论:
liujunzhu
5月20日 评论:
5月20日 评论:
/approve


5月20日 添加了label:approvedlgtm
ascend-robot
5月20日 评论:
5月20日 评论:
5月20日 合入了pull request
【合入来源】
【修改方案】
需求背景:
推理场景,不需要更新权重数据,因此发生uce故障时,存在只做流恢复,不需要做数据标脏和恢复的场景。当前快恢流恢复和数据标脏通过同一个配置项rebuild_all_resources控制,导致该场景无法使用,需要为数据标脏单独增加配置项。
当前现状:
当前快恢流恢复和数据标脏通过同一个配置项rebuild_all_resources控制
具体设计方案:
描述:restart_device接口增加disable_tensor_unsafe_check开关,用于单独控制是否对数据做标脏处理
为保证兼容性,默认为False,且仅在rebuild_all_resource为True时生效,即:
rebuild_all_resources = True, disable_tensor_unsafe_check = True, 不做数据标脏
rebuild_all_resources = True, disable_tensor_unsafe_check= False, 做数据标脏
rebuild_all_resources = False, disable_tensor_unsafe_check= True, 不做数据标脏
rebuild_all_resources = False, disable_tensor_unsafe_check= False, 不做数据标脏
【资料变更】
restart_device接口增加disable_tensor_unsafe_check开关
【接口变更】
restart_device接口增加disable_tensor_unsafe_check开关
【功能验证】
已新增UT
【CheckList】