state-spaces

    state-spaces/mamba

    Mamba SSM architecture

    backend
    Python
    Apache-2.0
    19.0K stars
    1.8K forks
    123 GitHub watchers
    Updated Nov 7, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 181 days ago, with 56 contributors on GitHub.

    Peaked at #95 in the weekly ranking the week of Mar 22, its best in the past year.

    Use Cases & Benefits

    • Implements a state space model architecture for efficient and scalable sequence modeling in PyTorch.
    • Delivers improved performance on information-dense data like language modeling with linear-time complexity and hardware-aware optimizations.
    • Use for building high-performance language models that require efficient long-range sequence processing on NVIDIA GPUs.
    • Use for research and development of advanced state space models leveraging structured state space duality principles.
    • Use for benchmarking and comparing sequence model inference speed and accuracy against Transformer-based architectures.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Mamba: Linear-Time Sequence Modeling with Selective State Spaces
    Albert Gu*, Tri Dao*
    Paper: https://arxiv.org/abs/2312.00752

    Transformers are SSMs: Generalized Models and Efficient Algorithms
    Through Structured State Space Duality
    Tri Dao*, Albert Gu*
    Paper: https://arxiv.org/abs/2405.21060

    Mamba-3: Improved Sequence Modeling using State Space Principles
    Through Structured State Space Duality
    Aakash Lahoti*, Kevin Y. Li*, Berlin Chen*, Caitlin Wang*, Aviv Bick, J. Zico Kolter, Tri Dao†, Albert Gu†
    Paper: https://arxiv.org/abs/2603.15569

    Mamba is a new state space model architecture showing promising performance on information-dense data such as language modeling, where previous subquadratic models fall short of Transformers. It is based on the line of progress on structured state space models, with an efficient hardware-aware design and implementation in the spirit of FlashAttention.

    --no-build-isolation is required so that pip uses your existing CUDA-enabled PyTorch instead of installing torch-cpu in an isolated build environment.

    For AMD cards, see additional prerequisites below.

    Excerpt from the state-spaces/mamba README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    1.8K+46

    Open issues

    646+41

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    state-spaces/mamba compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills191.0K+4.2K15—
    zed-industries/zed94.6K+2.3K655 days ago
    NationalSecurityAgency/ghidra99.1K+1.9K6418 days ago
    DuarteSantos8/openGym20.6K+1.7K606 days ago
    shiyu-coder/Kronos47.4K+1.4K16—
    state-spaces/mamba19.0K—45181 days ago
    Category median94.6K+1.9K60—

    Discover Repositories

    Search across tracked repositories by name or description