Big Picture
2-minute orientation before you begin building
You’re about to build a working ML framework, one module at a time. Before diving in, take two minutes to see how the twenty modules connect, what you’ll have when you’re done, and which path through the book fits your goals.
TinyTorch Overview
· AI-generated
The Journey: Foundation to Production
TinyTorch takes you from a bare tensor to a production-style ML system in twenty modules. They connect like this.
Three tiers, one system:
Foundation (01-08) — Build the core machinery. Tensors hold data, activations add non-linearity, layers combine them, losses measure error, DataLoader streams batches, autograd computes gradients, optimizers update weights, training orchestrates the loop.
Architecture (green, 09-13) — Apply the foundation to real problems. The DataLoader from Module 05 feeds data; from there you take one of two paths—convolutions for images, or the transformer stack (Tokenization → Embeddings → Attention → Transformers) for text.
Optimization (14-19) — Make it fast. Profile to find bottlenecks, then apply quantization, compression, acceleration, or memoization. Benchmark to prove the gain.
Figure 1 shows how the pieces fit together.