the.ai

Architecture / Blocks

verified

Transformer Block

The transformer is one block repeated. Each block does two things: attention, where positions exchange information, and a feed-forward network, where each position thinks about what it received on its own. Both sit inside residual connections with normalization, and stacking the block dozens of times is the whole architecture.

Viz primitive · budget-splitd-model = 512 · d-ff = 1024

d-ff holds 33% of the budget; rest holds the remaining 67%.

How a block's parameters divide between the feed-forward layer and the attention beside it. Drag d_ff up to the conventional 4× d_model and the feed-forward side takes two thirds.

1024

Reviewed by opendroid · 2026-08-04