Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

RWKV Project (Bo Peng and collaborators) · Architecture map

RWKV-7 2.9B

A recurrent model with no softmax attention. A matrix-valued state is updated at every token with a learned rule.

RWKV-7 "Goose" 2.9B World, March 2025 · RWKV release timeline

Inside RWKV-7 2.9B

Parameters
2.9B
Layers
32
Width
2,560
Mixer
Recurrent mixer
Select a component to explore it.
The complete RWKV-7 2.9B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. There is no softmax attention at all. Each of 32 layers has an RWKV-7 time-mixing block with 64-wide heads, followed by a feed-forward block. No key/value cache. Each layer keeps a fixed-size state, one 64 by 64 matrix per head, however long the input. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup65,5362,560Input token vectorsCL2,560Input LayerNormNormalise the input embeddings before the stack.Layer 1Layer 1 · 1 repetitionsOne layer1LayerNorm before this operation.LayerNormRWKV-7: The first layer. It stores its value vectors for every later layer, then runs the recurrent time-mixing block and a dense feed-forward network with squared ReLU (hidden size 10240).RWKV-7The value vectors of this layer are passed to every later layer.Save valuesAdd the branch output to the original stream. +LayerNorm before this operation.LayerNormSquared-ReLU: The first layer. It stores its value vectors for every later layer, then runs the recurrent time-mixing block and a dense feed-forward network with squared ReLU (hidden size 10240).Squared-ReLUAdd the branch output to the original stream. +Layers 2–32Layers 2–32 · 31 repetitions31 layers · one layer shown31LayerNorm before this operation.LayerNormRWKV-7: A recurrent time-mixing block that blends in the first layer's values, then a dense feed-forward network with squared ReLU (hidden size 10240).RWKV-7Each layer blends the first layer's values into its own through a learned gate.Reuse valuesAdd the branch output to the original stream. +LayerNorm before this operation.LayerNormSquared-ReLU: A recurrent time-mixing block that blends in the first layer's values, then a dense feed-forward network with squared ReLU (hidden size 10240).Squared-ReLUAdd the branch output to the original stream. +Residual streamLast columnCL2,560Final LayerNormA separate learned vocabulary projection.Output weights2,56065,536Vocabulary scoresSoftmax65,536Next-token probabilities
Model-specific details
Layer 1 · 1 repetitions
The first layer. It stores its value vectors for every later layer, then runs the recurrent time-mixing block and a dense feed-forward network with squared ReLU (hidden size 10240).
saves values for layers 2–32
The value vectors of this layer are passed to every later layer.
Layers 2–32 · 31 repetitions
A recurrent time-mixing block that blends in the first layer's values, then a dense feed-forward network with squared ReLU (hidden size 10240).
value residual from layer 1
Each layer blends the first layer's values into its own through a learned gate.
Attention and positions
There is no softmax attention at all. Each of 32 layers has an RWKV-7 time-mixing block with 64-wide heads, followed by a feed-forward block.
Memory
No key/value cache. Each layer keeps a fixed-size state, one 64 by 64 matrix per head, however long the input.

A recurrent World model

RWKV-7 uses recurrent time-mixing blocks rather than softmax attention. At width 2,560, its matrix state has 40 heads of width 64 per layer.

This is the 2.9B World checkpoint in flash-linear-attention format.

Explore the components

Sources for this map