已关闭
[Bug-Report|缺陷反馈]: DequantSwigluQuantV2算子AICORE_ERROR #4712
zhengyuchuan2024创建于 8月11日关闭于 8月11日
zhengyuchuan2024
8月11日 评论:
8月11日 评论:
/assign


8月11日 将 zhengyuchuan2024 设为负责人
8月11日 关联了pull request:修复DequantSwigluQuantV2算子AICORE_ERROR问题
8月11日 关闭了 issue
8月11日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
DequantSwigluQuantV2算子运行nlast场景用例,会发生UB越界,导致AICORE_ERROR
Environment / 环境信息 (Mandatory / 必填)
Ascend950
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
按步骤在950环境运行问题用例,即可复现问题。
Describe the expected behavior / 预期结果 (Mandatory / 必填)
用例正常通过
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
在 dequant_swiglu_quant_nlast.h 内核文件中,多处 tmpXPtr 的偏移量使用了 xLastAlign_,但在数据类型变换(如 BF16/Float16 场景)后,对齐基准应切换为与 B32 对齐对应的 xLastAlignB32_,否则会导致内存地址计算错误。
Special notes for this issue/备注 (Optional / 选填)