IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo module

mxfp4_grouped_matmul_amd

Grouped MXFP4 matmul kernels for AMD CDNA4 GPUs.

Provides MoE expert-dispatched grouped matmul in two variants: the native path (mxfp4_grouped_matmul_amd) with on-the-fly B layout handling, and the pre-shuffled-B path (mxfp4_grouped_matmul_amd_preb / PreShuffledBGroupedGEMM) where weights are pre-arranged into a layout that enables coalesced shared-memory reads and direct MFMA consumption.

Structs​

Functions​

Was this page helpful?