Merged
refactor(gmmfr): dispatch arch35 quantized paths to ops-tensor #13290
refactor(gmmfr): dispatch arch35 quantized paths to ops-tensor #13290
Merged
zhangzhizhuoAdd on Sep 30
zhangzhizhuo
zhangzhizhuoCollaborators
Sep 30

描述

调整 GroupedMatmulFinalizeRouting 的 Ascend 950 / DAV_3510 / arch35 Kernel 分发,将以下三条量化数据流接入 ops-tensor 的 Blaze / tensor_api 实现,保持原计算语义和现有 tiling 契约。

  • pertoken 全量化:INT8×INT8、FP8 E4M3FN×E4M3FN、HIFLOAT8×HIFLOAT8。
  • MX 全量化:WeightND 的 FP32 输出及已有 WeightNZ 路径使用 ops-tensor 的 MX Kernel。
  • MX A8W4 伪量化:FP8 E4M3FN×FP4 E2M1(WeightNZ),适配公共 MX BlockMmad、输出初始化和路由 epilogue。

完整 Kernel 实现位于 ops-tensor;本仓负责 apt 分发及参数组装,保留原有 Cgmct、ResplitController、VCV BasicBlock、VecCompute 和 CubeCompute 实现。tensor_api 切换仅作用于当前一代芯片,下一代芯片继续使用原 Cgmct 路径。

配套实现:ops-tensor #447。

关联的Issue

cann/ops-tensor #345:gmmfr算子迁移blaze实现

测试

  • 二级冒烟。
  • 相关场景门槛用例精度性能测试。

文档更新

内核组件接口、用法和约束资料随配套 ops-tensor PR 交付。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for zhangzhizhuo's contribution.)
zhangzhizhuozhangzhizhuoCollaborators
Sep 30 Created pull request, commit 75e4b5af
CANN-robotCANN-robotCollaborators
Sep 30 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 30 Comments:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robotCollaborators
Sep 30 Comments:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
cmake ✅ wang-minbo, 刘丹 (2/2) ✅ wang-minbo, 刘丹 (2/1)
gmm ✅ kknan, 刘丹 (2/2) ✅ kknan, 刘丹 (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Sep 30 Set yangziqi_007,chenkang30,juyangokok,monologue815,chaotang233,wuyi_huawei,chen-linxin4,jiang-lirui,Allan_Yu,liudan12,Wei_NaChuan,zhangshuoleiokok,shi-rui,cc-z,kdy18482276080,kknan,wenxin_fight,mabing1118,Julius47 as approver
313 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
20 days ago Added label: approved
liudan12
liudan12Collaborators
20 days ago Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
20 days ago Added label: lgtm
CANN-robotCANN-robotCollaborators
20 days ago Closed associated issue
CANN-robotCANN-robotCollaborators
20 days ago Merged pull request