Merged
feat(gmmfr): migrate arch35 quantized kernels to Blaze/Tensor API #447
zhangzhizhuoAdd on Sep 30
feat(gmmfr): migrate arch35 quantized kernels to Blaze/Tensor API #447
Merged
zhangzhizhuoAdd on Sep 30
zhangzhizhuo
zhangzhizhuoCollaborators
Sep 30

描述

将 GroupedMatmulFinalizeRouting 在 Ascend 950 / DAV_3510 / arch35 下的量化 Kernel 实现迁移到 ops-tensor 的 Blaze / tensor_api,保持原计算语义。

  • pertoken 全量化:支持 INT8×INT8、FP8 E4M3FN×E4M3FN、HIFLOAT8×HIFLOAT8,适配反量化、可选 bias / pertoken scale、logit 加权及路由累加。
  • MX 全量化:补齐 WeightND 的 FP32 输出路径,复用已有 MX BlockMmad 和 WeightNZ 数据流。
  • MX A8W4 伪量化:支持 FP8 E4M3FN×FP4 E2M1(WeightNZ),复用公共 MX BlockMmad,适配动态 K 分块、AIC ScaleB 搬运及 split-M UB 输出。
  • 三条数据流复用公共 routing epilogue 和 SharedInput,补齐 GMMFR Kernel UT、统一算子目录下的多量化模式 example 及接口资料。

配套pr:ops-transformer #13290。

关联的Issue

#345:gmmfr算子迁移blaze实现

测试

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

文档更新

补充 GMMFR Kernel、公共 routing epilogue、SharedInput 的接口、用法和约束,更新公共 MX BlockMmad 的 GMMFR 组装说明及 example / UT 使用说明。

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for zhangzhizhuo's contribution.)
zhangzhizhuozhangzhizhuoCollaborators
Sep 30 Created pull request, commit 5a5f313d
CANN-robotCANN-robotCollaborators
Sep 30 Added label: cann-cla/yes
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
repo-cann/ops-tensor ✅ 陈康, 杨阳 (2/2) ✅ 杨阳 (1/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
zhangzhizhuozhangzhizhuoCollaborators
Sep 30 Pre merge succeeded (commit_id: 13fc30a24f4f6f83c15039c89c7a9d98e3147f03)
zhangzhizhuozhangzhizhuoCollaborators
Sep 30 Force-pushed 4 commits:deea03a7-2 commits from branch master,460dcb83-Migrate GMMFR arch35 quantized kernels to Blaze,70eb0fcd-Use Tensor API copies in GMMFR MX routing epilogue
400 messages are collapsed here。 See more
chen-kang30
chen-kang30Collaborators
21 days ago Comments:

/lgtm

likedislike
yangyang016
yangyang016Collaborators
21 days ago Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
21 days ago Added label: lgtmapproved
CANN-robot
CANN-robotCollaborators
21 days ago Comments:

The MR can not be merged, because of CodeReview discussion not resolved

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
CANN-robotCANN-robotCollaborators
20 days ago Merged pull request