Skip to content

vllm.model_executor.kernels.linear.scaled_mm.cutlass

Classes:

CutlassFP8ScaledMMLinearKernel

Bases: FP8ScaledMMLinearKernel

Methods:

  • input_quant_key –

    Static per-tensor and dynamic per-token activations can be quantized

_pad_to_alignment(x, dim, alignment, value=0.0) staticmethod

Pad tensor x along dim to the next multiple of alignment.

input_quant_key()

Static per-tensor and dynamic per-token activations can be quantized outside the kernel: neither is padded, and cutlass_scaled_mm takes the (M, 1) token scales as is.

CutlassFp8BlockScaledMMKernel

Bases: Fp8BlockScaledMMLinearKernel

Methods:

  • input_quant_key –

    Dynamic group-128 activations can be quantized outside the kernel

input_quant_key()

Dynamic group-128 activations can be quantized outside the kernel when no token padding is needed. The producer must write the scales column-major, (M, K // 128) with strides (1, M), as self.quant_fp8 does.