Language Modeling
Predicting the next token. Logits, probability distributions, and the causal LM objective.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
Language Model
Next-token prediction interface.
Next-Token Prediction
Probability-bar visualization.
Autoregressive Generation
Token-by-token timeline.
Logits
Raw-score bar chart.
Probability Distribution
Probability bars.
Causal Language Modeling
Input/target alignment.