vllm.model_executor.kernels.linear.mxfp8.aiter
¶
Classes:
-
AiterFlyDSLMxfp8LinearKernel–MXFP8 linear on AITER's tuned FlyDSL GEMM (gfx950).
-
AiterTritonMxfp8LinearKernel–AITER Triton MXFP8 GEMM on ROCm.
Functions:
-
row_major_weight–layer's fp8 weight as row-major [N, K], for code that reads MXFP8
AiterFlyDSLMxfp8LinearKernel
¶
Bases: Mxfp8LinearKernel
MXFP8 linear on AITER's tuned FlyDSL GEMM (gfx950).
Weights are (16, 16)-preshuffled once at load; activation and weight
scales stay row-major E8M0, [M, K / 32] and [N, K / 32]. Activations are
MXFP8-quantized here, or arrive pre-quantized as a QuantizedActivation
with the same row-major scales.
Methods:
-
supports_quantized_input–Whether
apply_weightsreads aQuantizedActivationforlayer
supports_quantized_input(layer)
staticmethod
¶
Whether apply_weights reads a QuantizedActivation for layer
as is; always, since the weight stays fp8.
AiterTritonMxfp8LinearKernel
¶
Bases: Mxfp8LinearKernel
AITER Triton MXFP8 GEMM on ROCm.
Methods:
-
supports_quantized_input–Whether
apply_weightsreads aQuantizedActivationforlayer
supports_quantized_input(layer)
staticmethod
¶
Whether apply_weights reads a QuantizedActivation for layer
as is; always, since the weight stays fp8.
_aiter_backend_forced()
¶
Whether --linear-backend explicitly requests AITER for MXFP8.
_monokernel_enabled()
¶
Whether --monokernel is on; DSV4.1's reads 32x32 block scales.
row_major_weight(layer)
¶
layer's fp8 weight as row-major [N, K], for code that reads MXFP8
linear weights directly: a copy without the (16, 16) shuffle when
AiterFlyDSLMxfp8LinearKernel runs the layer, else the weight itself.