# Mamba-2 Projects at AI Tinkerers

> Canonical HTML: https://aitinkerers.org/technologies/mamba-2
> Markdown URL: https://aitinkerers.org/technologies/mamba-2.md
> Technology record last updated: 2026-04-29T14:32:17Z
> Generated: 2026-09-22T20:43:17Z

Mamba-2 evolves the State Space Model architecture with SSD, achieving 2-8x faster training speeds than its predecessor while outperforming Transformers on long-sequence tasks.

Mamba-2 introduces State Space Duality (SSD), a theoretical framework that bridges the gap between structured state space models and the attention mechanism. By reformulating the core algorithm as a block-semiseparable matrix multiplication, the architecture leverages NVIDIA Tensor Cores to reach 50% higher throughput than standard Mamba. This iteration maintains linear scaling (O(N)) for 1M+ token contexts while matching or exceeding Llama-3 performance benchmarks in language modeling. It is a drop-in efficiency upgrade for researchers pushing the limits of long-form synthesis and high-speed inference.

- Official technology site: https://github.com/state-spaces/mamba
- Public AI Tinkerers demos and talks: 1
- Result page: 1 of 1

## Recent Public Talks and Demos

### [Speak mk1: A multimodal mamba-attention hybrid model for speech therapy](https://dubai.aitinkerers.org/talks/rsvp_f9s0FLsNTT0)

I am currently building a mamba-attention hybrid encoder and decoder from scratch for speech therapy, not fine-tuning, not wrapping an API, but training every component end to end on my RTX 4060 laptop. The system has three components I am building in parallel: The first is a custom Mamba SSM-based audio encoder trained on LibriSpeech with multi-task phonological heads for voicing, manner, place of articulation, and correctness detection. The encoder uses a BLIP-2-style Q-Former to bridge audio representations into the language model. The second is a video pipeline using MediaPipe FaceLandmarker to isolate and analyze oral region motion frame by frame, extracting articulatory features like tongue tip position, mouth opening geometry, and lip protrusion in real time from a standard webcam. The third component is SpeakMK1LLM, which serves as the project’s core reasoning engine. To balance cutting-edge architectural research with deployment stability for the current phase, we have developed two iterations of this model: The Hybrid Prototype: A custom 70M parameter Mamba-attention hybrid model designed for high-efficiency sequence modeling. It was trained on a rigorous four-stage curriculum: general pretraining on Tinystories, domain adaptation on CHILDES, clinical knowledge injection from pubmed central, and final instruction tuning. The Deployment Model: A fine-tuned Gemma 3n E4B, which leverages the same four-stage curriculum to adapt its large-scale reasoning capabilities to the specific nuances of Speech-Language Pathology (SLP). The entire stack requires only a webcam and a microphone, which is the point — making clinical-quality articulation feedback accessible without specialized hardware or a therapist present in the room. For the demo I would show the live pipeline taking a child's speech, flagging a specific phoneme error, and generating a graded corrective prompt in real time, alongside the clinician dashboard that logs session data for remote review.

- Event context: AI Tinkerers Dubai - May Demo Day — 2026-05-23 — Dubai
- Public talk page: https://dubai.aitinkerers.org/talks/rsvp_f9s0FLsNTT0

## Related Technologies

- [BLIP-2 Q-Former](https://aitinkerers.org/technologies/blip-2-q-former) ([Markdown](https://aitinkerers.org/technologies/blip-2-q-former.md)) — 1 public demo
- [Facial Landmark Detection](https://aitinkerers.org/technologies/facial-landmark-detection) ([Markdown](https://aitinkerers.org/technologies/facial-landmark-detection.md)) — 1 public demo
- [Gemma 3n E4B](https://aitinkerers.org/technologies/gemma-3n-e4b) ([Markdown](https://aitinkerers.org/technologies/gemma-3n-e4b.md)) — 1 public demo
- [LoRA](https://aitinkerers.org/technologies/lora) ([Markdown](https://aitinkerers.org/technologies/lora.md)) — 17 public demos
- [MediaPipe FaceLandmarker](https://aitinkerers.org/technologies/mediapipe-facelandmarker) ([Markdown](https://aitinkerers.org/technologies/mediapipe-facelandmarker.md)) — 1 public demo
- [Modal](https://aitinkerers.org/technologies/modal) ([Markdown](https://aitinkerers.org/technologies/modal.md)) — 14 public demos
- [PyTorch](https://aitinkerers.org/technologies/pytorch) ([Markdown](https://aitinkerers.org/technologies/pytorch.md)) — 273 public demos
- [QLoRA](https://aitinkerers.org/technologies/qlora) ([Markdown](https://aitinkerers.org/technologies/qlora.md)) — 4 public demos
- [wav2vec 2](https://aitinkerers.org/technologies/wav2vec-2) ([Markdown](https://aitinkerers.org/technologies/wav2vec-2.md)) — 2 public demos
