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
kernels
High-performance compute kernels, operators, and tensor APIs for MAX graphs.
The MAX AI kernels library provides the building blocks for AI inference and other compute-intensive workloads on CPU and GPU, including linear algebra functions like matrix multiplication, neural network operators such as attention and convolution, quantization routines, key-value caches for transformer models, and primitives for multi-GPU communication and extending a MAX graph with custom operations.
Packagesβ
- β
algorithm: Free-form row-wise reduction library: theReduceOpmonoid trait, therowwisescaffolder (Row/reduce/map/emit), and the Row-based pure reductions used by the graph reduction kernels. - β
builtin_kernels: Provides the graph compiler's built-in kernel registrations. - β
comm: Provides communication primitives for multi-GPU workloads. - β
extensibility: Surface needed to write GraphCompiler kernel entry points. - β
kv_cache: Contains implementations for several types of key-value caches. - β
linalg: Provides CPU and GPU implementations of linear algebra functions. - β
nn: Provides neural network operators for deep learning models. - β
pipeline: Generic compile-time software pipelining for GPU kernels: schedule generation and verification. - β
profiling_range: Provides Mojo wrappers for MAX's libkineto-backed range profiler. - β
quantization: This package contains a set of APIs for quantizing tensor data. - β
shmem: Implements a subset of OpenSHMEM for multi-node GPU communication. - β
state_space: State space model kernels for Mamba and related architectures. - β
structured_kernels: Shared GPU kernel primitives for structured kernel architectures.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!