已关闭
[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 未支持转置 weight ND 直拷 #521
马琦钧创建于 20 天前关闭于 17 天前
20 天前 添加了label:triage-review
TorchNPU-Bot
20 天前 评论:
20 天前 评论:
issue待分派,添加triage-review标签


19 天前 添加了label:bot-triaged;删除了label:triage-review
TorchNPU-Bot
19 天前 评论:
19 天前 评论:
检测到当前 issue 已关联 PR,自动添加标签:bot-triaged


19 天前 修改标题为 “[Feature]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”,原标题为“【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
19 天前 修改标题为 “[Feature]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”,原标题为“【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
19 天前 添加了label:feature
19 天前 将 maqijun 设为负责人
19 天前 修改了issue 的描述
18 天前 修改标题为 “[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”,原标题为“[Feature]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
18 天前 修改标题为 “[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”,原标题为“[Feature]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
18 天前 添加了label:bug
18 天前 修改标题为 “[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 未支持转置 weight ND 直拷”,原标题为“[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
18 天前 修改标题为 “[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 未支持转置 weight ND 直拷”,原标题为“[Bug]: 【Ascend950】npu_weight_quant_preprocess A16MXF4 支持转置 weight ND 直拷”
18 天前 修改了issue 的描述
18 天前 修改了issue 的描述
17 天前 关闭了 issue
17 天前 issue状态由 TODO 改变为 DONE
17 天前 添加了label:resolved
环境信息
🐛 问题描述
现状:Ascend950 上
torch_npu.npu_weight_quant_preprocess的 A16 MXFP4 数据流(weight为torch_npu.float4_e2m1fn_x2、torch.uint8紧凑载体,weight_scale为torch.float8_e8m0fnu,k_group_size=32)仅支持非转置weight;传入转置weight(view shape{K/2, N},stride[1, K/2])时报错Unsupported data flow combination.,无法与npu_weight_quant_batchmatmul(已支持 MX FP4 ND 转置输入)端到端衔接。期望:A16 MXFP4 转置
weight走 ND 直拷物理透传(out_weight与输入保持相同的 sizes/strides,数据格式保持 ND),非转置维持 FRACTAL_NZ_C0_8 转换不变;A16F4 pergroup 转置维持不支持(无下游 wqbmmv2 支持)。修复方案:
judge_mm_a16f4_mx放开转置判定,is_weight_trans按实际 stride 判定,转置/非转置由prepare_out_weight_a16w4内部分流;详见关联 PR。关联