已合并
【fix】add_models_patch #32864
【fix】add_models_patch #32864
已合并
Lu_G创建于 4月1日
Lu_G成员
4月1日

【合入来源】

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

【修改方案】

新增3张torchbench网络,其中针对speech-transformer进行patch,确保npu图模式可以跑通;
修复部分场景下aclgraph模式使能失效的问题;
修复nvidia_deeprecommender误走入triton的问题;

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

【CheckList】

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

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 Lu_G 的贡献)
LLu_G成员
4月1日 创建了 pull request,commit 2f53e60d
ascend-robot
ascend-robot成员
4月1日 评论:

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
repo-Ascend/pytorch wangmin0104, 李晶 (2/2) 李晶 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
4月1日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员4月1日进行代码检视1
benchmarks/npu_support.py
已过期
@@ -588,0 +635,4 @@
635+ nn.init.normal_(self.w_ks.weight, mean=0, std=np.sqrt(2.0 / (d_model + d_k)))
636+ nn.init.normal_(self.w_vs.weight, mean=0, std=np.sqrt(2.0 / (d_model + d_v)))
637+ 
638+ # fix two different devices npu, cpu
ascend-robot
ascend-robot4月1日评论:
注释与文档问题: 在_patch_model_20函数中,new_init方法里有一行注释:'# fix two different devices npu, cpu',但注释与代码的实际内容不符。代码是设置self.temperature = d_k ** 0.5,这与设备无关。这个注释可能是错误的或者放错了位置。正确的注释应该解释为什么需要重新实现__init__方法,或者说明与原始实现的差异。
问题类型: 注释与文档问题
文件路径: benchmarks/npu_support.py
行号: 638
问题代码:
        # fix two different devices npu, cpu
        self.temperature = d_k ** 0.5
修改建议:
修正注释以准确描述代码意图。如果确实是为了修复设备问题,应该解释具体是什么问题以及如何修复。如果注释放错了位置,应该将其移到正确的位置或删除。
---
此评论由代码审查工具自动生成
likedislike
此处折叠了50条消息 查看更多
ascend-robotascend-robot成员
4月3日 添加了label:approved
wangmin0104
wangmin0104成员
4月3日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
4月3日 添加了label:lgtm
ascend-robot
ascend-robot成员
4月3日 评论:

Review Guide

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

likedislike
ascend-robotascend-robot成员
4月3日 合入了pull request