Lesson 01
What an LLM actually is (in five sentences)
A large language model is a function that takes a sequence of tokens and predicts the probability distribution of the next token. That's it. Everything else — chat, code generation, agentic behaviour, reasoning — is built on top of that one operation, applied repeatedly. The model itself is a stack of transformer blocks, typically tens to hundreds of them, each containing attention layers and feed-forward layers, with billions of learned parameters connecting them. The intelligence isn't in any single component; it emerges from training that whole stack on enormous quantities of text until predicting the next token becomes startlingly good at modelling how humans think on paper.
Takeaway. An LLM is a next-token predictor. Everything else is a clever wrapper around that.
