[Bugfix] Fix NVFP4/OCP MX MoE emulation (#46254)

Signed-off-by: Matthew Wong <Matthew.Wong2@amd.com>
This commit is contained in:
Matt
2026-06-20 23:13:10 -05:00
committed by GitHub
parent 7df3d7dada
commit a346d589f5
5 changed files with 3 additions and 21 deletions
@@ -296,6 +296,7 @@ def moe_kernel_quantize_input(
if not quantization_emulation:
return _nvfp4_quantize(A, A_scale, is_sf_swizzled_layout=is_scale_swizzled)
else:
assert A_scale is not None
A = ref_nvfp4_quant_dequant(A, A_scale, block_size=16)
return A, None
elif quant_dtype == "mxfp4":