Reference

Resources

Free material to go deeper, grouped by part and chapter. Links dated 2026-10-21 were opened and checked that day. Links marked “Not yet checked” were added later and have not been opened. All of it is free to read.

How this list was made

Each link dated 2026-10-21 was fetched on that day, or confirmed through a browser when a site blocks scripts, and kept only if it loaded and matched its description. The date beside a link says when it was last checked; a link marked “Not yet checked” has not been opened. Some sources appear under more than one chapter. The notes are written for this book; the material itself belongs to its authors.

Links rot. If one is dead, search for its title; if you replace it, update the checked date. Levels: beginner needs only earlier chapters, intermediate assumes the chapter it sits under, advanced is research-level or long.

Filter

Show only some resources

Part I · Maths

2. Algebra, functions and graphs

  • Linear equations & graphs (Khan Academy, Algebra 1) video beginner
    Short lessons plus practice on slope, intercepts and plotting straight lines, the exact groundwork this chapter needs. Checked 2026-10-21.
  • Functions (Khan Academy, Algebra 1) video beginner
    Builds the idea of a function as an input-to-output rule, with notation, domain and range, and graded exercises. Checked 2026-10-21.
  • Equation of a Straight Line article beginner
    One-page walk through y = mx + b with an interactive graph, handy as a quick refresher on slope and intercept. Checked 2026-10-21.
  • What is a Function article beginner
    Plain-language picture of functions as machines that map inputs to outputs, good before reading any ML notation. Checked 2026-10-21.

3. Exponentials and logarithms

4. Vectors and matrices

5. Derivatives and gradients

6. Gradient descent

7. Probability and Bayes

8. Mean, variance and normalisation

9. Softmax, cross-entropy and KL divergence

  • Visual Information Theory article intermediate
    Builds entropy, cross-entropy and KL divergence from pictures of message lengths; the clearest long-form read on the topic. Checked 2026-10-21.
  • Neural Networks Part 5: ArgMax and SoftMax video beginner
    Shows how softmax turns raw scores into probabilities and why it is preferred to argmax for training. Checked 2026-10-21.
  • Neural Networks Part 6: Cross Entropy video beginner
    Explains cross-entropy as the loss paired with softmax, with a worked numeric example. Checked 2026-10-21.
  • The Key Equation Behind Probability video intermediate
    Artem Kirsanov connects surprise, entropy, cross-entropy and KL divergence and why minimising cross-entropy trains models. Checked 2026-10-21.

Part II · ML foundations

10. What learning means: linear and logistic regression

11. Generalisation, overfitting and regularisation

12. Neural networks and backpropagation

13. Training deep networks well

14. From perceptron to transformer: the bottlenecks

15. Project: train your own neural network

Part III · How LLMs work

16. Language models, tokens and sampling

17. The embedding layer and positions

18. The transformer block

19. How LLMs are trained

20. Project: train your own tiny language model

Part IV · Applied concepts

21. Prompt engineering

22. Context engineering and choosing models

23. Embeddings and similarity

24. Retrieval and RAG

26. Evaluating RAG

27. The knowledge base and maintaining it

  • pgvector/pgvector docs intermediate
    Its indexing and tuning sections explain index build cost and when an index needs rebuilding. Checked 2026-10-21.
  • REINDEX (PostgreSQL documentation) docs intermediate
    Official reference for rebuilding indexes, including the CONCURRENTLY option to avoid blocking writes. Checked 2026-10-21.
  • HNSW indexes | Supabase Docs docs intermediate
    Practical guide to HNSW on pgvector: build parameters and behaviour as rows are added. Checked 2026-10-21.
  • Document Management (LlamaIndex) docs intermediate
    Shows insert, update, delete and refresh of documents in an index so stale content gets replaced. Checked 2026-10-21.

28. Tools and function calling

29. Agents and agentic flow

30. MCP, basic and advanced

31. Skills

32. Subagents

33. Harness engineering

