For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
get_scaling_kind
def get_scaling_kind[a_type: DType, scales_dtype: DType, SF_VECTOR_SIZE: Int, b_type: DType]() -> UMMAKind
Selects the UMMA kind for a same-format block-scaled matmul.
block_scaled_umma_kind plus the scale-factor vector-size check. Rejects
the mixed W4A8 pair: only the grouped 1D-1D kernel implements the padded FP4
TMA copy that mixed operands need, and it infers its kind directly.
Parameters:
- βa_type (
DType): A operand element type (uint8for MXFP4/NVFP4,float8_e4m3fnfor MXFP8). - βscales_dtype (
DType): Scale-factor element type. - βSF_VECTOR_SIZE (
Int): Number of elements each scale factor covers. - βb_type (
DType): B operand element type; must equala_type.
Returns:
UMMAKind: The UMMAKind matching the provided type combination.