Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Allen Institute for AI · Architecture map

Bolmo (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)

Size
Parameters
7B
Layers
32 global + 1 encoder + 4 decoder
Width
4,096
Mixer
Multi-head
Select a component to explore it. Layer colours match the execution-order strip.
The complete Bolmo (Olmo 3 and others, byteified) architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 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. 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. Final normalisation and output weights produce vocabulary scores and the next-byte distribution.Text becomes UTF-8 bytes.Text → UTF-8 bytes0x740x680x650x20Byte embedding lookup5204,096Input byte vectorsCL4,096Execution order · 37 layersLayer 1: Local encoder (bytes)Layer 2: Global sliding-window layers (Olmo 3 7B)Layer 3: Global sliding-window layers (Olmo 3 7B)Layer 4: Global sliding-window layers (Olmo 3 7B)Layer 5: Global full-attention layers (Olmo 3 7B)Layer 6: Global sliding-window layers (Olmo 3 7B)Layer 7: Global sliding-window layers (Olmo 3 7B)Layer 8: Global sliding-window layers (Olmo 3 7B)Layer 9: Global full-attention layers (Olmo 3 7B)Layer 10: Global sliding-window layers (Olmo 3 7B)Layer 11: Global sliding-window layers (Olmo 3 7B)Layer 12: Global sliding-window layers (Olmo 3 7B)Layer 13: Global full-attention layers (Olmo 3 7B)Layer 14: Global sliding-window layers (Olmo 3 7B)Layer 15: Global sliding-window layers (Olmo 3 7B)Layer 16: Global sliding-window layers (Olmo 3 7B)Layer 17: Global full-attention layers (Olmo 3 7B)Layer 18: Global sliding-window layers (Olmo 3 7B)Layer 19: Global sliding-window layers (Olmo 3 7B)Layer 20: Global sliding-window layers (Olmo 3 7B)Layer 21: Global full-attention layers (Olmo 3 7B)Layer 22: Global sliding-window layers (Olmo 3 7B)Layer 23: Global sliding-window layers (Olmo 3 7B)Layer 24: Global sliding-window layers (Olmo 3 7B)Layer 25: Global full-attention layers (Olmo 3 7B)Layer 26: Global sliding-window layers (Olmo 3 7B)Layer 27: Global sliding-window layers (Olmo 3 7B)Layer 28: Global sliding-window layers (Olmo 3 7B)Layer 29: Global full-attention layers (Olmo 3 7B)Layer 30: Global sliding-window layers (Olmo 3 7B)Layer 31: Global sliding-window layers (Olmo 3 7B)Layer 32: Global sliding-window layers (Olmo 3 7B)Layer 33: Global full-attention layers (Olmo 3 7B)Layer 34: Local decoder (bytes)Layer 35: Local decoder (bytes)Layer 36: Local decoder (bytes)Layer 37: Local decoder (bytes)BYTE ENCODER · runs on bytesLocal encoder (bytes) · matches this colour in the execution-order barLocal encoder (bytes)Local encoder (bytes) · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormmLSTM: 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.mLSTMAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: 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.SwiGLUAdd the branch output to the original stream. +Compares each byte with the next by cosine similarity to decide where a patch ends.Byte boundaries and poolingboundary predictor → patchesLayer type · execution order aboveGLOBAL TRANSFORMER · runs on patchesGlobal sliding-window layers (Olmo 3 7B) · matches this colour in the execution-order barGlobal sliding-window layers (Olmo …Global sliding-window layers (Olmo 3 7B) · 24 repetitions24 layers · one layer shown24Multi-head attention: 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.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. 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.RoPESliding-window attention over 4,096 tokens.4,096Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +SwiGLU: 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.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveGLOBAL TRANSFORMER · runs on patchesGlobal full-attention layers (Olmo 3 7B) · matches this colour in the execution-order barGlobal full-attention layers (Olmo …Global full-attention layers (Olmo 3 7B) · 8 repetitions8 layers · one layer shown8Multi-head attention: Attention over every earlier patch, then a gated feed-forward network 11,008 wide. Every fourth global layer.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. Attention over every earlier patch, then a gated feed-forward network 11,008 wide. Every fourth global layer.RoPENormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +SwiGLU: Attention over every earlier patch, then a gated feed-forward network 11,008 wide. Every fourth global layer.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveBYTE DECODER · runs on bytesLocal decoder (bytes) · matches this colour in the execution-order barLocal decoder (bytes)Local decoder (bytes) · 4 repetitions4 layers · one layer shown4Each byte receives the latest output of its patch from the global transformer.depool patch outputs+RMSNorm before this operation.RMSNormmLSTM: Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.mLSTMAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Four mLSTM layers, each with a gated feed-forward network, then a linear head over the 520-entry byte vocabulary.SwiGLUAdd the branch output to the original stream. +Layer type · execution order aboveAfter all 37 layer executionsResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096520Vocabulary scoresSoftmax520Next-byte probabilities
Inside multi-head attention · Global sliding-window layers (Olmo 3 7B)
32 heads.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Bolmo (Olmo 3 and others, byteified): Global sliding-window layers (Olmo 3 7B) · multi-head attentionThe 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. 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.32 heads; the front face shows one representative.32 headsAttention input. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 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.Wq4,0964,096Wk. 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.Wk4,0964,096Wv. 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.Wv4,0964,096RMSNorm. 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.RMSNorm4,096RoPE. 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.RoPERMSNorm. 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.RMSNorm4,096RoPE. 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.RoPEK cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 4096V cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 4096Q context. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 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.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.Window 4,096CLCL×. 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.×Joined heads. 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.32Wo. 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.Wo4,0964,096Attention output. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Inside multi-head attention · Global full-attention layers (Olmo 3 7B)
32 heads.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Bolmo (Olmo 3 and others, byteified): Global full-attention layers (Olmo 3 7B) · multi-head attentionThe 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. 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.32 heads; the front face shows one representative.32 headsAttention input. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 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.Wq4,0964,096Wk. 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.Wk4,0964,096Wv. 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.Wv4,0964,096RMSNorm. 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.RMSNorm4,096RoPE. 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.RoPERMSNorm. 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.RMSNorm4,096RoPE. 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.RoPEK cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 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.CLCL×. 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.×Joined heads. 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.32Wo. 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.Wo4,0964,096Attention output. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
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.

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.

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

Sources for this map