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 package

state_space

State space model kernels for Mamba and related architectures.

This package provides GPU and CPU kernel implementations for the selective scan, causal conv1d, and SSD (state-space duality) operations used by Mamba, Mamba-2, and Gated DeltaNet models, including variable-length sequence variants for continuous-batching inference.

Both forward and update (decode-step) paths are included, and operation registrations in the *_ops modules wire these kernels into the MAX graph compiler.

Modules​