LLMs from First Principles
A large language model (LLM) is a neural network trained to predict the next piece of text. Give it some text, and it outputs a probability for every possible next token. Repeat that one step at a time, and it writes essays, code, translations and answers.
That's the whole interface: text in → probabilities over the next token out. Everything else, from chat and tool use to reasoning, is built on that loop.
In this lesson
- Why "large"?
- Why next-token prediction is so powerful
- From base model to assistant
- What LLMs are good and bad at
- The vocabulary you'll need
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.