The Rabbit Hole / AI / Model architectures
Albert Gu and Tri Dao · Architecture mapMamba 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
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
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Mamba: letting each token control what the state keeps