[ROCm][MXFP4] Infer w4a4 quant method in rocm aiter fused moe (#29775)

Signed-off-by: ZhiweiYan-96 <zhiwei.yan@amd.com>
This commit is contained in:
Zhiwei
2025-12-05 11:01:16 +00:00
committed by GitHub
parent b73b158ab0
commit 3628bcaaf2
2 changed files with 6 additions and 2 deletions
@@ -345,6 +345,10 @@ class FusedMoEQuantConfig:
def use_mxfp4_w4a16(self) -> bool:
return self._a1.dtype is None and self._w1.dtype == "mxfp4"
@property
def use_mxfp4_w4a4(self) -> bool:
return self._a1.dtype == "mxfp4" and self._w1.dtype == "mxfp4"
@property
def use_nvfp4_w4a4(self) -> bool:
return self.quant_dtype == "nvfp4"