vllm.model_executor.kernels.linear.mxfp8.rocm_akr
¶
MiniMax-M3.1's dense MXFP8 linears on amd_kernels.gemm.mxfp8_common (the
gemm route): the layers the model marks, preshuffled and compiled at load.
Classes:
-
AkrMxfp8LinearKernel–The stock ROCm kernel, except that marked layers run amd_kernels.
Functions:
-
akr_codes–amd_kernels' MXFP8 codes of a [rows, k] bf16 activation, in the layout its
-
mark_akr_linear–Switch
layer(one of the M3 model's own linears, before the weights load)
AkrMxfp8LinearKernel
¶
Bases: RocmDotScaledMxfp8LinearKernel
The stock ROCm kernel, except that marked layers run amd_kernels.
Source code in vllm/model_executor/kernels/linear/mxfp8/rocm_akr.py
akr_codes(q, s, rows, k)
¶
amd_kernels' MXFP8 codes of a [rows, k] bf16 activation, in the layout its
consumer GEMM reads (only AkrMxfp8LinearKernel reads them).
Source code in vllm/model_executor/kernels/linear/mxfp8/rocm_akr.py
mark_akr_linear(layer)
¶
Switch layer (one of the M3 model's own linears, before the weights load)
if its kernel is this class; returns whether it switched.