What are the best books on AI engineering?
Short answer
The best books on AI engineering in 2026 are Chip Huyen's AI Engineering for building on foundation models, Designing Machine Learning Systems by the same author for ML system design, Hands-On Large Language Models and Build a Large Language Model (From Scratch) for how LLMs work, and Reliable Machine Learning and From Model to Product (by this site's author) for running AI in production. Start with the one that matches your gap.
By Dr. Dulan Dias, co-founder and CTO of Tellme AI
Key facts
- Chip Huyen's AI Engineering (O'Reilly, December 2024) covers building applications on foundation models, which involves more prompt engineering, context construction and parameter-efficient fine-tuning.
- Huyen's Designing Machine Learning Systems (O'Reilly, May 2022) covers applications built on traditional ML models, which involve more data annotation, feature engineering and model training.
- Sebastian Raschka's Build a Large Language Model (From Scratch), published by Manning in September 2024, codes a GPT-style model without existing LLM libraries, then pretrains and fine-tunes it.
- The second edition of Designing Data-Intensive Applications, by Martin Kleppmann and Chris Riccomini, was published by O'Reilly in March 2026.
- Reliable Machine Learning (O'Reilly, 2022), by Cathy Chen, Niall Richard Murphy, Kranti Parisa, D. Sculley and Todd Underwood, applies site reliability engineering principles to machine learning in production.
- Aurélien Géron's Hands-On Machine Learning with Scikit-Learn and PyTorch (O'Reilly, 2025) is a new PyTorch-based book from the author of the three TensorFlow-based editions of Hands-On Machine Learning.
- From Model to Product (independently published, March 2026) is written by Dr. Dulan Dias, the author of this site.
Definitions
- LLM application
- Software whose behaviour depends on a large language model used through prompts, retrieved context or fine-tuning, plus the code, data and controls around it.
- ML systems design
- Deciding how data, features, models, training, serving and monitoring fit together so that a machine learning system meets its requirements in production, not just on a test set.
- MLOps
- The practices that join building ML systems to operating them: automated pipelines, versioning of code, data and models, testing, deployment, monitoring and retraining.
How these books were chosen
Each book here still holds up in November 2026, is written by people who have built or run the systems they describe, and earns its place for a specific need. Titles, authors, publishers and years were checked against the publisher's or the author's own page. Books that mainly document one framework's API were left out, because they date within months.
Disclosure: From Model to Product is written by Dr. Dulan Dias, who also writes this site. It appears in the group where it belongs, with an account of where it differs, and is not ranked above the others.
The list at a glance
| Book | Author(s) | Publisher, year | Read it for |
|---|---|---|---|
| Hands-On Machine Learning with Scikit-Learn and PyTorch | Aurélien Géron | O'Reilly, 2025 | Machine learning fundamentals in code |
| Build a Large Language Model (From Scratch) | Sebastian Raschka | Manning, 2024 | How an LLM works inside |
| AI Engineering | Chip Huyen | O'Reilly, 2024 | Building applications on foundation models |
| Hands-On Large Language Models | Jay Alammar, Maarten Grootendorst | O'Reilly, 2024 | LLM concepts through figures and notebooks |
| LLM Engineer's Handbook | Paul Iusztin, Maxime Labonne | Packt, 2024 | One LLM system built end to end |
| Designing Machine Learning Systems | Chip Huyen | O'Reilly, 2022 | ML system design decisions |
| Designing Data-Intensive Applications, 2nd edition | Martin Kleppmann, Chris Riccomini | O'Reilly, 2026 | The data systems under every AI product |
| Reliable Machine Learning | Cathy Chen, Niall Richard Murphy, Kranti Parisa, D. Sculley, Todd Underwood | O'Reilly, 2022 | Running ML reliably in production |
| From Model to Product | Dulan S. Dias (this site's author) | Independently published, 2026 | The production system around a model |
Foundations: how models and LLMs work
Hands-On Machine Learning with Scikit-Learn and PyTorch, by Aurélien Géron, is the practical route into machine learning for programmers. It runs from regression and an end-to-end Scikit-Learn project to neural networks, transformers and diffusion models in PyTorch, fine-tuning pretrained models and reinforcement learning. Read it if overfitting, validation sets or precision versus recall are still fuzzy: you need them to judge any model, an LLM included.
Build a Large Language Model (From Scratch), by Sebastian Raschka, builds a GPT-style model step by step: preparing text data, coding attention, pretraining, then fine-tuning for classification and for following instructions. You will not train foundation models at work, but after this book tokenisation, context windows and fine-tuning stop being black boxes.
Building LLM applications
AI Engineering, by Chip Huyen, is the most complete single book on building with foundation models. It covers whether to build at all, evaluation (including using AI to judge AI), prompt engineering, RAG, agents, fine-tuning, dataset engineering and making models faster and cheaper. It is deliberately not a tutorial and has little code, which is why it stays useful after the APIs it mentions change.
Hands-On Large Language Models, by Jay Alammar and Maarten Grootendorst, teaches through almost 300 custom figures and runnable notebooks: tokens and embeddings, the inside of a transformer, classification and clustering, prompt engineering, semantic search and RAG, multimodal models and fine-tuning. It suits engineers who learn visually and want to run every example.
LLM Engineer's Handbook, by Paul Iusztin and Maxime Labonne, takes one project the whole way: data collection, a training pipeline, a simple RAG system, deployment on AWS, monitoring, and testing and evaluation. Read it to see every stage wired together in code, and expect its tool choices to date faster than its structure.
ML systems design
Designing Machine Learning Systems, by Chip Huyen, treats an ML system as a chain of decisions about training data, features, how often to retrain and what to monitor, with case studies. Its examples are classical ML, but the material on distribution shift, monitoring and continual learning applies directly to LLM products. Huyen positions AI Engineering as its companion: one centres on traditional models, the other on foundation models.
Designing Data-Intensive Applications is not an AI book, and it belongs on the list anyway, because an AI product is a data system first. Replication, partitioning, transactions, streams and the trade-offs between storage engines decide whether retrieval, feature serving and logging hold up. The 2026 second edition, by Martin Kleppmann and Chris Riccomini, updates the first for current technologies and cloud services.
Production and MLOps
Reliable Machine Learning, by Cathy Chen, Niall Richard Murphy, Kranti Parisa, D. Sculley and Todd Underwood, applies site reliability engineering to machine learning, from monitoring models in production to how an organisation should run model development. It suits engineers who will be on call for a model and the leads who build the team around it.
From Model to Product, by Dr. Dulan Dias (the author of this site), covers the system around a model: problem framing, choosing between rules, classical ML and LLMs, data and storage architecture, APIs, deployment, monitoring, reliability, cost, teams and governance. Where it differs: it carries one product, a waste-sorting assistant that combines an on-device vision model, rules and a language model, from design through operation, and it treats classical ML and computer vision alongside LLMs. It is lighter than AI Engineering on LLM evaluation and does not cover agents or front-end work. What the book covers lists every chapter.
Which book should you read first?
Read one book properly and build something alongside it before starting the next. The roadmap from software engineer to AI engineer puts reading and projects in sequence.
| Your background | Start with | Then |
|---|---|---|
| Software engineer adding LLM features | AI Engineering | Designing Machine Learning Systems |
| Software engineer new to machine learning | Hands-On Machine Learning with Scikit-Learn and PyTorch | AI Engineering |
| Data scientist moving into production | Designing Machine Learning Systems | Reliable Machine Learning |
| Engineer who wants to know how LLMs work inside | Build a Large Language Model (From Scratch) | Hands-On Large Language Models |
| Founder or tech lead with a prototype to ship | From Model to Product (disclosed above) or AI Engineering | Reliable Machine Learning |
| Engineer building data-heavy back ends | Designing Data-Intensive Applications | Designing Machine Learning Systems |
Frequently asked questions
Which AI engineering book should a software engineer read first?
A software engineer adding AI features should usually start with Chip Huyen's AI Engineering, because it starts where most product work now starts: a capable foundation model and the question of how to adapt, evaluate and serve it. If machine learning basics such as validation sets and precision are unfamiliar, read Aurélien Géron's Hands-On Machine Learning with Scikit-Learn and PyTorch first.
What is the difference between AI Engineering and Designing Machine Learning Systems?
Chip Huyen wrote both, and describes them as companions. Designing Machine Learning Systems (2022) focuses on applications built on traditional ML models, with more data annotation, feature engineering and model training. AI Engineering (2024) focuses on applications built on foundation models, with more prompt engineering, context construction and parameter-efficient fine-tuning. Each stands alone.
Do you need to build an LLM from scratch to become an AI engineer?
Building an LLM from scratch is not required for AI engineering, since the job is adapting and running existing models rather than training new ones. Working through a book such as Sebastian Raschka's Build a Large Language Model (From Scratch) still pays off: tokenisation, attention, context limits and fine-tuning become concrete, which makes debugging and cost decisions easier.
Do AI engineering books go out of date quickly?
AI engineering books that teach a specific library or model API date within months; books built on principles last much longer. Prefer those that explain evaluation, data, system design and trade-offs over those organised around one framework, and pair them with current documentation for the tools you use. Check the publication year and edition before buying.
How does From Model to Product differ from Chip Huyen's AI Engineering?
From Model to Product, by this site's author Dr. Dulan Dias, covers the whole production system around a model, including classical ML and computer vision, through one running product from design to operation. Chip Huyen's AI Engineering goes deeper on foundation models specifically: evaluation methods, prompting, RAG, agents, fine-tuning and inference optimisation. Many readers will want both.
Which books cover MLOps and running models in production?
For running models in production, read Reliable Machine Learning, which applies site reliability engineering to ML, and Designing Machine Learning Systems, whose later chapters cover deployment, distribution shift, monitoring and MLOps tooling. LLM Engineer's Handbook shows a complete pipeline in code, and From Model to Product covers packaging, monitoring, reliability and cost for a hybrid AI product.
Are there free resources to read alongside these books?
Several free resources pair well with these books. Google's Rules of Machine Learning, by Martin Zinkevich, is a short guide to shipping ML pragmatically. Chip Huyen's Machine Learning Interviews book is free and open source. Each book's own repository, such as the notebooks for Hands-On Large Language Models, also holds runnable code you can study without buying anything.
Sources
- Chip Huyen: books
- Chip Huyen: AI Engineering book repository
- Manning: Build a Large Language Model (From Scratch)
- Hands-On Large Language Models: official repository
- Packt: LLM Engineer's Handbook official repository
- Aurélien Géron: Hands-On Machine Learning with Scikit-Learn and PyTorch
- Martin Kleppmann: Designing Data-Intensive Applications, second edition
- Google Research: Reliable Machine Learning

About the author
Dr. Dulan Dias is co-founder and Chief Technology Officer of Tellme AI in Belfast; founder of EchonLabs, grown from 2017 to more than 60 people before its acquisition in 2026; holder of a PhD in AI and data science from Queen’s University Belfast; and the author of From Model to Product.