Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cs249r_book

> DevOps
Open source

Machine Learning Systems

27.7K stars0 likes3 views
WebsiteGitHub

About

Machine Learning Systems

# Machine Learning Systems *Principles and Practices of Engineering Artificially Intelligent Systems*

English • 中文 • 日本語 • 한국어

--- ## Mission That gap is what we mean by AI engineering. **AI engineering is the discipline of building efficient, reliable, safe, and robust intelligent systems that operate in the real world, not just models in isolation.** Our mission is to establish AI engineering as a foundational discipline alongside software engineering and computer engineering, by teaching how to design, build, and evaluate end-to-end intelligent systems. **Our goal:** Help **100,000 learners** master ML Systems this year, and reach **1 million by 2030**. --- ## Why One Repository I designed this as a single integrated curriculum, not a collection of independent projects. The textbook teaches the theory. TinyTorch makes you *build* the internals. The hardware kits force you to confront *real* constraints. The simulator lets you reason about infrastructure you can't afford to rent. Each piece exists because I found that students who only read don't internalize, and students who only code don't generalize. A growing community of contributors helps improve every part of it: fixing errors, sharpening explanations, testing on new hardware. Their work makes this better for everyone, and I'm grateful for every pull request. --- ## The Curriculum Every component connects. The textbook gives you the mental models. The labs let you reason through trade-offs interactively, powered by MLSys·im — a modeling engine for infrastructure you can't physically access, and a standalone tool in its own right. TinyTorch makes you build the machinery yourself. The hardware kits put you face-to-face with real deployment constraints. StaffML tests whether you actually understand it. Socratiq adds AI-guided reading, contextual quizzes, and spaced repetition inside the learning experience. And the instructor hub, slides, and newsletter give educators everything they need to bring this into a classroom.

