The Rabbit Hole / AI / Model architectures
Allen Institute for AI · Architecture mapBolmo (Olmo 3 and others, byteified)
Byte encoders and decoders wrap an existing language-model backbone, which runs on patches instead of individual bytes.
Bolmo 7B and 1B, December 2025; Bwen 8B and Llama-B 8B, August 2026 · OLMo release timeline
Inside Bolmo (Olmo 3 and others, byteified)
Inside multi-head attention · Global sliding-window layers (Olmo 3 7B)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside multi-head attention · Global full-attention layers (Olmo 3 7B)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local encoder (bytes) · 1 repetitions
- One mLSTM layer (a recurrent layer with a fixed-size state) and a gated feed-forward network 5,504 wide, then the boundary predictor and pooling of the last byte of each patch.
- boundary predictor → patches
- Compares each byte with the next by cosine similarity to decide where a patch ends.
- Global sliding-window layers (Olmo 3 7B) · 24 repetitions
- Attention over the last 4096 patches, then a gated feed-forward network 11,008 wide. Sublayer outputs are normalised before they are added. Three of every four global layers.
- Global full-attention layers (Olmo 3 7B) · 8 repetitions
- Attention over every earlier patch, then a gated feed-forward network 11,008 wide. Every fourth global layer.
- Local decoder (bytes) · 4 repetitions
- Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.
- depool patch outputs
- Each byte receives the latest output of its patch from the global transformer.
- Attention and positions
- The global transformer is Olmo 3 7B: 32 query and 32 key/value heads of 128, three sliding-window layers (4096 positions) for every full-attention layer, QK-norm. It runs over patches, not over bytes, so its positions and windows count patches.
- Memory
- Global layers keep keys and values for 32 heads per patch (sliding layers only the last 4096 patches). The byte encoder and decoder are recurrent and keep a fixed-size state each, not a per-byte cache.
Inside multi-head attention · Global full-attention layers (Olmo 2 1B)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local encoder (bytes) · 1 repetitions
- One mLSTM layer (a recurrent layer with a fixed-size state) and a gated feed-forward network 5,504 wide, then the boundary predictor and pooling of the last byte of each patch.
- boundary predictor → patches
- Compares each byte with the next by cosine similarity to decide where a patch ends.
- Global full-attention layers (Olmo 2 1B) · 16 repetitions
- Attention over every earlier patch, then a gated feed-forward network 8,192 wide. Sublayer outputs are normalised before they are added.
- Local decoder (bytes) · 4 repetitions
- Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.
- depool patch outputs
- Each byte receives the latest output of its patch from the global transformer.
- Attention and positions
- The global transformer is Olmo 2 1B: 16 layers of full attention with 16 query and 16 key/value heads of 128, QK-norm, gated feed-forward 8192 wide. It runs over patches.
- Memory
- Global layers keep keys and values for 16 heads per patch. The byte encoder and decoder keep fixed-size recurrent state.
Inside grouped-query attention · Global full-attention layers (Qwen3 8B Base)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local encoder (bytes) · 1 repetitions
- One mLSTM layer (a recurrent layer with a fixed-size state) and a gated feed-forward network 5,504 wide, then the boundary predictor and pooling of the last byte of each patch.
- boundary predictor → patches
- Compares each byte with the next by cosine similarity to decide where a patch ends.
- Global full-attention layers (Qwen3 8B Base) · 36 repetitions
- Grouped-query attention over every earlier patch, then a gated feed-forward network 12,288 wide. Norms sit before the sublayers.
- Local decoder (bytes) · 4 repetitions
- Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.
- depool patch outputs
- Each byte receives the latest output of its patch from the global transformer.
- Attention and positions
- The global transformer is Qwen3 8B Base: 32 query heads and 8 key/value heads of 128, full attention in every layer, per-head QK-norm, norms before the sublayers. It runs over patches.
- Memory
- Global layers keep keys and values for 8 heads per patch. The byte encoder and decoder keep fixed-size recurrent state.
Inside grouped-query attention · Global full-attention layers (Llama 3 8B)
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Local encoder (bytes) · 1 repetitions
- One mLSTM layer (a recurrent layer with a fixed-size state) and a gated feed-forward network 5,504 wide, then the boundary predictor and pooling of the last byte of each patch.
- boundary predictor → patches
- Compares each byte with the next by cosine similarity to decide where a patch ends.
- Global full-attention layers (Llama 3 8B) · 32 repetitions
- Grouped-query attention over every earlier patch, then a gated feed-forward network 14,336 wide. Norms sit before the sublayers.
- Local decoder (bytes) · 4 repetitions
- Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.
- depool patch outputs
- Each byte receives the latest output of its patch from the global transformer.
- Attention and positions
- The global transformer is Llama 3 8B: 32 query heads and 8 key/value heads of 128, full attention in every layer, no QK-norm, norms before the sublayers. It runs over patches.
- Memory
- Global layers keep keys and values for 8 heads per patch. The byte encoder and decoder keep fixed-size recurrent state.
From bytes to patches and back
Bolmo places a one-layer mLSTM encoder and four-layer mLSTM decoder around an existing language-model backbone. The global transformer runs on patches; its context length and attention windows count patches, not bytes.
- Byte embeddings also receive the longest matching original-subword embedding.
- A boundary predictor groups bytes; the last byte supplies each patch representation.
- The decoder combines global patch outputs with the local encoder’s byte representations.
The picker covers Bolmo 7B and 1B, Bwen 8B and Llama-B 8B. Their global backbones differ; the byte-processing wrapper is shared.
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
- Byte-level patching: a transformer without a tokenizercoming soonA model that reads raw bytes, grouped into patches, instead of tokens from a tokenizer.
- xLSTM: revisiting gated recurrent memorycoming soonExtended long short-term memory (xLSTM) revisits recurrent networks with exponential gating and scalar or matrix memory.
- QK normalisation (QK-Norm) and soft-capping
- Pre-norm and post-norm: follow the residual path
- RoPE: position as a rotation
- Transformer layers: attention is only half of what you need
- The KV cache: why LLMs remember every key and value
- Sliding-window attention (SWA): a cache that stops growing
- Attention, from scratch
- Grouped-query attention (GQA): sharing keys and values in groups
Sources for this map
- Bolmo-7B config.json
- Bolmo-7B model card (table of all Bolmo, Bwen and Llama-B models)
- Bolmo-7B modeling_bolmo.py (local encoder, boundary predictor, pooling, depooling, local decoder)
- Bolmo: Byteifying the Next Generation of Language Models (report)
- Bolmo-1B config.json
- Bwen-8B config.json
- Llama-B-8B config.json
- Context length: the config's max_position_embeddings, counted in patches. The report gives no byte length