When I released my Learn AI Layer by Layer interactive AI tutorial in May I promised that I would be adding more chapters “soon”. It took a little longer than I expected, but I’ve now added four new chapters.
The first nine chapters explain how modern AI models work, starting from the basic concepts like computation and optimization, working their way through neural networks, attention, and eventually transformers. The new chapters pick up from there and answer the question of “How do we go from a transformer model that predicts the next token, and turn it into something like ChatGPT or Claude”.
The new chapters are:
Post Training - is about all the extra training needed to turn an AI model from something that predicts the text that is most likely in the text it was trained on, into something that produces the text that would be most useful.
Conversations - describes how we go from an AI model that produces a continuation for a prompt into something you can chat with.
Reasoning - explains how models think step by step to solve complex problems, and how we train them to do that.
Agents - shows how a harness allows a model to do use tools, skills, and memory.
As with the previous chapters, all concepts are explained with fun interactive playgrounds, and all chapters have been tested by my 11 year old son Isaac to make sure they are approachable to non-experts.
It ended up taking me a lot longer to produce the this round of chapters than I expected. This is partly because I got a lot of feedback on ways to improve the first nine chapters (thanks everyone) and wanted to prioritize addressing all that feedback before producing more chapters. Then the school summer holidays happened, and much of the spare time I’d been using to write this tutorial turned into driving kids to and from camps.
I have several more chapters in various stages of development that I’m hoping to release soon. If there is something about modern I that you’d particularly like me to explain in this tutorial then please let me know.
And if you know someone who wants to understand how modern AI actually works, then please send them this tutorial. I’d also love suggestions for other ways to get it in front of people who would find it useful.
AI is poised to transform the world, and I think it’s good for more people to understand how it works.
