Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Arcee AI · Architecture map

Arcee AFM-4.5B

A small dense model whose feed-forward network uses squared ReLU with no gate.

AFM-4.5B base model (release month not stated on the model card) · Arcee release timeline

Inside Arcee AFM-4.5B

Parameters
4.5B
Layers
36
Width
2,560
Mixer
Grouped-query
Select a component to explore it.
Inside grouped-query attention · Transformer layers 1–36
5 query heads per group × 4 K/V groups.

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

Arcee AFM-4.5B: Transformer layers 1–36 · grouped-query attention20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context. 4 keys and 4 values of 128 values per token per layer.4 KV groups; the front face shows one representative.4 KV groups5 heads / group; the front face shows one representative.5 heads / groupAttention input. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Wq2,560128Wk. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Wk2,560128Wv. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Wv2,560128RoPE. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.RoPERoPE. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.RoPEK cache. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.CLCL×. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.×Joined heads. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.20Wo. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Wo2,5602,560Attention output. 20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Model-specific details
Transformer layers 1–36 · 36 repetitions
Dense feed-forward network 18,432 wide with a ReLU squared activation and no gate.
Attention and positions
20 query heads share 4 key/value heads, each 128 wide. YaRN rope scaling by a factor of 20 from 4,096 to a 65,536-token context.
Memory
4 keys and 4 values of 128 values per token per layer.

The 4.5B stack

Explore the components

Sources for this map