mamba-rs 0.2.1

Mamba SSM (Selective State Space Model) in Rust with CUDA GPU support. Training + inference, forward + backward (BPTT), burn-in, custom CUDA kernels.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Mamba-1 SSM (Selective State Space Model).
//!
//! Gu & Dao, "Mamba: Linear-Time Sequence Modeling with Selective State Spaces" (2023).
//!
//! ## Structure
//! - `cpu/` — CPU inference + training (forward, backward)
//! - `gpu/` — GPU inference + training (CUDA kernels, CUDA Graphs)

pub mod cpu;

#[cfg(feature = "cuda")]
pub mod gpu;