Skip to content
StackDecode

LLM Library

How large language models work, and what is inside the famous ones

32 short lessons, from tokenisation and attention to mixture of experts, KV caches and reasoning models, each with an animation. Then 28 models from BERT to the latest open and closed families, with their architecture drawn out layer by layer.

Specifications come from each model's paper or model card. When a lab has not published a detail, the page says so. New models arrive quickly, so check the official model card for the newest numbers.

01Foundations

What a language model is and how text becomes numbers.

02Inside the Transformer

Attention, experts and the layers every modern model is built from.

03Training

How a pile of random weights becomes a useful assistant.

04Running and Using LLMs

Decoding, serving, retrieval, agents and the limits of the technology.