34. Guardrails

  • Presidio docs intermediate
    Docs for the PII detection and anonymisation toolkit; the project moved from Microsoft's site to this address. Checked 2026-10-21.
  • Overview | NVIDIA NeMo Guardrails Library Developer Guide docs intermediate
    An open-source toolkit for input, output and dialogue rails, a useful reference architecture. Checked 2026-10-21.
  • How to implement LLM guardrails article intermediate
    Cookbook notebook showing input and output checks run alongside the main model call. Checked 2026-10-21.
  • Introduction - Guardrails AI docs intermediate
    Docs for a validator-based guardrail library, another pattern for checking model output. Checked 2026-10-21.

35. LLM security

36. Hallucination

37. Memory

38. Frameworks and model providers

39. Quantisation

40. Fine-tuning and distillation

41. Projects: LoRA fine-tune and distillation

  • Fine-tuning (Hugging Face Transformers docs) docs intermediate
    Official walkthrough of fine-tuning a pretrained model with the Trainer API. Checked 2026-10-21.
  • Quicktour (PEFT) docs intermediate
    Minimal code to wrap a model with a LoRA config, train it and save the adapter. Checked 2026-10-21.
  • SFT Trainer (TRL) docs intermediate
    Supervised fine-tuning trainer for chat or instruction data, with built-in PEFT support. Checked 2026-10-21.
  • HuggingFaceTB/SmolLM2-135M docs beginner
    Model card for a tiny base model that trains quickly on a laptop, a good student candidate. Checked 2026-10-21.
  • Qwen/Qwen2.5-0.5B-Instruct docs beginner
    Model card for a small instruction-tuned model with chat template usage examples. Checked 2026-10-21.
  • MPS backend (PyTorch docs) docs intermediate
    How to run PyTorch training on Apple-silicon GPUs via the mps device. Checked 2026-10-21.

42. Running AI in production

  • vLLM docs intermediate
    Docs for a high-throughput open-source serving engine for self-hosted models. Checked 2026-10-21.
  • Ollama documentation docs beginner
    Running open models locally behind a simple HTTP API. Checked 2026-10-21.
  • Prompt caching docs intermediate
    Cutting cost and latency on repeated prompt prefixes. Checked 2026-10-21.
  • Batch processing (Claude API docs) docs intermediate
    The Message Batches API for large asynchronous jobs at lower cost. Checked 2026-10-21.
  • Streaming messages (Claude API docs) docs intermediate
    The server-sent event stream format and how to handle each event type. Checked 2026-10-21.
  • Claude API errors docs intermediate
    Error types and status codes, including which are worth retrying. Checked 2026-10-21.
  • Rate limits (Claude API docs) docs intermediate
    How limits are measured, the response headers to watch, and backing off. Checked 2026-10-21.
  • Handling Overload (Site Reliability Engineering, chapter 21) article advanced
    Free chapter from Google's SRE book on client-side throttling, criticality and retry budgets. Checked 2026-10-21.
  • Open Source Prompt Management - Langfuse docs intermediate
    Versioned prompts fetched at runtime, so prompt changes ship without redeploying. Checked 2026-10-21.
  • Datasets - Langfuse docs intermediate
    Building test sets from production traces and running experiments against them. Checked 2026-10-21.

43. AI in a regulated domain

44. Evaluating LLM output: judges and agreement

45. Observability, tracing and cost

Part V · Build it

Labs: tools you will use

  • Claude API documentation docs beginner
    Anthropic's official docs for the Messages API, tool use, structured outputs and pricing. The labs call the API through the Python SDK. Not yet checked.
  • anthropics/anthropic-sdk-python docs beginner
    Source and README of the official Python client: installing it, sending a message, streaming and handling errors. Not yet checked.
  • Ollama docs beginner
    Download page and model library for running open-weight models on your own machine, so the labs can run without a paid API. Not yet checked.
  • ollama/ollama docs beginner
    The README covers installing Ollama, pulling and running a model, and its local HTTP API. Not yet checked.
  • Model Context Protocol docs beginner
    Home of the protocol: introduction, SDKs and tutorials for building a server, the subject of the MCP lab. Deeper pages are listed under chapter 30. Not yet checked.
  • Virtual Environments and Packages (Python tutorial) docs beginner
    How to create a virtual environment and install packages into it, the first step of the setup lab. Not yet checked.
  • pytest documentation docs beginner
    Official docs for the test runner the labs use to check their own code. Not yet checked.
  • uv docs beginner
    Docs for the fast Python package and project manager: projects, lockfiles and running scripts. Checked 2026-10-21.