已关闭
[CI][CT][全量]2.7.0.B070 300iduo后端matmul后融合算子特性问题 #108
chenyi创建于  2025年7月17日关闭于  2025年7月25日
chenyi
chenyi成员
2025年7月17日 创建

1.Describe the current behavior / 问题描述 (Mandatory / 必填)

2.7.0.B070 300iduo后端matmul后融合算子特性问题:
1、test_infer_fusion_matmulelemwise_m16_k1024_n160_fp16_transa_t_transb_t精度不达标
2、parttern2/3 quant算子未融合
3、异常场景未报错

2.Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment / 硬件环境(Mandatory / 必填):
    Hardware (e.g.Ascend910B1/Mac CPU)

    样例:

后端类型 硬件具体类别
Ascend 300IDUO
  • Software Environment / 软件环境 (Mandatory / 必填):
    迭代版本新增问题样例:(根据实际修改和增删)
Software Version(根据实际修改,必填)
MindSpore MindSpore 2.7.0.B070 (失败)
CANN Milan_C22/20250703_atlas(失败)
Python Python 3.10.2
OS platform eulerosv2r10.aarch64

3.Related testcase / 关联用例 (Mandatory / 必填)

  • Testcase Name/ 用例名 (Mandatory / 必填):
    -- Testcase Name(e.g.test_mf_llama_7b_wiki4096_train_cell_dp1mp4pp4mb4_910_16p_0005): *
    test_infer_fusion_matmulelemwise_m16_k1024_n160_fp16_transa_t_transb_t
    test_infer_fusion_gatedffn_pattern_2_m511_k1024_n16_silu_i0_quant
    test_infer_fusion_gatedffn_pattern_3_m1_k1024_n160_silu_i0_quant
    test_infer_fusion_gatedffn_pattern_2_quant_dynamic_shape_001
    test_infer_fusion_gatedffn_pattern_3_quant_dynamic_shape_001
    test_infer_fusion_gatedffn_pattern_2_quant_performence_001
    test_infer_fusion_gatedffn_pattern_3_quant_performence_001
    test_infer_fusion_matmulelemwise_x_float32
    test_infer_fusion_gatedffn_pattern_2_n15
    test_infer_fusion_gatedffn_pattern_3_n3
  • Excute Mode / 执行模式 (Mandatory / 必填):
    -- Excute Mode(e.g., Graph\PyNative): *
    -- Excute Mode(e.g., O0\O1\O2):O*
  • 数据集名字和路径 (Mandatory / 选填):
  • 权重文件名字和路径 (Mandatory / 选填):

4.Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

测试步骤:来自文本用例
用例执行命令:

涉及10个失败用例

1.下载测试仓
git clone -b master https://szv-y.codehub.huawei.com/MindSpore-enterprise/MindSpore-test/MindSporeTest.git

2.设置环境变量

source /home/ci/miniconda3/bin/activate ci3.10
export CONTEXT_MODE='GRAPH_MODE'
export CONTEXT_JIT_LEVEL=O0
export CONTEXT_DEVICE_TARGET=Ascend
source /usr/local/Ascend/ascend-toolkit/set_env.sh

3.进入用例目录
cd MindSporeTest/operations

4.执行用例,执行命令如下(涉及10个失败用例):

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_matmulelemwise_m16_k1024_n160_fp16_transa_t_transb_t

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_3_m1_k1024_n160_silu_i0_quant

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_matmulelemwise_x_float32

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_2_n15

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_3_n3

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_2_quant_dynamic_shape_001

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_3_quant_dynamic_shape_001

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_2_quant_performence_001

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_3_quant_performence_001

pytest -sv --disable-warnings test_infer_matmul_post_fusion_310p.py::test_infer_fusion_gatedffn_pattern_2_m511_k1024_n16_silu_i0_quant

5.Describe the expected behavior / 预期结果 (Mandatory / 必填)

【预期结果】:用例执行pass

6.Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

报错关键日志截图:
输入图片说明
输入图片说明

7.Special notes for this issue/备注 (Optional / 选填)

**【定位人】**吴某某(根据实际修改)

