LLM Library
HybridOpen weightsArchitecture animation
Jamba
Mixes Transformer, Mamba and mixture-of-experts layers in one model.
At a glance
- Made by
- AI21 Labs
- Released
- 2024
- Type
- Hybrid
- Access
- Open weights
- Parameters
- 52B
- Active per token
- about 12B
- Context window
- 256k tokens
- Attention
- Attention layers mixed with Mamba layers
How it works
Jamba interleaves a small number of attention layers with many Mamba layers, and adds MoE to some layers. The mix keeps long-context memory use low while keeping attention's recall.
Architecture, step by step
A token travels from text in to prediction out. The boxed layers repeat many times.
Raw text enters the system, for example "The cat sat on the".
- stage:
- 1/11
- part:
- Text in
1/11
The green dot is one token travelling through the model. The boxed section repeats for every layer.
What stands out
- Transformer-Mamba hybrid
- MoE for capacity
- 256k context with a small KV cache
Keep in mind
Hybrids are newer and have less tooling than pure transformers.