Blueberry

Language models with recurrent depth.

We study what happens when small Transformers reuse their layers. Blueberry is our open research project for testing those ideas and sharing the code, experiments, and trained models.

Ripe blueberries illuminated against a deep blue background
Parameters
125.8M
Distinct blocks
8
Block executions
16

What we study

Blueberry builds on NanoChat to investigate shared-weight recurrence. We vary how many times the middle blocks run and test a learned gate that controls what carries forward between passes.

Our first paired runs used the same model dimensions, training data, and token budget. We publish the experiment setup and raw logs as a starting point for comparisons across more seeds and model sizes.

Research lead Dustin Loring

Inside a Blueberry forward pass

Two blocks run before the loop, four are reused in the middle, and two run after it.

Prelude

2 blocks

Shared middle

4 blocks × 3 passes

Coda

2 blocks

2 + 4 × 3 + 2 = 16 block executions

The released model uses three passes. At each pass boundary, a learned gate blends the state entering the loop with the previous pass’s output.