Skip to content

vllm.model_executor.layers.quantization.inc.schemes.inc_mxfp4_linear

Classes:

INCMxfp4LinearMethod

Bases: INCLinearScheme

MXFP4 (W4A4) linear method for AutoRound checkpoints.

E2M1 weights packed two per byte with per-group E8M0 scales (group_size=32, no global scale). The platform kernel is selected by init_mxfp4_linear_kernel (FlashInfer / Marlin on CUDA, fp4_gemm on XPU).