Griffin / Hawk / RecurrentGemma

State-space & hybrids · hybrid · 2024 · text

What it is

Real-gated linear recurrences mixed with local attention, packaged as a production open model.

When to use it

Fast long-context inference on modest hardware; a real, downloadable hybrid to experiment with.

Caveats

The fixed-size recurrent state can lose exact details from far back, so precise recall and copying are weaker than with full attention. They are newer, with a smaller ecosystem and less tooling than transformers.

Key ideas

  • Hawk: a pure recurrent model built on a gated linear recurrence (RG-LRU)
  • Griffin: mixes that recurrence with local sliding-window attention
  • RecurrentGemma: Google's open-weights model built on Griffin
  • A fixed-size state gives constant memory and fast inference on long sequences

Related architectures

Original paper

Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models (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