Skip to content

vllm.model_executor.kernels.linear.mxfp8.flashinfer

Classes:

FlashInferCutedslMxfp8LinearKernel

Bases: Mxfp8LinearKernel

MXFP8 W8A8 GEMM via FlashInfer CuTe-DSL (SM100/SM103).

FlashInferCutlassMxfp8LinearKernel

Bases: Mxfp8LinearKernel

MXFP8 W8A8 GEMM via FlashInfer CUTLASS (SM100+).

FlashInferTrtllmMxfp8LinearKernel

Bases: Mxfp8LinearKernel

MXFP8 W8A8 GEMM via FlashInfer's TensorRT-LLM wrapper.

_pad_n(weight, weight_scale, multiple, kernel)

Zero-pad N, the rows of weight [N, K] and of its unswizzled scale [N, K / 32], to a multiple of multiple. The padded rows compute zeros, which the kernel slices off its output.