| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
test: verify community 2.12.0 features and fixes master Co-authored-by: Chansinging<1183520536@qq.com> # message auto-generated for no-merge-commit merge: !37510 merge verify-master-v2.12.0 into master test: verify community 2.12.0 features and fixes master Created-by: chansinging Commit-by: Chansinging Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 - [x] 需求 [版本验证](https://gitcode.com/Ascend/pytorch/issues/2229) - [ ] 问题单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 社区演进,继承新接口和方法 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】      # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!37510 | 4 个月前 | |
| 2 年前 | ||
[master]fix dropout Co-authored-by: DaiFu<daifu2@huawei.com> # message auto-generated for no-merge-commit merge: !30017 merge 2601dropout into master [master]fix dropout Created-by: daifu1234567 Commit-by: DaiFu Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!30017 | 8 个月前 | |
| 2 年前 | ||
[test] verify NPU DTensor fixes for #179203 and #187933 Co-authored-by: Jiayi_Meng<mengjiayi5@huawei.com> # message auto-generated for no-merge-commit merge: !46841 merge test/dtensor-179203-187933 into master [test] verify NPU DTensor fixes for #179203 and #187933 Created-by: Jiayi_Meng Commit-by: Jiayi_Meng Merged-by: ascend-robot Description: 关联 Issue:[Ascend/pytorch#3815](https://gitcode.com/Ascend/pytorch/issues/3815) # 【合入来源】 - [x] 需求 - 补充社区 PR #179203 和 #187933 对应的 NPU DTensor 回归测试。 - [x] 问题单 - 关联 Issue:[Ascend/pytorch#3815](https://gitcode.com/Ascend/pytorch/issues/3815) - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 - 在 test/distributed/tensor/test_math_ops.py 中: - 增加 Partial 和 SupportedDevices 导入。 - 增加 test_nll_loss_weighted_mean_with_even_target_counts,覆盖输入分片、target/weight 副本场景下的加权 mean NLLLoss。 - 增加 test_foreach_max_sharded,校验分片 DTensor 执行 torch._foreach_max 后的 Partial("max") placement 及完整结果。 - 在 test/distributed/_tensor/test_init.py 中: - 从 torch.distributed.tensor 导入 linspace 和 logspace。 - 增加 test_linspace 和 test_logspace,覆盖 Replicate() / Shard(0)、默认及显式 dtype、steps=0/1、逆序区间、DTensor 标量 start/end 及非法非标量输入。 - linspace 显式 dtype 保持 torch.float64。 - logspace 显式 dtype 使用 torch.float32,适配 aclnnLogSpace 不支持 float64 的限制。 # 【资料变更】 不涉及。 # 【接口变更】 不涉及。本 PR 仅补充测试用例。 # 【功能验证】       # 【CheckList】 > PR 提交人对以下 CheckList 自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]。 - [x] 改动仅涉及两个目标测试文件,未引入构建产物或无关文件。 - [x] 新增多卡测试复用现有 NPU DTensor / HCCL 测试框架。 - [x] PR 标题使用 test 类型标签。 - [x] 已关联 Issue:[Ascend/pytorch#5037](https://gitcode.com/Ascend/pytorch/issues/5037)。 - [x] 本地差异检查和目标测试验证通过。 - [ ] PR 持续集成流水线执行通过。 See merge request: Ascend/pytorch!46841 | 26 天前 | |
| 2 年前 | ||
refactor dtensor rules Co-authored-by: kisnwang<wangkaisheng2@huawei.com> # message auto-generated for no-merge-commit merge: !34096 merge master into master refactor dtensor rules Created-by: kisnwang Commit-by: kisnwang Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [ ] issue/工单 - [x] 重构优化 [#1743](https://gitcode.com/Ascend/pytorch/issues/1743) - [ ] 资料更新 # 【修改方案】 自定义算子注册与社区对齐,删除utils/dtensor.py # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 适配UT测试用例看护 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!34096 | 5 个月前 | |
test: verify community 2.11.0 features and fixes Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !36312 merge master_verify_distributed into master test: verify community 2.11.0 features and fixes Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [x] 需求 [【分布式】社区2.11.0版本特性和修复验证](https://gitcode.com/Ascend/pytorch/issues/2025) - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 PyTorch 社区新增特性和bugfix,需要基于torch_npu进行验证,运行torch_npu或社区用例,保障功能正常运行。 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!36312 | 4 个月前 | |
Skip failing torch official TestCase tests and disable unsupported test cases Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> Co-authored-by: yuhaiyan8<yuhaiyan8@h-partners.com> # message auto-generated for no-merge-commit merge: !32140 merge cherry-pick-mr-32139-1774073503832-auto into master Skip failing torch official TestCase tests and disable unsupported test cases Created-by: yuhaiyan Commit-by: yuhaiyan;yuhaiyan8 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. 暂时跳过失败用例 2. 已提单跟进修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!32140 | 6 个月前 | |
test: verify community 2.12.0 features and fixes master Co-authored-by: Chansinging<1183520536@qq.com> # message auto-generated for no-merge-commit merge: !37510 merge verify-master-v2.12.0 into master test: verify community 2.12.0 features and fixes master Created-by: chansinging Commit-by: Chansinging Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 - [x] 需求 [版本验证](https://gitcode.com/Ascend/pytorch/issues/2229) - [ ] 问题单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 社区演进,继承新接口和方法 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】      # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!37510 | 4 个月前 | |
| 2 年前 | ||
【API一致性任务】test: add Partial placement test for compute_local_shape_and_global_offset Co-authored-by: litianyu2026<1483211810@qq.com> # message auto-generated for no-merge-commit merge: !45656 merge test-compute-local-shape-master into master 【API一致性任务】test: add Partial placement test for compute_local_shape_and_global_offset Created-by: litianyu_2026 Commit-by: litianyu2026 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">https://gitcode.com/Ascend/pytorch-ecosystem/issues/326</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) 1. **API 功能说明**: torch.distributed.tensor._utils.compute_local_shape_and_global_offset 是 DTensor 模块下一个纯 Python 实现的内部元数据工具函数。其功能为:给定全局张量的形状、设备网格(DeviceMesh)以及放置策略(placements),计算并推导出当前 rank 对应的局部张量形状(local_shape)以及该数据块在全局张量中的绝对偏移量(global_offset)。 2. **新增测试用例的原因**:经排查 PyTorch 原生测试代码,官方原有的 1D 和 2D 测试用例中仅覆盖了 Shard(切分)和 Replicate(复制)策略,**客观上遗漏了对另一合法核心策略 Partial(部分状态)的入参验证**。为了保证该 API 在 NPU 环境下的参数完备性与逻辑全覆盖,必须进行用例补齐。 3. **实现细节**:新增 test_compute_local_shape_and_global_offset_partial 测试用例,显式导入 Partial 策略类,并断言验证其推导结果:在 Partial 策略下,局部张量尺寸未发生物理切分(保持等于全局尺寸),且全局偏移坐标全为 0。 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及。 **原因说明**:本次测试的目标接口 torch.distributed.tensor._utils.compute_local_shape_and_global_offset 属于带有 _utils 前缀的内部私有 API。上游 PyTorch 官方未对其开放公开的原生独立文档(仅在 Shard API 的 Note 中作为对照参考提及)。且该 API 逻辑为纯 Python 的坐标数学推导,不涉及 NPU 底层内存操作或算子调用,无特殊硬件约束,故不涉及对外公开资料的编写与变更。 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” 不涉及。本次提交仅为纯测试层面的用例补充。 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 **测试场景与方法**:在分布式环境下(世界大小为 8),测试传入 Partial 策略时的尺寸和偏移量推导是否正确。 **执行步骤**: bash python test_utils.py -v -k test_compute_local_shape_and_global_offset_partial 测试结果:8 个通信进程均正常计算完毕并匹配正确断言,结果为 OK。 910B3的4卡测试自验证截图,无A5多卡环境,无法验证A5支持情况,不再进行A5多卡验证测试:  # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!45656 | 1 个月前 | |
refactor dtensor rules Co-authored-by: kisnwang<wangkaisheng2@huawei.com> # message auto-generated for no-merge-commit merge: !34096 merge master into master refactor dtensor rules Created-by: kisnwang Commit-by: kisnwang Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [ ] issue/工单 - [x] 重构优化 [#1743](https://gitcode.com/Ascend/pytorch/issues/1743) - [ ] 资料更新 # 【修改方案】 自定义算子注册与社区对齐,删除utils/dtensor.py # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 适配UT测试用例看护 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!34096 | 5 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 4 个月前 | ||
| 2 年前 | ||
| 8 个月前 | ||
| 2 年前 | ||
| 26 天前 | ||
| 2 年前 | ||
| 5 个月前 | ||
| 4 个月前 | ||
| 6 个月前 | ||
| 4 个月前 | ||
| 2 年前 | ||
| 1 个月前 | ||
| 5 个月前 |