Build intuition for ML systems without GPU hardware.
For a student taking a first ML systems course or preparing for industry interviews, MLSys·im offers a way to experiment with real hardware specifications and see why systems behave the way they do. Hardware registry specs come from datasheets where available; outputs are derived from documented equations.
Learning Objectives
Students who work through the MLSys·im tutorials learn to:
Identify bottlenecks: Determine whether a workload is memory-bound or compute-bound on any hardware, and understand why
Reason quantitatively: Use real datasheet numbers (not made-up examples) to calculate latency, throughput, and cost
Build systems intuition: See how batch size, precision, parallelism strategy, and datacenter location each affect performance
Think across the stack: Connect workload characteristics to hardware specs to infrastructure constraints
Prerequisites
Python: Comfortable with functions, loops, and f-strings
Math: Basic algebra (closed-form equations using square roots, logarithms, and exponentials; no calculus required)
ML: Familiarity with terms like “model parameters,” “inference,” and “training” (the Glossary defines everything else)
No GPU, no cloud account, and no special hardware are required. Installation is one command:
pip install mlsysim
See the Getting Started guide for development installs. Local install is the supported path; Colab works by running pip install mlsysim in the first cell, but one-click Colab/Binder launch buttons are not available yet.
Quick Start
import mlsysimfrom mlsysim import Engine# Load a model and hardware from the vetted registrymodel = mlsysim.Models.Vision.ResNet50gpu = mlsysim.Hardware.Cloud.A100# Solve: is this workload memory-bound or compute-bound?profile = Engine.solve(model=model, hardware=gpu, batch_size=1, precision="fp16", efficiency=1.0)print(f"Bottleneck: {profile.bottleneck}")print(f"Latency: {profile.latency.to('ms'):~.2f}")
Bottleneck: Memory
Latency: 0.06 ms
Learning Path
Start at the top and work through in order. Each tutorial builds on the one before it. The Textbook · Study Sheet · Slides column links directly to the web chapter, two-page study sheet, and lecture deck covering the same physics.
Each tutorial is an executable walkthrough that pairs analytical equations with live solver code. Before inspecting the solver output in each section, estimate the expected bottleneck or scaling trend from the formula. This practice builds the mental models that effective systems reasoning depends on. The companion slide decks reinforce the same habit with 8–11 active learning moments per deck.
How MLSys·im Maps to the Textbook, Labs, and Slides
MLSys·im is the companion framework for the Machine Learning Systems textbook. Each solver maps to specific chapters, study sheets, and lecture decks (see the Cross-Volume Textbook Map for all chapters and cross-volume physics threads).
NoteAgentic & Physical AI Solvers (Volumes III & IV Preview)
MLSys·im also models multi-step agent horizons (HorizonCompoundingModel, AcceptedTaskCostModel, PagedAllocationModel in Vol III · Ch 1 and Vol III · Ch 5) and cyber-physical control deadlines (StoppingBudgetModel, PhaseLagBudgetModel, ObservationAgeModel in Vol IV · Ch 1 and Vol IV · Ch 8).
MLSys·im is self-contained and does not require the textbook. The Math Foundations page documents the core equations, and each slide deck stands on its own with full speaker notes.
Recommended Study Workflow
For self-study or a course, this workflow maximizes retention:
Read the textbook chapter (or skim the slide deck) to get the conceptual framework
Predict what will happen before running any code, and write it down
Model the setup using MLSys·im to test the prediction against real hardware specs
Explore by changing one parameter at a time (batch size, precision, hardware) and observing the effect
Reflect on where the prediction was wrong, because that gap is where learning happens
NoteSelf-Study vs. Classroom
For self-study, the slide decks include speaker notes with timing guidance, teaching tips, and common misconceptions, written to be useful even without an instructor. In a course, the instructor may assign specific tutorials as homework; the Instructor Guide gives the recommended pairing.
Textbook, Labs & Slides at a Glance
The companion curriculum spans single-machine fundamentals and fleet-scale infrastructure, with two-page study sheets and Beamer lecture decks (speaker notes, active learning exercises, and SVG diagrams) for every chapter.
Volume I: Introduction to Machine Learning Systems
Covers the single-machine ML stack: data engineering, neural computation, architectures, frameworks, training, compression, hardware acceleration, serving, and operations.