Skip to content

vllm.model_executor.layers.fused_moe.experts.mxfp8_emulation_moe

MXFP8 (1x32 block, E8M0 scale) MoE experts on Triton.

Mxfp8TritonExpertsBase stashes E8M0 weight scales for checkpoint layout. Mxfp8EmulationTritonExperts dequantizes to BF16 and runs TritonExperts for devices without a native MXFP8 MoE kernel (e.g. ROCm gfx942 / MI300).

Classes:

Mxfp8EmulationTritonExperts

Bases: Mxfp8TritonExpertsBase

Dequantize MXFP8 weights to BF16 on the fly and run TritonExperts.

Methods:

  • activation –

    Apply GEMM1 activation with quant-config alpha/beta/clamp.

activation(activation, output, input, **kwargs)

Apply GEMM1 activation with quant-config alpha/beta/clamp.

Mxfp8TritonExpertsBase

Bases: TritonExperts

Shared MXFP8 MoE setup: stash E8M0 scales, clear scales on quant_config.