likedislike
chenyichenyi成员
2025年7月17日 添加了问题后端类型的 Ascend 选项
此处折叠了6条事件消息 查看更多
chenyichenyi成员
2025年7月17日 创建了Bug-Report
司小南(机器人)
司小南(机器人)成员
2025年7月17日 评论:

请参考以下典型优秀案例进行问题单根因分析,如未按此模板进行根因分析,转回归会被打回,更多问题单规范请参看https://e.gitee.com/mind_spore/docs/2489468/file/5767947?sub_id=11382313&scope=undefined

Appearance & Root Cause
问题:pangu_sigma2.3编译耗时优化未达预期
根因:
1、 2.3上某些pass相比于2.2版本的实现,存在性能劣化
2、 2.3版本把trace功能下掉了,导致前端编译劣化

Fix Solution
1、修复性能劣化的前端图优化pass
2、通过支持boost infer功能把trace功能下掉导致的性能劣化拿回来

Fix Description & Test Suggestion
https://gitee.com/mindspore/mindspore/pulls/70920 PR合入后daily包回归
测试建议:该问题可以通过特性用例防护,增加****场景。

Self-test Report & DT Review
目前前后端耗时在12分钟以内。
是否需要补充 ST/UT:否 如果选择否,请补充理由
原因:非基本功能问题

Introduction Analysis
引入类型:特性合入引入 / Bugfix修复引入 / 测试新增测试场景 / 测试漏测 / 用例未适配 / 环境问题 / CANN升级
引入PR:https://e.gitee.com/mind_spore/repos/mindspore/mindspore/pulls/xxx
PR合入时间:年/月/日
问题是否偶现:是/否

likedislike
chenyichenyi成员
2025年7月18日 修改了描述
chenyichenyi成员
2025年7月18日 添加协作者yonibaehr
chenyichenyi成员
2025年7月18日 添加协作者ehaleva
chenyichenyi成员
2025年7月18日 修改了描述
fangwenyifangwenyi成员
2025年7月18日 将里程碑从 B-SIG-Infer 修改为B-SIG-InferOps
zhengzuohe
zhengzuohe
2025年7月25日 评论:

Appearance & Root Cause
问题:未融合&精度不达标,异常场景不报错问题修改测试用例后已恢复
根因:QMatmulSplitSiluMulOut1融合pass生成新算子节点的输入个数有误,导致输入的dtype顺序错误,算子注册失败

Fix Solution
1、修复融合算子的yaml定义及算子输入顺序,使其正确匹配与注册

Fix Description & Test Suggestion
https://gitee.com/mindspore/mindspore/pulls/87655
https://gitee.com/mindspore/mindspore/pulls/87735 PR合入后daily包回归
http://mindspore-pkg.csi.rnd.huawei.com/OpenSource/Daily/Version/202507/0724/mindspore/master_20250724010022_8ce28989886556289c8c117260c95cda25fef603/unified/aarch64/
测试建议:正常看护

Self-test Report & DT Review
输入图片说明
是否需要补充 ST/UT:否
原因:DT在算子库用例中看护,ms主线门禁没有相应硬件的环境

Introduction Analysis
引入类型:特性合入引入
引入PR:https://gitee.com/mindspore/mindspore/pulls/86633
PR合入时间:2025年/7月/9日
问题是否偶现:否

likedislike
zhengzuohezhengzuohe
2025年7月25日 将状态从 TODO 修改为VALIDATION
此处折叠了8条事件消息 查看更多
zhengzuohezhengzuohe
2025年7月25日 将里程碑从 B-SIG-InferOps 修改为B-ComponentTest
chenyi
chenyi成员
2025年7月25日 评论:

回归时间:20250725
回归版本:
CANN 版本:Milan_C22/20250710_atlas
MindSpore 版本:master_20250724010022_8ce28989886
回归步骤:
执行成功结果:
输入图片说明
回归结论:同意关闭

likedislike
chenyichenyi成员
2025年7月25日 将状态从 VALIDATION 修改为DONE
此处折叠了5条事件消息 查看更多
AAtomGit-Bot
2025年12月14日 关联了看板:MindSpore Bug Tracking System