Architecture (Model Architecture)
From the Transformer LM backbone to Attention, RoPE, and modern components: understand language model architecture
Overview
The Architecture module starts from a complete decoder-only Transformer LM, then progressively breaks down core components such as Attention, RoPE, Normalization, MLP, and the residual stream.
We recommend starting with the Transformer LM overview to build the overall data flow from token ids to next-token logits, then moving on to topics like Attention and RoPE.
CookLLM Docs