alxndrTL/mamba.py
A simple and efficient Mamba implementation in pure PyTorch and MLX. observed · 2026-08-28
Health v2 · maintenance only
53/100
- Activity 80
- Release rhythm 8
- Longevity 69
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 968
- days_rel: n/a
- days_push: 122
- n_releases_24m: 0
Adoption not part of the score
1478 stars · 130 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A simple, readable pure-PyTorch (plus MLX) implementation of the Mamba state-space model architecture with a parallel scan for efficient training. It also includes Jamba, Vision Mamba, and muP variants, and has been integrated into Hugging Face Transformers.
Use cases
- implement mamba in pytorch
- train a mamba model from scratch
- run mamba inference on a mac with mlx
- understand how the mamba selective scan works
- try the jamba architecture mixing mamba and attention
- transfer hyperparameters from small to large models with muP
When to choose
- you want readable, hackable Mamba code for learning or research
- you train on PyTorch without the official CUDA kernels or on Apple Silicon with MLX
- you need Jamba or Vision Mamba variants in a simple codebase
When to avoid
- you need maximum training throughput on NVIDIA GPUs - the official CUDA implementation is faster
- you want a production-hardened, feature-complete library rather than an educational implementation
Facets
library · maturity active
machine-learning deep-learning llm-training llm-inference deep-learning machine-learning large-language-models python mamba state-space-models pytorch mlx parallel-scan jamba educational natural-language-processing macos gpu
1 source
- readme: https://github.com/alxndrTL/mamba.py · fetched 2026-08-28 · 9d78d7da964c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| alxndrTL/mamba.py | main | 53 |
For agents
markdown · JSON · MCP: product_card(name="alxndrTL/mamba.py")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem