Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Snowflake · Architecture map

Snowflake Arctic

A dense feed-forward network and a 128-expert MoE run side by side in every layer.

Snowflake Arctic Base, April 2024 · Arctic release timeline

Inside Snowflake Arctic

Parameters
480B · 17B active
Layers
35
Width
7,168
Mixer
Multi-head
Select a component to explore it.
The complete Snowflake Arctic architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context. 56 keys and 56 values per token per layer (head size 128, from 7,168 / 56). Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup32,0007,168Input token vectorsCL7,168Transformer layers 1–35Transformer layers 1–35 · 35 repetitions35 layers · one layer shown35RMSNorm before this operation.RMSNormMulti-head attention: Three branches. Attention and a 128-expert layer (experts 4,864 wide, 2 chosen per token) both read the layer input. A dense network 7,168 wide reads the stream after attention. All three outputs are added to the layer input.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. Three branches. Attention and a 128-expert layer (experts 4,864 wide, 2 chosen per token) both read the layer input. A dense network 7,168 wide reads the stream after attention. All three outputs are added to the layer input.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormDense MLP (7,168 wide): Three branches. Attention and a 128-expert layer (experts 4,864 wide, 2 chosen per token) both read the layer input. A dense network 7,168 wide reads the stream after attention. All three outputs are added to the layer input.Dense MLP (7,168wide)Add the branch output to the original stream. +RMSNorm128 experts, 2 chosen per token. They read the normalised layer input, in parallel with attention, not the stream after attention.MoE2 of 128experts2 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Residual streamLast columnCL7,168Final RMSNormA separate learned vocabulary projection.Output weights7,16832,000Vocabulary scoresSoftmax32,000Next-token probabilities
Inside multi-head attention · Transformer layers 1–35
56 heads.

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

Snowflake Arctic: Transformer layers 1–35 · multi-head attention56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context. 56 keys and 56 values per token per layer (head size 128, from 7,168 / 56).56 heads; the front face shows one representative.56 headsAttention input. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input7,168CLWq. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Wq7,168128Wk. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Wk7,168128Wv. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Wv7,168128RoPE. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.RoPERoPE. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.RoPEK cache. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.CLCL×. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.×Joined heads. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.56Wo. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Wo7,1687,168Attention output. 56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output7,168CL
Model-specific details
Transformer layers 1–35 · 35 repetitions
Three branches. Attention and a 128-expert layer (experts 4,864 wide, 2 chosen per token) both read the layer input. A dense network 7,168 wide reads the stream after attention. All three outputs are added to the layer input.
Attention and positions
56 query heads and 56 key/value heads (multi-head attention). Trained with a 4,096-token context.
Memory
56 keys and 56 values per token per layer (head size 128, from 7,168 / 56).

Different input taps for dense and expert paths

Each layer has a dense feed-forward network and a separate expert shortcut. The expert branch reads the pre-attention stream through its own norm; the dense network reads the post-attention stream.

Two of 128 experts run per token. Dense intermediate width is 7,168; expert width is 4,864. About 17B of the 480B parameters are active.

Attention is full multi-head with 56 heads. The base checkpoint trained at 4,096 tokens and uses a 32,000-token vocabulary.

Explore the components

Sources for this map