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
linalg
Provides CPU and GPU implementations of linear algebra functions.
Packagesβ
- β
arch: Provides architecture specific utility functions. - β
matmul: Provides the backend implementation for matmuls.
Modulesβ
- β
accumulate: Provides register-file accumulator structures used by the matmul inner loop. - β
bmm: Provides batched matrix multiplication (BMM) for CPU and GPU targets. - β
fp4_quantization: Provides FP4 quantization kernels for dynamic block-scaled and MXFP4 formats. - β
fp4_utils: Provides low-level FP4 encode/decode utilities and scale-factor helpers. - β
fp8_quantization: Provides FP8 quantization kernels supporting static, dynamic, and blockwise scaling. - β
gemv: Provides general matrix-vector (GEMV) and general vector-matrix (GEVM) kernels for CPU and GPU. - β
grouped_matmul: Provides grouped matrix multiplication kernels for CPU, AMD, and NVIDIA GPU targets. - β
grouped_matmul_block_scaled_dispatch: General dispatch for grouped block-scaled matmul. - β
grouped_matmul_sm100: Provides warp-specialized persistent grouped GEMM kernels for SM100 (B200) GPUs. - β
grouped_matmul_sm100_1d1d: Provides block-scaled grouped GEMM for 1DΓ1D scale layouts on SM100 (B200) GPUs. - β
grouped_matmul_sm100_blockwise_fp8: Provides blockwise-scaled FP8 grouped GEMM kernels for SM100 (B200) GPUs. - β
grouped_matmul_tile_scheduler: Provides a persistent tile scheduler for grouped matmul GPU kernels. - β
lora: Provides LoRA (Low-Rank Adaptation) grouped matmul kernels for SM100 GPUs. - β
matrix_band_part: The module implements matrix band part functions. - β
mxfp4_dequant: MXFP4 dequantization kernel for H100 (SM90). - β
mxfp4_matmul_sm90: MXFP4 matmul on H100 (SM90) via dequant-to-FP8 + FP8 GEMM. - β
packing: Provides matrix packing routines that reorder B tiles into cache-friendly layouts for matmul. - β
qr_factorization: Provides QR factorization of matrices using Householder reflections. - β
rms_norm_block_scaled: Fused RMSNorm + MXFP8 block-scaled ("quantize-on-write") quantization. - β
structuring: Provides structured sparsity utilities for scatter-gather operations on GPU. - β
transpose: The module implements Transpose functions. - β
utils: Provides shared CPU matmul utilities including tile-consumer traits, kernel shape selection, and partial SIMD load/store helpers. - β
utils_gpu: Provides GPU matmul configuration selection, block-swizzling, and Hilbert-curve tile-ordering utilities.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!