The Rabbit Hole / AI / Model architectures
RWKV Project (Bo Peng and collaborators) · Architecture mapRWKV-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
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.
- LayerNorm with bias acts before each block.
- The feed-forward activation is squared ReLU.
- Each later layer can reuse layer 1’s values, independently of its own recurrent state.
- Token shifts and low-rank decay, gate and update projections form additional local paths.
This is the 2.9B World checkpoint in flash-linear-attention format.
Explore the components
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Linear attention: a fixed-size memory instead of a growing cache
- Mamba: letting each token control what the state keeps
- Value residual: handing the first layer's values to every later layercoming soonPasses the first layer's value vectors on to every later layer.
- RWKV: recurrent inference, parallel trainingcoming soonExplore how RWKV combines a recurrent state at inference with training-friendly parallel computation.
- Neural network layers: more inputs, more neurons