Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Albert Gu and Tri Dao · Architecture map

Mamba 2.8B

A language model with no attention at all. Each layer carries a fixed-size state forward, one token at a time.

Original Mamba 2.8B (Transformers-compatible copy), 2023 to 2024 · Mamba release timeline

Inside Mamba 2.8B

Parameters
2.8B
Layers
64
Width
2,560
Mixer
State-space mixer
Select a component to explore it.
The complete Mamba 2.8B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. There is no softmax attention at all. Each of the 64 layers is a selective state-space (Mamba) block. There are no positional embeddings. No key/value cache. Each layer keeps a fixed-size state (5120 channels by 16 state values) and a short convolution buffer of 4 positions, however long the input. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup50,2802,560Input token vectorsCL2,560Mamba layers 1–64Mamba layers 1–64 · 64 repetitions64 layers · one layer shown64RMSNorm before this operation.RMSNormMamba state-space: A Mamba block with expansion 2 (5120 inner channels), state size 16 and a width-4 convolution. There is no separate feed-forward network.Mamba state-spaceAdd the branch output to the original stream. +Residual streamLast columnCL2,560Final RMSNormReuses the embedding table, transposed.Tied output weights2,56050,280Vocabulary scoresSoftmax50,280Next-token probabilities
Model-specific details
Mamba layers 1–64 · 64 repetitions
A Mamba block with expansion 2 (5120 inner channels), state size 16 and a width-4 convolution. There is no separate feed-forward network.
Attention and positions
There is no softmax attention at all. Each of the 64 layers is a selective state-space (Mamba) block. There are no positional embeddings.
Memory
No key/value cache. Each layer keeps a fixed-size state (5120 channels by 16 state values) and a short convolution buffer of 4 positions, however long the input.

A state-space stack

All 64 layers use the original Mamba block at width 2,560, with RMSNorm and a residual connection. There are no attention or separate feed-forward layers.

The configuration uses expansion factor two, state size 16, convolution width four and time-step rank 160. Input and output embeddings are tied.

This is the original 2.8B checkpoint; later Mamba-2 blocks appear in the hybrid models elsewhere in the catalogue.

Explore the components

Sources for this map