已合并
test(distributed/checkpoint): Add StorageWriter storage_meta API tests #35076
Jwerr创建于 5月8日
test(distributed/checkpoint): Add StorageWriter storage_meta API tests #35076
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 Jwerr 的贡献)ascend-robot
5月8日 评论:
5月8日 评论:
ascend-robot
5月8日 评论:
5月8日 评论:
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 | ✅ 李伟, sunyu-xuan (2/2) | ✅ 李伟 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Jwerr, thanks for your pull request. All authors of the commits have signed the CLA. 👍


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


此处折叠了220条消息 查看更多
sunyu-xuan
5月12日 评论:
5月12日 评论:
/lgtm


5月12日 添加了label:approvedlgtm
ascend-robot
5月12日 评论:
5月12日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: 李伟.
Reviewers who wrote a comment of /lgtm are: sunyu-xuan, 李伟.


5月12日 合入了pull request
【合入来源】
关联 Issue:#1895
PyTorch 社区缺少对
torch.distributed.checkpoint.StorageWriter.storage_meta(实际类路径:torch.distributed.checkpoint.storage.StorageWriter.storage_meta)的直接 API 级测试,且未覆盖 NPU。本 PR 在test/distributed/checkpoint/test_StorageWriter_api.py补齐单卡 + 多卡 NPU 用例。【修改方案】
一、API功能说明
二、测试文件 test_StorageWriter_api.py 验证内容
三、NPU适配
【资料变更】
不涉及
【接口变更】
不涉及
【功能验证】
在2.7.1 2.9.0 2.10.0 2.11.0 2.12.0以及master版本上执行该用例,均通过,本分支对应2.10.0日志(完整版在评论区)如下:
【CheckList】