已关闭
[Feature]: Support aclnnQuantMatmulWeightNz w4a4 scenario #40
Артем Савкин创建于 2月13日关闭于 3月31日
2月13日 修改了issue 的描述
2月13日 添加了label:feature
2月13日 修改了issue 的描述
2月13日 修改了issue 的描述
3月16日 修改了issue 的描述
Артем Савкин
3月18日 评论:
3月18日 评论:
Seems it works with CANN 9.0.0 and torch_npu 2.9.0.post1


3月31日 issue状态由 TODO 改变为 DONE
3月31日 关闭了 issue
5月30日 修改了issue 的描述
提交提案之前,请先检索仓库内是否已有相同的提案,如已有请在同一提案中进行讨论。
💻 需求背景、当前现状、期望实现的功能内容、具体的设计方案、以及测试方案
After merging https://gitcode.com/cann/ops-nn/pull/1187 aclnnQuantMatmulWeightNz kernel now support pertoken w4a4 quantization with up to 1.6x acceleration.

But when trying to pass nz weights in torch_npu.npu_quant_matmul(), aclnnQuantMatmulV4 kernel is selected and an error occurs.
(It's because there is no processing of the w4a4 nz scenario).
Code to reproduce:
替代方案
补充说明
欢迎加入社区,感谢您对社区的贡献 🎉!