From rules to learning
Why modern AI stopped trying to write every instruction by hand.
Chapter 1
Why rules gave way to learning in many tasks, and how language models became assistants.
Why modern AI stopped trying to write every instruction by hand.
Give a tiny model examples. Then test whether it learned something useful beyond them.
How training examples turn into the next-word patterns behind language models.
How a model that predicts text becomes a product you can talk to.
Chapter 2
Follow one message as it becomes tokens, predictions, and a response.
Press send, then pause. Your message becomes context before any answer appears.
Before the model reads text, the text is chopped into pieces it can look up.
A response is not written all at once. It grows through repeated small choices.
Chapter 3
Adjust a tiny model, learn from its mistakes, and inspect the numbers it learns.
Meet a model with just two numbers. Move them and watch every prediction change.
A prediction misses. Turn that mistake into a direction for the next update.
A token ID is a label. A vector gives the model numbers it can work with.
Chapter 4
Follow how order and attention turn token vectors into predictions.
Same words. Different order. A very different story.
Watch one token gather information from the tokens around it.
Put tokens, attention, and learned transformations into one picture.
Chapter 5
Shape a text predictor into a helpful assistant, then explore how it chooses a response.
A model can continue text. How does it learn to answer a request?
Two answers can sound good. Which deserves to be reinforced?
The same scores can produce different choices. Turn the dial and see why.
Chapter 6
Find evidence, use tools, and build an answer you can defend.
A polished sentence can contain a supported fact and an invented detail.
What a model can see now differs from what an app saves for later.
Give an assistant evidence and a calculator. Inspect the path to its answer.
Your final challenge: turn a confident draft into an answer you can defend.