[ROCm][CI] Fall back to lossless Kimi K3 MXFP4 emulation on gfx942 (#50516)
Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com>
This commit is contained in:
@@ -69,9 +69,15 @@ class OCP_MXQuantizationEmulationTritonExperts(TritonExperts):
|
||||
self.quantization_emulation = True
|
||||
|
||||
if self.ocp_mx_scheme in {
|
||||
OCP_MX_Scheme.w_mxfp4,
|
||||
OCP_MX_Scheme.w_mxfp6_e3m2,
|
||||
OCP_MX_Scheme.w_mxfp6_e2m3,
|
||||
}:
|
||||
# Weight-only schemes leave activations unquantized.
|
||||
self._quant_dtype = None
|
||||
elif self.ocp_mx_scheme in {
|
||||
OCP_MX_Scheme.w_mxfp4_a_mxfp4,
|
||||
}:
|
||||
# Weight has to be dequantized for mxfp4 emulation.
|
||||
self._quant_dtype = "mxfp4"
|
||||
elif self.ocp_mx_scheme in [
|
||||
OCP_MX_Scheme.w_mxfp4_a_mxfp6_e3m2,
|
||||
|
||||
@@ -140,6 +140,7 @@ class TritonExperts(LoRAExpertsMixin, mk.FusedMoEExpertsModular):
|
||||
MoEActivation.SILU,
|
||||
MoEActivation.GELU,
|
||||
MoEActivation.GELU_TANH,
|
||||
MoEActivation.SITU,
|
||||
MoEActivation.SWIGLUOAI,
|
||||
MoEActivation.SWIGLUOAI_UNINTERLEAVE,
|
||||
MoEActivation.SWIGLUSTEP,
|
||||
|
||||
Reference in New Issue
Block a user