Ross ROSS = Recommend OSS · open-source software intelligence for agents

johnma2006/mamba-minimal

Simple, minimal implementation of the Mamba SSM in one file of PyTorch. observed · 2026-08-28

github.com/johnma2006/mamba-minimal · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

26/100

  • Activity 0
  • Release rhythm 35
  • Longevity 70

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 987
  • days_rel: n/a
  • days_push: 908
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2965 stars · 218 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A single-file, readable PyTorch implementation of the Mamba selective state space model architecture. It produces numerically equivalent outputs to the official optimized implementation and can load pretrained Mamba checkpoints for text generation.

Use cases

  • understand how the mamba ssm architecture works internally
  • run a minimal mamba model in pure pytorch without custom kernels
  • load pretrained mamba weights and generate text
  • study annotated code for selective state space models
  • prototype modifications to the mamba architecture
  • compare mamba implementation against the official one numerically

When to choose

  • you want to read and learn the mamba architecture from clean annotated code
  • you need a dependency-light pytorch reference implementation for experimentation
  • you want to verify correctness against the official implementation
  • you are teaching or studying state space models

When to avoid

  • you need fast, production-grade inference speed
  • you require proper parameter initialization for training from scratch
  • you want optimized CUDA kernels or long-context performance
  • you need a maintained, feature-complete framework

Facets

library · maturity maintenance

deep-learning machine-learning llm-inference deep-learning large-language-models machine-learning python mamba ssm state-space-models educational minimal-implementation pytorch

1 source

Member repositories

RepositoryRoleHealth v2
johnma2006/mamba-minimalmain26

For agents

markdown · JSON · MCP: product_card(name="johnma2006/mamba-minimal")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem