[ROCm][Bugfix]: W4A4 MOE using emulation instead of AITER on MXFP4-supported hardware (#41175)

Signed-off-by: Rohan138 <rohanpotdar138@gmail.com>
This commit is contained in:
Rohan Potdar
2026-04-29 16:39:03 -05:00
committed by GitHub
parent b58669cb42
commit 944e138bcf
2 changed files with 4 additions and 7 deletions
@@ -252,7 +252,8 @@ def rocm_aiter_fused_experts(
else:
quant_method = QuantMethod.NO.value
# mxfp4: both w4a4 (quark) and w4a16 (oracle CK) use BLOCK_1X32
# mxfp4 i.e. w4a4, w4a16 uses BLOCK_1X32
# mxfp6 and mxfp8 are unsupported in AITER currently and use emulation instead
if quant_config.use_mxfp4_w4a4 or quant_config.use_mxfp4_w4a16:
quant_method = QuantMethod.BLOCK_1X32.value
# w8a8 block-scaled