vllm.model_executor.layers.fused_moe.experts.aiter_mxfp8_moe
¶
MXFP8 (1x32 block, E8M0) MoE via AITER.
AiterMxfp8Experts(gfx950): FlyDSL two-stage grouped GEMM throughaiter.fused_moe(per_1x32, gate_mode=INTERLEAVE); weights are preshuffled inprepare_fp8_weights.AiterTritonMxfp8ExpertsMonolithic(gfx942): AITER routing and two Tritonmoe_gemm_a8w8calls. 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:
-
AiterMxfp8Experts–MXFP8 MoE through AITER's FlyDSL two-stage grouped GEMM (gfx950).
-
AiterTritonMxfp8ExpertsMonolithic–Router logits -> AITER fused top-k and sort -> two
moe_gemm_a8w8
Functions:
-
prepare_mxfp8_moe_weights_for_aiter_triton–Convert [E, N, K] MXFP8 expert weights to the [E, K, N] layout of
AiterMxfp8Experts
¶
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.