Closed
[Bug-Report|缺陷反馈]: swiglu_mx_quant 算子资料与实现不一致 #5832
chenfengAdd on Sep 12Closed at Sep 15
Sep 12 Added label: bug-report
chenfeng
Sep 12 Comments:
Sep 12 Comments:
/assign @chenfeng61


Sep 12 Assign chenfeng61 as responsible person
Sep 15 Close issue
Sep 15 Added label: resolved
Sep 15 Associated pull request
19 days ago Associated pull request
Describe the current behavior / 问题描述
swiglu_mx_quant算子的公开资料与实际实现存在多处不一致:activate_left、swiglu_mode、clamp_limit、glu_alpha、glu_bias等属性标注为"预留参数",但实现中这些参数实际生效且具有明确语义(swiglu_mode 支持 0-3 四种计算模式)Environment / 环境信息
Steps to reproduce the issue / 重现步骤
quant/swiglu_mx_quant/README.md与docs/aclnnSwigluMxQuant.md中的属性说明(标注为"预留参数")tests/assets/golden.py参考实现,验证 swiglu_mode=1/2/3、activate_left、glu_alpha、glu_bias、clamp_limit 等属性的实际生效逻辑Describe the expected behavior / 预期结果
Related log / screenshot / 日志 / 截图
无需日志,为资料与实现一致性问题,可通过代码对照确认。
Special notes for this issue/备注
修复 PR:https://gitcode.com/cann/ops-nn/pull/10341