Layer
Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.
One transformer block: attention plus MLP, each with a residual add (and layer-norm). GPT-2 small has 12.
In one paragraph. One transformer block: attention plus MLP, each with a residual add (and layer-norm). GPT-2 small has 12.
Used in
Related terms
Full glossary