AI course from code to agents
Read 35 chapters on AI, from Python and probability to language models, retrieval and agents. Open the interactive edition for experiments and narrated lessons.
Chapters
- From a line of code to a learned rule
- How AI methods evolved
- Reading the AI landscape
- Anatomy of an AI system
- Scalars, vectors and tensors
- From scores to probabilities
- How a model reduces its error
- Precision, memory and computation
- What does it mean to learn from data?
- Fit your first predictive model
- Which classical model fits the task?
- How do you know a model works?
- The artificial neuron
- Neural networks
- AI frameworks in practice
- How neural architectures evolved
- Tokenization
- Embeddings
- Self-attention
- Inside a Transformer
- Anatomy of a language model
- Pretraining from scratch
- Generating one token at a time
- Adapting an existing language model
- Running an existing model
- Giving a model access to documents
- How a language model uses a tool
- Reading an AI application from the inside
- Where a model fits in memory
- Optimizing inference
- From a demo to a service
- Extending the sequence beyond text
- What runs around an agent?
- How do you compare frontier models?
- Build and test a small language model