Skip to content

vllm.model_executor.layers.fused_moe.experts.aiter_mxfp8_moe

MXFP8 (1x32 block, E8M0) MoE via AITER.

  • AiterMxfp8Experts (gfx950): FlyDSL two-stage grouped GEMM through aiter.fused_moe (per_1x32, gate_mode=INTERLEAVE); weights are preshuffled in prepare_fp8_weights.
  • AiterTritonMxfp8ExpertsMonolithic (gfx942): AITER routing and two Triton moe_gemm_a8w8 calls. gfx942 has no MX matrix cores, so the kernel runs each 32-wide K step as an FP8 MFMA and applies the E8M0 scales to the accumulator.

Classes:

Functions:

AiterMxfp8Experts

Bases: Mxfp8TritonExpertsBase

MXFP8 MoE through AITER's FlyDSL two-stage grouped GEMM (gfx950).

AiterTritonMxfp8ExpertsMonolithic

Bases: FusedMoEExpertsMonolithic

Router logits -> AITER fused top-k and sort -> two moe_gemm_a8w8 (gfx942).

prepare_mxfp8_moe_weights_for_aiter_triton(w, w_scale)

Convert [E, N, K] MXFP8 expert weights to the [E, K, N] layout of moe_gemm_a8w8. The weight is a transposed view; the scale is made N-contiguous so per-K-step scale loads coalesce.