vllm.model_executor.kernels.linear.scaled_mm.BlockScaledMMLinearKernel ¶
Classes:
-
FP8BlockParams– -
Fp8BlockScaledDynamicMMLinearKernel–Dynamic FP8 block-scaled kernel that dispatches at runtime.
FP8BlockParams dataclass ¶
Bases: FP8Params
Attributes:
-
block_scale_attr(str) –Fp8LinearMethod registers the block scale as
weight_scale_inv,
Source code in vllm/model_executor/kernels/linear/scaled_mm/BlockScaledMMLinearKernel.py
block_scale_attr property ¶
Fp8LinearMethod registers the block scale as weight_scale_inv, compressed-tensors as weight_scale.
Fp8BlockScaledDynamicMMLinearKernel ¶
Bases: Fp8BlockScaledMMLinearKernel, ABC
Dynamic FP8 block-scaled kernel that dispatches at runtime.
Extends Fp8BlockScaledMMLinearKernel to inherit apply_weights and overrides apply_block_scaled_mm to dispatch between two sub-kernels using torch.cond.
Subclasses must define
base_type: The primary kernel class. fallback_type: The fallback kernel class.