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 package
builtin_kernels
Provides the graph compiler's built-in kernel registrations.
Each module binds graph op names (such as mo.matmul) to the open-source
kernels in linalg, nn, comm, and related packages using the same
@compiler.register mechanism available to custom ops, so these
registrations double as worked examples of how kernels connect to MAX
graphs.
Modulesβ
- β
attention: Registers attention graph ops (MHA, MLA, fused QKV) and dispatches them to thenn.attentionkernels. - β
conv: Registers convolution graph ops and dispatches them to thenn.convkernels. - β
distributed: Registers distributed and multi-GPU collective graph ops backed by thecommandshmemkernels. - β
elementwise: Registers elementwise and unary/binary math graph ops. - β
ep: Expert Parallelism (EP) Communication Kernel. - β
gather_scatter: Registers gather, scatter, and indexed-access graph ops backed by thenn.gather_scatterkernels. - β
kernels: Registers core tensor graph ops (range, copy, reshape, and related utilities). - β
kv_cache: Registers KV-cache graph ops backed by thekv_cacheandnn.kv_cachekernels. - β
linalg: Registers matmul-family graph ops (matmul, grouped, batched, and quantized variants) and dispatches them to thelinalgkernels. - β
logprobs: Registers log-probability computation graph ops used by sampling pipelines. - β
mega_ffn: Graph-op binding for the fused MegaFFN MoE FFN composite op (NVFP4 + MXFP8). - β
msa: Graph-op bindings for the MiniMax-M3 block-sparse attention (MSA) kernels. - β
nan_check: NaN/Inf detection kernels for the max-debug.nan-check feature. - β
quantization: Registers quantization and dequantization graph ops backed by thequantizationandlinalgkernels. - β
reductions: Registers reduction graph ops (sum, mean, argmax, and related) over tensor axes.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!