Where MLSys·im Clicks in the Textbook
How first-principles physics connects chapters, study sheets, and lecture slides across the Machine Learning Systems series.
MLSys·im is the quantitative engine behind the Machine Learning Systems curriculum. Rather than treating single-chip kernels, distributed training clusters, interactive serving fleets, and cyber-physical control loops as disconnected subjects, MLSys·im models them with the same typed physical quantities—FLOPs, bytes, bandwidth, latency, energy, and failure rates.
Use this map in two ways:
- Follow a physical constraint across volumes (Seven Cross-Volume Threads) to see how one equation—such as the Roofline bound or KV-cache byte growth—evolves as systems scale up and out.
- Look up any textbook chapter (Chapter-by-Chapter Lookup) to jump straight to its companion MLSys·im solvers, hands-on tutorials, study sheet, and lecture slides.
Suggested workflow: Read the chapter section for the conceptual model → predict which ceiling binds → test your prediction with the paired MLSys·im tutorial or solver → check your understanding with the chapter’s study sheet.
Seven Cross-Volume Systems Threads
Each thread below traces one foundational systems constraint across the textbook series, pairing every chapter stop with its study sheet, lecture deck, and executable MLSys·im solvers.
1. Compute, Bandwidth & the Roofline Ceiling
Every ML workload is bounded by the slower of arithmetic throughput and data movement. Across the four volumes, that single ratio governs GPU kernels, cluster fabrics, reasoning token budgets, and real-time robot compute.
Single-chip arithmetic intensity, Tensor Cores, HBM bandwidth, and the ridge point.
Kernel fusion and SRAM tiling (FlashAttention IO complexity) across fleet accelerators.
Inference-time compute scaling: reasoning steps and verification budgets per query.
Onboard sensorimotor compute ceilings under hard millisecond control deadlines.
SingleNodeModel, EfficiencyModel, InferenceScalingModel, SynthesisSolverTutorials: 0 · Hello, Roofline · 1 · The Memory Wall · 10 · GPU vs. Wafer2. Two-Phase Inference & Stateful Memory
Autoregressive generation splits into compute-bound prefill and memory-bound decode, while retained state grows with horizon—from single-request KV caches to paged fleet pools, agent trajectories, and 3D spatial maps.
TTFT vs. ITL physics and per-token GQA KV-cache capacity on one accelerator.
PagedAttention fragmentation bounds, chunked prefill stalls, and M/M/c replica sizing.
Prefix-cache hit economics and append-only context growth across multi-turn agent loops.
Bounded spatial memory, voxel raymarching traffic, and map freshness in physical environments.
3. Precision, Quantization & Fidelity Margins
Lowering bitwidth shrinks memory footprint and raises arithmetic intensity, but effective savings depend on group-scale overhead, hardware Tensor Core support, and how much error the downstream task or control loop can tolerate.
Group quantization (b_eff = b + b_scale/g), structured sparsity, and regime-dependent speedup.
Fitting foundation and vision models inside edge DRAM, SRAM, and battery envelopes.
Capability-per-bit trade-offs when quantized models drive multi-step tool calling.
Worst-case perception error and latency margins inside physical safety envelopes.
CompressionModel, PrecisionDividendModel, StoppingBudgetModelTutorials: 5 · Quantization Regimes · 9 · Sensitivity Analysis4. Data Pipelines, Fabrics & Distributed Coordination
Fast silicon starves whenever host preprocessing, storage, network collectives, RPC sandboxes, or deterministic fieldbuses cannot deliver bytes in time.
Storage read rates and CPU decode/augmentation pipelines feeding a local accelerator.
4D parallelism (DP/TP/PP/EP), Ring/Tree AllReduce, pipeline bubbles, and MoE All-to-All.
Tool-sandbox serialization overhead and coordination fan-out across multi-agent graphs.
CAN-FD and EtherCAT cycle-time budgets linking sensors, compute, and actuators.
5. Fault Tolerance, Checkpointing & Recovery
At scale or over long horizons, component and step failures become routine. Analytical checkpointing and replay budgets separate net useful progress (goodput) from raw throughput.
Monitoring, silent degradation, and rollback contracts for single-service deployments.
Series cluster MTBF (M/N) and Young-Daly optimal checkpoint waste.
Durable step journaling, retry amplification ceilings, and repair break-even in agents.
Human takeover budgets, supervisor queueing, and fail-operational fallback trajectories.
6. TCO, Energy, Carbon & Water
Deployability is bounded by dollars, megawatts, carbon intensity, and cooling water—from single-model lifecycle planning to hyperscale datacenters, agent task bills, and battery-constrained robots.
Framing engineering targets around end-to-end lifecycle cost and deployment constraints.
Facility PUE, regional grid carbon intensity, embodied carbon, and site-based WUE.
Amortizing prompt caching, tool invocations, and failed attempts into cost per solved task.
Actuator drivetrain losses, thermal derating, and onboard battery mission endurance.
7. Privacy, Security & Safety Envelopes
Responsible engineering translates normative requirements—differential privacy, untrusted tool isolation, and physical collision avoidance—into explicit compute, sample, latency, and distance budgets.
Subsampled Gaussian DP-SGD noise multipliers, clipping overhead, and subgroup sample sizing.
Confidential compute, multi-tenant isolation, and fleet-scale governance controls.
Prompt-injection exposure across untrusted observations, approval escrow, and sandboxes.
Kinematic stopping-distance envelopes and verified safety boundaries in the physical world.
Chapter-by-Chapter Lookup
Reading a specific chapter or preparing a lecture? Find the exact chapter below to launch its web text, study sheet, slide deck, and MLSys·im analytical models.