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

mla

GPU kernels for Multi-head Latent Attention (MLA) decoding and prefill.

Provides the flare_mla_decoding and flare_mla_prefill entrypoints plus their platform-specific dispatch and kernel implementations targeting NVIDIA (SM80/SM100) and AMD (gfx950) GPUs, including split-K reduction, multi-token prediction (MTP) query folding, per-token scale, and sparse-attention support.

comptime values​

AMD_MLA_DECODE_FOLD_M_MAX​

comptime AMD_MLA_DECODE_FOLD_M_MAX = 128

AMD_MLA_DECODE_FOLD_MAX_NUM_HEADS​

comptime AMD_MLA_DECODE_FOLD_MAX_NUM_HEADS = 16

MLA_DECODE_MAX_SEQ_LEN​

comptime MLA_DECODE_MAX_SEQ_LEN = 8

Functions​

Was this page helpful?