Dive into Deep Learning · §39
Tools for Deep Learning: From Local Notebooks to Distributed Clusters and Serving
reproducible kernels · hosted runtimes · cloud economics · hardware rooflines · open-weight artifacts · distributed training · inference engines
Motivation
Quantitative Rules
M_{\text{train}} \approx 16 N + M_{\text{act}}, \qquad \text{tok/s} \lesssim \frac{\beta}{B_w + b n B_{\text{kv}}}
Chapter Architecture
uv lock files, Colab/Kaggle persistence, and cloud cost per completed result.safetensors/SHA pinning.Pedagogical Thread
uv pip sync, environment fingerprints, and engineer-inclusive cloud cost models across 4090 / A100 / H100.Study Guide
uv or on Colab and Kaggle without losing work to ephemeral sessions.d2l utilities.Up next (§39.1 Notebooks): How the Jupyter kernel execution model works, why hidden state breaks reproducibility, and how to set up deterministic local environments with uv.