Contents
This series opens a large language model along one running sentence — The cat sat on the — and shows what has to happen before the next token appears. Start with the interactive overview below, then read each guide in order.
THE LLMs KNOW-HOW · CONCEPT PREVIEW
Inside the next token
RUNNING SENTENCEThe cat sat on the ▏
A model you can open
GPT-2 structure from the guides · schematic activations
The six guides
- Neural networks: a function with knobs — neurons, forward passes, and backpropagation.
- Tokenization: how text becomes numbers — tokens, vocabularies, and GPT-2’s tokenizer.
- Embeddings: giving every token a vector — lookup tables and position vectors.
- Attention: letting tokens look at each other — weighted context and the causal mask.
- The transformer: blocks, stacks and a model that works — assembling the stack and counting parameters.
- Next-token prediction: from probabilities to text — logits, softmax, temperature, top-k and top-p.
Read them in order: each guide assumes the ones before it.
Enjoyed this post?
Get notified when I publish new articles. No spam, unsubscribe anytime.
Comments & reactions
Share a thought or react. Sign in with GitHub to join the discussion.