Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Databricks · Architecture map

DBRX

A 40-layer mixture of experts selecting four of 16 experts per token, with clipped query, key and value projections.

DBRX Base and Instruct, March 2024 · DBRX release timeline

Inside DBRX

Parameters
132B · 36B active
Layers
40
Width
6,144
Mixer
Grouped-query
Select a component to explore it.
The complete DBRX architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens. 8 keys and 8 values per token per layer (head size 128, from 6,144 / 48). Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup100,3526,144Input token vectorsCL6,144Transformer layers 1–40Transformer layers 1–40 · 40 repetitions40 layers · one layer shown40LayerNorm before this operation.LayerNormGrouped-query attention: 16 experts of 10,752 wide, 4 selected per token. Gated linear unit feed-forward.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. 16 experts of 10,752 wide, 4 selected per token. Gated linear unit feed-forward.RoPE48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.QKV clip 8Add the branch output to the original stream. +LayerNorm before this operation.LayerNormMoE: 16 experts of 10,752 wide, 4 selected per token. Gated linear unit feed-forward.MoE4 of 16 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Add the branch output to the original stream. +4 of 16 expertsResidual streamLast columnCL6,144Final LayerNormA separate learned vocabulary projection.Output weights6,144100,352Vocabulary scoresSoftmax100,352Next-token probabilities
Inside grouped-query attention · Transformer layers 1–40
6 query heads per group × 8 K/V groups.

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

DBRX: Transformer layers 1–40 · grouped-query attention48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens. 8 keys and 8 values per token per layer (head size 128, from 6,144 / 48).8 KV groups; the front face shows one representative.8 KV groups6 heads / group; the front face shows one representative.6 heads / groupAttention input. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input6,144CLWq. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Wq6,144128Wk. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Wk6,144128Wv. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Wv6,144128Clip ±8. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Clip ±8RoPE. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.RoPEClip ±8. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Clip ±8RoPE. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.RoPEClip ±8. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Clip ±8K cache. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.CLCL×. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.×Joined heads. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.48Wo. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Wo6,1446,144Attention output. 48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output6,144CL
Model-specific details
Transformer layers 1–40 · 40 repetitions
16 experts of 10,752 wide, 4 selected per token. Gated linear unit feed-forward.
Attention and positions
48 query heads share 8 key/value heads. Queries, keys and values are clipped to plus or minus 8 (clip_qkv). Rotary base 500,000; context 32,768 tokens.
Memory
8 keys and 8 values per token per layer (head size 128, from 6,144 / 48).

Experts in every layer

The March 2024 Base and Instruct releases share this layout.

How it scores

AA Intelligence Index

Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.

Checkpoint / sizeResultEvaluation
DBRX Instruct5Estimated by AAAA Index 4.3.2Published checkpoint

Explore the components

Sources for this map