Machine Learning Systems
Machine Learning Systems, MLSys Book, AI Engineering, Physical AI, Agentic AI Systems, Distributed Machine Learning, Edge AI, TinyML, Harvard CS249r, Machine Learning Systems Textbook
FOUR-VOLUME SERIESOPEN TEXTBOOK SERIES
Machine Learning
Systems.
The physics of AI engineering.
A rigorous, principles-first treatment of how ML systems are built, optimized, and deployed, from single machines and distributed scale to autonomous agents and physical embodimentto distributed scale.
A complete curriculum for AI engineering.
Choose a path: read the books, explore trade-offs in labs, build the internals with TinyTorch, model constraints with MLSys·im, deploy on real hardware, practice with StaffML, or plan a course with the Instructor Hub.
Play a short systems game →For Students & Learners
EXPLORE
Labs
Interactive Marimo notebooks in which students change a parameter and watch which constraint binds.
BUILD
TinyTorch
An ML framework built from scratch in 20 modules, each adding one part of the framework.
MODEL
MLSys·im
Analytical performance models of training and inference, from microcontrollers to datacenter clusters.
DEPLOY
Hardware Kits
Labs that deploy ML models to Arduino, Seeed, Grove, and Raspberry Pi boards, within their memory and power limits.
For Career & Instructors
PRACTICE
StaffML
Interview questions for ML systems roles, with a question vault, drills, and mock interviews.
ADOPT
Instructor Hub
A syllabus for each course, with weekly readings, slides, and labs.
TEACH
Lecture Slides
44 Beamer lecture decks with speaker notes and 1,502 original SVG diagrams, ready to teach or adapt.
FOLLOW
Newsletter
Updates on the curriculum, new chapters, and what the community is building.
OUR MISSION
AI education should be
free and open to everyone.
Everyone calls AI the new electricity, but electricity is useless without engineers who can build the grid. For AI to be efficient, reliable, and safe, the world needs engineers who understand how to build it.
That knowledge should be accessible to anyone willing to learn. This curriculum is our commitment to making it so.
Live readership: 18,389 readers a month on average across 204 countries and territories
Top countries: United States · India · Singapore · China · Vietnam
TAUGHT AT
- 313,063
- readers
- 204
- countries &
territories - 18,389
- avg. a month
Our goal: one million learners by 2030
Star on GitHub 28,106
Every star helps another learner find this book.
Our sponsors and partners keep it free for all of them.
