Part 01›
✎

Part 01 — Foundations: How LLMs Work and How to Use Them#

This part takes you from "I have never used an ML model" to "I understand what an LLM is, why it behaves the way it does, and how reasoning is prompted, trained and measured".

It is written for a software engineer who knows Python, Git and the terminal. You do not need any mathematics beyond arithmetic. Every idea is built from something you already know: a function and its parameters, a cost function, a prompt as a function argument.

What you can do after this part#

Chapters#

# Chapter Level Reading Core question
01 Machine Learning in a Nutshell for Software Engineers Foundation 25 min Why can't unit tests verify a learned model?
02 How Large Language Models Are Trained Foundation 30 min What is a base model, and how was it built?
03 From Base Model to Assistant: Post-Training Practitioner 30 min What turns a text-continuer into an assistant that reasons?
04 Using LLMs: Tokens, Context and Sampling Foundation 25 min What do the API settings do, and what does a call cost?
05 Prompting and In-Context Learning Foundation 25 min Why do examples and reasoning steps change behavior?
06 Reasoning in LLMs: From Chain-of-Thought to Search Practitioner 30 min When do several samples or a search beat one answer?
07 Why LLM Outputs Are Noisy, and What To Do About It Practitioner 25 min Is this score difference real?
08 A Short History of LLM Agents Foundation 20 min What is an agent, and where did the idea come from?

Levels. Foundation chapters need no ML background. Practitioner chapters assume the Foundation chapters before them and help you at work.

How to read#

The shortest path (about two hours): chapters 01, 02, 04, 05 and 08. These five give you a correct mental model of the model, the API, the prompt and the agent.

The full path (about three and a half hours): all eight chapters in order. Chapters 03, 06 and 07 go deeper. They show how assistants are trained, how to spend compute on reasoning, and how to read an evaluation without fooling yourself.

Each chapter ends with key takeaways, recall questions and one exercise with acceptance criteria. Every chapter stands on its own, and each says which earlier chapter it expects you to have read.

How the part was built#

The chapters synthesize two of the course's four open sources: the UC Berkeley LLM-agent MOOCs of 2024 to 2025, and chapter 3 of Christian Kästner's Machine Learning in Production (MIT Press, 2025). Each chapter lists the lectures it draws on, with links to the moments it uses. Statements from a lecturer are attributed and dated. Model names, prices and API details change quickly, and the text marks them with the date they were checked.

Lecture guides for this part#

Each guide maps one lecture from its first minute to its last and says where this book teaches each piece. Where no chapter teaches a part of the lecture, the guide explains it itself; the table counts those parts.

Lecture Lecturer Length Parts no chapter teaches Guide
LLM Agents Overview Yann Dubois (OpenAI) 2:00:00 2 of 13 open guide
LLM Reasoning Denny Zhou (Google DeepMind) 1:04:00 3 of 18 open guide
LLM agents: brief history and overview Shunyu Yao (OpenAI) 1:10:00 3 of 11 open guide
Inference-Time Techniques for LLM Reasoning Xinyun Chen (Google DeepMind) 1:22:00 3 of 12 open guide
Learning to reason with LLMs Jason Weston (Meta) 1:18:00 6 of 11 open guide
Predictable Noise in LLM Sida Wang (Meta) 44:00 3 of 9 open guide
Post-Training Verifiable Agents Jiantao Jiao (NVIDIA) 1:18:00 1 of 15 open guide
Open Training Recipes for Reasoning in Language Models Hanna Hajishirzi (University of Washington) 1:22:00 3 of 13 open guide

Where to go next#

→ Part 02: The Anatomy of an Agent. Chapter 08 defined the agent loop. Part 02 takes it apart and shows how to build one.