已关闭
[Bug]: KvRmsNormRopeCahce算子新增tensor v参数,入图模式调用PTA,v参数丢失,tiling中找不到 #180
hjxbbbb创建于  2025年11月18日关闭于  2025年11月19日
hjxbbbb
hjxbbbb
2025年11月18日 创建

在提交问题之前,请通过搜索现有和历史问题确保该问题尚未被提出并解决。

您的环境信息

-- Pytorch/Torch_npu 版本 (e.g., v2.5.1, v2.5.1):
-- Python 版本 (e.g., Python 3.11):

🐛 请描述bug

image.png torchair文件改动,新增入参 v
image.png,入图模式调用:image.png,tiling阶段由于找不到v,报错。

likedislike
gleaming-spark成员
2025年11月18日 评论:

按照以下操作dump一下pbtxt图,看下图中算子是否有相应的入参。
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/torchairuseguide/torchair_00012.html

likedislike
hjxbbbb
hjxbbbb
2025年11月18日 评论:

按照以下操作dump一下pbtxt图,看下图中算子是否有相应的入参。
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/torchairuseguide/torchair_00012.html

@gleaming-spark

image.png看起来是有的,但是v的顺序看起来有点奇怪,因为v应该在最后一个image.png

likedislike
hjxbbbb
hjxbbbb
2025年11月18日 评论:

按照以下操作dump一下pbtxt图,看下图中算子是否有相应的入参。
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/torchairuseguide/torchair_00012.html

@gleaming-spark

image.png看起来是有的,但是v的顺序看起来有点奇怪,因为v应该在最后一个image.png

@hjxbbbb

入参顺序是倒着的,且有的可选输入参数没有输入,但是没有置为None,这是否不合理?image.png

likedislike
hjxbbbb
hjxbbbb
2025年11月18日 评论:

按照以下操作dump一下pbtxt图,看下图中算子是否有相应的入参。
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/torchairuseguide/torchair_00012.html

@gleaming-spark

image.png

likedislike
gleaming-spark成员
2025年11月19日 评论:

按照以下操作dump一下pbtxt图,看下图中算子是否有相应的入参。
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/torchairuseguide/torchair_00012.html

@gleaming-spark

image.png

@hjxbbbb

图中已经有对应的入参了,建议检查一下算子实现、GE算子配置等。

likedislike
hjxbbbbhjxbbbb
2025年11月19日 issue状态由 TODO 改变为 DONE
hjxbbbbhjxbbbb
2025年11月19日 关闭了 issue
hjxbbbb
hjxbbbb
2025年11月19日 评论:

本算子需要canndev nn-dev联合构建CANN包,未找到新增可选输入tensor v的根因是canndev上REG_OP未做适配(只适配了nn-dev),且算子本体的infershape有问题(编码问题)。

likedislike