已开启
【TorchNPU众测】众测任务1+任务2交付件 (Aimermo) #32
【TorchNPU众测】众测任务1+任务2交付件 (Aimermo) #32
已开启
Aimermo创建于 15 天前
Aimermo
15 天前

环境

项目 内容
硬件 Atlas 800T,Ascend 910 × 2
OS Ubuntu 22.04,aarch64
Python 3.12.13
PyTorch 2.9.0+cpu
TorchNPU 2.9.0.post6
CANN 9.1.0
Triton-Ascend 3.2.2
attrs 24.2.0

任务1:安装与快速入门

  • 软件安装版本与导入验证;
  • 严格参考官方快速入门,使用MNIST、官方CNN结构、batch_size=64、10个Epoch;
  • 保留cuda:0写法,通过torch_npu.contrib.transfer_to_npu自动迁移;
  • 使用torch_npu.npu.amp混合精度;
  • 训练完成后生成checkpoint.pth.tar。

任务2:torch.compile体验与实践

测试模型:torch_multimodal_clip(CLIP ViT-B/32)。

  • Guard Filter:6个改写示例;
  • 编译后端:Inductor-Triton、Inductor-MLIR、Inductor-DVM、NPUGraphs、NPUGraph_EX、AOT_Eager、TorchAir-GE;
  • 共13个正式改写脚本;
  • common_clip.py和guard_common.py为公共运行代码,需随目录提交。

Issue

Issue 说明
https://gitcode.com/Ascend/pytorch/issues/4857 Triton-Ascend 3.2.2安装文档缺少Python 3.12与TorchNPU 2.9.0配套说明
https://gitcode.com/Ascend/pytorch/issues/4856 2.9.0环境中Guard Filter过滤运行时状态后仍触发重编译
likedislike
合并受阻
ascend-robotascend-robot成员
15 天前 添加了label:ascend-cla/no
ascend-robot
ascend-robot成员
15 天前 评论:

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

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
repo-Ascend/pytorch-ecosystem ❌ (0/2)(You can also ask: linhan37, qianxiyue, helixing, ltllt1, TaroKK) ❌ (0/1)(You can also ask: huangjingwei, zyw-hw, yi_jiabin, TaroKK, qianxiyue)

💡 Tip:

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

CLA Signature Pass

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

likedislike
AAimermo
15 天前 设置为草稿状态
AAimermo
15 天前 取消了草稿状态
Aimermo
15 天前 评论:

/check-cla

likedislike
ascend-robotascend-robot成员
15 天前 删除了label:ascend-cla/no
ascend-robotascend-robot成员
15 天前 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
15 天前 评论:

CLA检查已通过,详情可参考这里

likedislike
AAimermo
15 天前 修改了pull request 的描述
此处折叠了7条事件消息 查看更多
AAimermo
13 天前 修改了pull request 的描述
yi_jiabin成员
7 天前 评论:

材料审核存在以下问题,请尽快修复:
1、任务1 链接交付件:交付件的链接没有填写。
2、任务2 ①Guard Filter/示例2/示例3:guard_common.py 与 common_clip.py 未提交且 raw 地址为 404;示例2/3截图明确失败。
3、任务2 ⑧TorchAir-GE/性能对比截图/正确性截图:入口依赖缺失;正确性截图为 traceback,性能截图缺失。

likedislike
LDW
LDW
5 天前 评论:

尊敬的开发者,您的交付件目前还有以下问题需要改进:

(1)任务1 - 链接交付件:交付件的链接尚未填写,请补充。

(2)目前还需您填写一份额外的问卷。第二份问卷的相关通知请在众测任务大群查看。

Issue:
有效 issue 数量:当前仅 1 个,未达到"至少 2 个有效 issue"的要求,请重新提交至少 1 个有效 issue。
(1) https://gitcode.com/Ascend/pytorch/issues/4856 :该问题与 issue #4767 重复,提交前请先确认是否已有相同的 issue。

likedislike
Aimermo
22 小时前 评论:
AAimermo
21 小时前 推送  7 个提交:b624f4da-fix: complete torch compile delivery dependencies and links,dcbc6559-docs: clarify Python and TorchNPU version prerequisites,64f8dc03-fix: correct Guard Filter example 3 and delivery links,02b421f6-fix: add complete correctness and timing output,15e50463-docs: document activated CANN and TorchAir runtime setup,f5781a52-docs: correct TorchAir entry verification command,6695bf19-!1 merge fix/torch-npu-delivery-review into master
ascend-robotascend-robot成员
21 小时前 删除了label:ascend-cla/yes
ascend-robotascend-robot成员
21 小时前 添加了label:ascend-cla/no
Aimermo
21 小时前 评论:

/check-cla

likedislike
ascend-robot
ascend-robot成员
21 小时前 评论:

CLA检查未通过,详情可参考这里

likedislike
Aimermo
21 小时前 评论:

/check-cla

likedislike
ascend-robot
ascend-robot成员
21 小时前 评论:

CLA检查未通过,详情可参考这里

likedislike
Aimermo
21 小时前 评论:

/check-cla

likedislike
ascend-robot
ascend-robot成员
21 小时前 评论:

CLA检查未通过,详情可参考这里

likedislike
AAimermo
21 小时前 强制推送  2 个提交:46f78777-docs: update Aimermo compile verification evidence,8d2a14db-docs: update Aimermo delivery links
ascend-robotascend-robot成员
21 小时前 删除了label:ascend-cla/no
ascend-robotascend-robot成员
21 小时前 添加了label:ascend-cla/yes
Aimermo
21 小时前 评论:

/check-cla

likedislike
ascend-robotascend-robot成员
21 小时前 删除了label:ascend-cla/yes
ascend-robotascend-robot成员
21 小时前 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
21 小时前 评论:

CLA检查已通过,详情可参考这里

likedislike