### For Students
Component Role in the Curriculum Link
📖 Textbook Series Four-volume MIT Press textbook series on Machine Learning Systems Architecture:
• Vol I: Introduction to Machine Learning Systems (Foundations & Release Edition)
• Vol II: Scaling Machine Learning Systems (Preview / Work in Progress)
• Vol III: Agentic Machine Learning Systems (In Development / Early Draft)
• Vol IV: Physical AI: Machine Learning Systems (In Development / Early Draft)
Vol I · Vol II (Preview) · Vol III (Draft) · Vol IV (Draft)
🔬 Labs Interactive Marimo notebooks where you explore trade-offs from the textbook: change a parameter, see what breaks, build intuition. Powered by MLSys·im under the hood. Launch labs · Repo guide
🔥 Tiny🔥Torch Build your own ML framework from scratch across 20 progressive modules. You don't understand a system until you've built one. Get started
🛠️ Hardware Kits Deploy ML to Arduino, Seeed, Grove, and Raspberry Pi devices. Real memory limits, real power budgets, real latency. Browse labs
🔮 MLSys·im Calculate memory bottlenecks, network saturation, and scheduling limits at infrastructure scales you can't physically access. Use simulator · Repo guide
💼 StaffML Physics-grounded interview questions for ML systems roles. Vault, practice drills, mock interviews, and progress tracking. Practice · Repo guide
### For Educators
Component What It Provides Link
🎓 Instructor Hub The AI Engineering Blueprint: two 16-week syllabi, pedagogy guide, assessment rubrics, and a TA handbook. View hub · Repo guide
🎬 Lecture Slides Beamer slide decks for every chapter, with four theme variants. Drop into your course and teach. Browse decks · Repo guide
📬 Newsletter Updates on the curriculum, new chapters, and what the community is building. Subscribe
--- ## Choose Your Path The pieces are designed to work together, but you do not need to adopt everything at once. | If you are... | Start here | Then go deeper | |---|---|---| | **A student or self-learner** | [Read Volume I](https://mlsysbook.ai/vol1/) and try [Lab 00](https://mlsysbook.ai/labs/vol1/lab_00_introduction/) | Build [TinyTorch](https://mlsysbook.ai/tinytorch/), use [MLSys·im](https://mlsysbook.ai/mlsysim/), and practice with [StaffML](https://mlsysbook.ai/staffml/) | | **An instructor** | Open [The AI Engineering Blueprint](https://mlsysbook.ai/instructors/) | Use the [course map](https://mlsysbook.ai/instructors/course-map.html), [slides](https://mlsysbook.ai/slides/), rubrics, and TA guide | | **A contributor** | Pick the component you use most | Improve chapters, labs, tests, examples, hardware notes, simulator models, or assessment content | The learning loop is: **Read → Explore → Build → Model → Deploy → Practice → Teach**. ### Adjacent and Experimental Work Some projects are intentionally earlier-stage than the main curriculum: - [Socratiq](socratiq/README.md) explores AI-guided reading, contextual quizzes, and spaced repetition for static learning sites. - [MLPerf EDU](mlperf-edu/README.md) is an under-construction pedagogical benchmark suite aligned with MLCommons MLPerf. - [ML Systems Design Grammar](design-grammar/README.md) is an experimental framework for reasoning from stable primitives, constraints, and rewrite rules. --- ## What You Will Learn This textbook teaches you to think at the intersection of machine learning and systems engineering. Each chapter bridges algorithmic concepts with the infrastructure that makes them work in practice.
You know... You will learn...
How to train a model → How training scales across GPU clusters
That quantization shrinks models → How INT8 math maps to silicon
What a transformer is → Why KV-cache dominates memory at inference
Models run on GPUs → How schedulers balance latency vs throughput
Edge devices have limits → How to co-design models and hardware
### Book Structure The textbook series follows a comprehensive systems progression across four core volumes:
Volume Unit of Work Core Systems Question Consequence of Failure
📗 Volume I
Foundations
The Model How do we make intelligence execute efficiently on a single node? Bad prediction or degraded runtime efficiency.
📘 Volume II
Scaling (Preview)
The Fleet How do we scale intelligence across distributed clusters and datacenters? Multi-million dollar cluster stall or service outage.
🟣 Volume III
Agentic (Notebook)
The Trajectory How do we govern intelligence acting autonomously over long horizons? Compounding trajectory drift and unauthorized side-effects.
🌲 Volume IV
Physical AI (Notebook)
The Physical Plant How do we let intelligence act safely on matter and physical systems? Irreversible physical damage in the real world.
> *Note: Volumes III and IV are currently active research notebooks as these disciplines rapidly evolve. Over time, they may mature into formal textbooks—for now, they are where I explore first principles and separate durable systems foundations from noise. You are welcome to follow along as they take shape.* #### How the Volumes Connect Each volume in the series expands the systems boundary, answering the question that the previous level leaves open: * **From Model to Fleet (Vol I → Vol II)**: *When one machine is not enough.* Volume I masters single-node execution, memory walls, and kernel efficiency. Volume II scales those foundations across thousands of accelerators, collective communication fabrics, fault-tolerant networks, and datacenter orchestration. * **From Request to Trajectory (Vol II → Vol III)**: *When a stateless response is not enough.* Volume II scales stateless request-response inference. Volume III introduces stateful, multi-step autonomous loops—managing context memory hierarchies, tool execution protocols (MCP), isolation sandboxes, and non-deterministic recovery. * **From Cyberspace to Matter (Vol III → Vol IV)**: *When software acts on the physical world.* Volume III governs digital tools and software environments. Volume IV crosses the causal boundary into physical plants—governing real-time sensor-actuator loops where computation

Issues· 8 open

View all issuesOpen on GitHub
  • #1810

    Link Rot Tracker (auto-updated nightly)

    link-rotUpdated Sep 30, 2026
  • #2114

    [Bug] Inconsistent description of GPU/CPU crossover in Batch Size Sweep section

    type: bugarea: bookUpdated Sep 18, 2026
  • #2117

    [Bug] tito module complete uses src code instead of module code

    type: bugarea: tinytorchUpdated Sep 17, 2026
  • #1684

    [TinyTorch] Answers already in module 1

    type: improvementtype: bugarea: bookarea: tinytorchUpdated Sep 16, 2026
  • #1792

    StaffML: Improvement suggestions — MCQ mode, coding questions, recent-papers section, and on-device architecture content

    type: improvementarea: staffmlUpdated Sep 14, 2026
  • #1822

    StaffML: link each question to recommended textbook reading (topic → chapter)

    type: improvementarea: bookarea: staffmlUpdated Sep 14, 2026

> Tags

Pythonartificial-intelligencecloud-mlcomputer-systemscourseware

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理