Part 07›
✎

Part 07: ML in Production: From Idea to Deployed System#

Take an ML idea through requirements, architecture, deployment and operations with a software engineer's discipline, and apply the same thinking to LLM and agent systems.

This part is written for a software engineer who has never worked with ML. You do not need to train a model to read it. You need the habit of asking what a component assumes, what happens when it fails, and how you would know.

What you can do after this part#

Chapters#

Read in order the first time. Each chapter builds on the one before.

# Chapter Level Reading What you can do afterward
01 From Models to Systems and Products Foundation 25 min Map the system around a model: goal, components, interfaces, consequences
02 When to Use ML, and When Not To Foundation 20 min Decide with a measured baseline and a full cost table
03 Goals and Requirements Practitioner 25 min Write layered goals, one precise measure each, and requirements that separate world from software
04 Planning for Mistakes Practitioner 30 min Run a mistake analysis with FMEA, fault trees and two checklists
05 Architecture for ML Systems Practitioner 20 min Draw components, interfaces and decision records
06 Quality Attributes of ML Components Practitioner 25 min Trade latency, cost and accuracy on evidence, not opinion
07 Deploying a Model Practitioner 30 min Choose how a model is served, where it runs and how it is updated
08 Automating the Pipeline Practitioner 25 min Turn a notebook into a pipeline of tested stages
09 Scaling the System Practitioner 15 min Do the capacity arithmetic before buying anything
10 Planning for Operations Practitioner 30 min Pass a launch review with objectives, monitors, rollback and an incident plan

Three shorter routes:

How the chapters are built#

Every chapter uses the same small product: a feature that routes support tickets to the team that can solve them. The model changes from a keyword rule to a classifier to an LLM as the chapters need it.

Background you may want#

If the words model, training and prediction are new, chapter 01 defines them. For more, read Machine Learning in a Nutshell. This part does not cover how models learn. Parts 01 and 10 do.

Source#

The part is synthesized from Christian Kästner, Machine Learning in Production: From Models to Products (MIT Press, 2025), chapters 1, 2 and 4 to 13: free online edition. The book is licensed CC BY-NC-ND 4.0. Every chapter paraphrases and links to the chapters of the book it draws on, and was checked against their full text.

Kästner's own running examples are a transcription service, a fraud detector and smart glasses. This part retells three of them where they are the clearest illustration: the toaster, the legal chatbot and the smart glasses. Everything else uses the support-ticket feature.