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

mha_operand

KV-cache operand descriptors and TMA tile builders for MHA GPU kernels.

Provides the types and helper functions that describe how Q, K, and V tensors (including paged KV caches) are laid out in GPU memory and how TMA (tensor memory accelerator) descriptors are constructed for them.

Structs​

Traits​

  • ​MHAOperand: This serves as the trait to support arguments to our MHA kernel.