AI Run Lab

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.

Open the interactive academy

Chapters

  1. From a line of code to a learned rule
  2. How AI methods evolved
  3. Reading the AI landscape
  4. Anatomy of an AI system
  5. Scalars, vectors and tensors
  6. From scores to probabilities
  7. How a model reduces its error
  8. Precision, memory and computation
  9. What does it mean to learn from data?
  10. Fit your first predictive model
  11. Which classical model fits the task?
  12. How do you know a model works?
  13. The artificial neuron
  14. Neural networks
  15. AI frameworks in practice
  16. How neural architectures evolved
  17. Tokenization
  18. Embeddings
  19. Self-attention
  20. Inside a Transformer
  21. Anatomy of a language model
  22. Pretraining from scratch
  23. Generating one token at a time
  24. Adapting an existing language model
  25. Running an existing model
  26. Giving a model access to documents
  27. How a language model uses a tool
  28. Reading an AI application from the inside
  29. Where a model fits in memory
  30. Optimizing inference
  31. From a demo to a service
  32. Extending the sequence beyond text
  33. What runs around an agent?
  34. How do you compare frontier models?
  35. Build and test a small language model