Jamba / Zamba

State-space & hybrids · hybrid · 2024 · text

What it is

Interleaves transformer and Mamba layers in one MoE model, so most layers are linear and a few do exact attention.

When to use it

Very long context with production throughput — the architecture pattern most frontier labs now ship.

Caveats

They are newer models with a smaller ecosystem and fewer independent evaluations than mainstream transformers. Runtime support for the Mamba layers is less mature, and the layer mix is specific to each release.

Key ideas

  • Mostly Mamba layers, with a few attention layers mixed in
  • Jamba (AI21): adds mixture-of-experts layers and targets a very long context window
  • Zamba (Zyphra): a small model with one shared attention block reused through the depth

Related architectures

Original paper

Jamba: A Hybrid Transformer-Mamba Language Model (2024, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted