Skip to content

AI Engineering

This book follows an AI system from its learning assumptions to a model you can build, train, serve, evaluate, and operate responsibly. The learning foundations explain the statistical and neural models; the construction chapters expose numerics, autograd, tokenization, attention, and inference; the production parts build retrieval, agents, evaluation, and serving around them. Read the worked implementations alongside the reasoning, commit to predictions before revealing answers, and validate each claim against a small example or a controlled failure.

266 sections

Start readingGlossary
  • Derive a model or learning objective from its assumptions and check it on a small example.
  • Build and explain autograd, tokenizers, language models, attention, and an inference engine.
  • Choose training, adaptation, routing, and serving strategies using measured constraints.
  • Build retrieval and agent applications with explicit evaluation and failure tests.
  • Validate data rights, privacy, safety, and deployment policies alongside model behavior.

Read the parts in order for the full progression, or choose a route below and follow its prerequisites. Pause at the review questions before revealing worked answers.

The mathematical prerequisites are in Mathematics, and the programming background is in Programming and Algorithms. Data Engineering owns ingestion, corpus pipelines, and data quality. Systems Engineering owns shared protocols, caching, durable execution, Kubernetes, and observability. Software Engineering owns testing, authorization, design practices, and documentation. Follow those links when a chapter needs a shared mechanism; the AI-specific behavior stays here.

How to read these books explains the shared first-principles, prediction, reasoning, testing, and validation method.