Closed
[Requirement|需求建议]: 支持的quantmx #1503
bynshardAdd on Apr 27Closed at May 8
Apr 27 Associated pull request
Apr 27 Modify description of issue
bynshard
Apr 27 Comments:
Apr 27 Comments:
/assign


Apr 27 Assign bynshard as responsible person
May 8 changed custom state from 进行中 to 已完成
May 8 Close issue
May 8 Added label: resolved
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Background(背景信息)
在 A5 平台上已支持基于 MX matmul计算能力,因此需要补齐配套的量化算法以充分发挥其性能优势。为此新增了 quant_mx 接口,用于对数据进行分组量化处理,可将 FP32、BF16、FP16 等高精度数据高效转换为 FP8、FP4 等低精度格式,从而在保证一定精度的前提下显著降低计算与内存开销。
Origin(信息来源)
Vector算子 芯片能力补齐
Benefit / Necessity(价值/作用)
Design(设计方案)
和 ocp 标准对齐的,量化算法由pto-isa 提供,需要注意的 scale 的形状是 [a,b/64,2] ,需要调用reshape。