Module 0: Setup - TinyTorch System Configuration#
+Setup - TinyTorch System Configuration#
Welcome to TinyTorch! This setup module configures your personal TinyTorch installation and teaches you the NBGrader workflow.
π― Learning Goals
@@ -570,7 +570,7 @@ document.write(` title="next page"> diff --git a/book/_build/html/chapters/01-setup.html b/book/_build/html/chapters/01-setup.html new file mode 100644 index 00000000..d0ab6c62 --- /dev/null +++ b/book/_build/html/chapters/01-setup.html @@ -0,0 +1,654 @@ + + + + + + + + + + + +Setup - TinyTorch System Configuration
+ +Contents
+Setup - TinyTorch System Configuration#
+Welcome to TinyTorch! This setup module configures your personal TinyTorch installation and teaches you the NBGrader workflow.
+π― Learning Goals
+-
+
Configure your personal TinyTorch installation with custom information
+Learn to query system information using Python modules
+Master the NBGrader workflow: implement β test β export
+Create functions that become part of your tinytorch package
+Understand solution blocks, hidden tests, and automated grading
+
The Big Picture: Why Configuration Matters in ML Systems#
+Configuration is the foundation of any production ML system. In this module, youβll learn:
+1. System Awareness#
+Real ML systems need to understand their environment:
+-
+
Hardware constraints: Memory, CPU cores, GPU availability
+Software dependencies: Python version, library compatibility
+Platform differences: Linux servers, macOS development, Windows deployment
+
2. Reproducibility#
+Configuration enables reproducible ML:
+-
+
Environment documentation: Exactly what system was used
+Dependency management: Precise versions and requirements
+Debugging support: System info helps troubleshoot issues
+
3. Professional Development#
+Proper configuration shows engineering maturity:
+-
+
Attribution: Your work is properly credited
+Collaboration: Others can understand and extend your setup
+Maintenance: Systems can be updated and maintained
+
4. ML Systems Context#
+This connects to broader ML engineering:
+-
+
Model deployment: Different environments need different configs
+Monitoring: System metrics help track performance
+Scaling: Understanding hardware helps optimize training
+
Letβs build the foundation of your ML systems engineering skills!
+π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 1: Tensor - Core Data Structure
+Tensor - Core Data Structure
Module 1: Tensor - Core Data Structure#
+Tensor - Core Data Structure#
Welcome to the Tensor module! This is where TinyTorch really begins. Youβll implement the fundamental data structure that powers all ML systems.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/02-activations.html b/book/_build/html/chapters/02-activations.html index 23d805e5..2cea26b8 100644 --- a/book/_build/html/chapters/02-activations.html +++ b/book/_build/html/chapters/02-activations.html @@ -9,7 +9,7 @@ -Foundation
@@ -401,7 +401,7 @@ document.write(`Module 2: Activations - Nonlinearity in Neural Networks
+Activations - Nonlinearity in Neural Networks
Module 2: Activations - Nonlinearity in Neural Networks#
+Activations - Nonlinearity in Neural Networks#
Welcome to the Activations module! This is where neural networks get their power through nonlinearity.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/02-tensor.html b/book/_build/html/chapters/02-tensor.html new file mode 100644 index 00000000..9d1644bd --- /dev/null +++ b/book/_build/html/chapters/02-tensor.html @@ -0,0 +1,609 @@ + + + + + + + + + + + +Tensor - Core Data Structure
+ +Contents
+Tensor - Core Data Structure#
+Welcome to the Tensor module! This is where TinyTorch really begins. Youβll implement the fundamental data structure that powers all ML systems.
+π― Learning Goals
+-
+
Understand tensors as N-dimensional arrays with ML-specific operations
+Implement a complete Tensor class with arithmetic operations
+Handle shape management, data types, and memory layout
+Build the foundation for neural networks and automatic differentiation
+Master the NBGrader workflow with comprehensive testing
+
Build β Use β Understand#
+-
+
Build: Create the Tensor class with core operations
+Use: Perform tensor arithmetic and transformations
+Understand: How tensors form the foundation of ML systems
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Activations - Nonlinearity in Neural Networks
+ +Contents
+Activations - Nonlinearity in Neural Networks#
+Welcome to the Activations module! This is where neural networks get their power through nonlinearity.
+π― Learning Goals
+-
+
Understand why activation functions are essential for neural networks
+Implement the four most important activation functions: ReLU, Sigmoid, Tanh, and Softmax
+Visualize how activations transform data and enable complex learning
+See how activations work with layers to build powerful networks
+Master the NBGrader workflow with comprehensive testing
+
Build β Use β Understand#
+-
+
Build: Activation functions that add nonlinearity
+Use: Transform tensors and see immediate results
+Understand: How nonlinearity enables complex pattern learning
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 3: Layers - Building Blocks of Neural Networks
+Layers - Building Blocks of Neural Networks
Module 3: Layers - Building Blocks of Neural Networks#
+Layers - Building Blocks of Neural Networks#
Welcome to the Layers module! This is where we build the fundamental components that stack together to form neural networks.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/04-layers.html b/book/_build/html/chapters/04-layers.html new file mode 100644 index 00000000..9247ce81 --- /dev/null +++ b/book/_build/html/chapters/04-layers.html @@ -0,0 +1,609 @@ + + + + + + + + + + + +Layers - Building Blocks of Neural Networks
+ +Contents
+Layers - Building Blocks of Neural Networks#
+Welcome to the Layers module! This is where we build the fundamental components that stack together to form neural networks.
+π― Learning Goals
+-
+
Understand how matrix multiplication powers neural networks
+Implement naive matrix multiplication from scratch for deep understanding
+Build the Dense (Linear) layer - the foundation of all neural networks
+Learn weight initialization strategies and their importance
+See how layers compose with activations to create powerful networks
+
Build β Use β Understand#
+-
+
Build: Matrix multiplication and Dense layers from scratch
+Use: Create and test layers with real data
+Understand: How linear transformations enable feature learning
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 4: Networks - Neural Network Architectures
+Networks - Neural Network Architectures
Module 4: Networks - Neural Network Architectures#
+Networks - Neural Network Architectures#
Welcome to the Networks module! This is where we compose layers into complete neural network architectures.
π― Learning Goals
@@ -535,7 +535,7 @@ document.write(` diff --git a/book/_build/html/chapters/05-cnn.html b/book/_build/html/chapters/05-cnn.html index b2cc7971..d517cd09 100644 --- a/book/_build/html/chapters/05-cnn.html +++ b/book/_build/html/chapters/05-cnn.html @@ -9,7 +9,7 @@ -Foundation
@@ -401,7 +401,7 @@ document.write(`Module 5: CNN - Convolutional Neural Networks
+CNN - Convolutional Neural Networks
Module 5: CNN - Convolutional Neural Networks#
+CNN - Convolutional Neural Networks#
Welcome to the CNN module! Here youβll implement the core building block of modern computer vision: the convolutional layer.
π― Learning Goals
@@ -535,7 +535,7 @@ document.write(` diff --git a/book/_build/html/chapters/05-networks.html b/book/_build/html/chapters/05-networks.html new file mode 100644 index 00000000..288da09c --- /dev/null +++ b/book/_build/html/chapters/05-networks.html @@ -0,0 +1,622 @@ + + + + + + + + + + + +Networks - Neural Network Architectures
+ +Contents
+Networks - Neural Network Architectures#
+Welcome to the Networks module! This is where we compose layers into complete neural network architectures.
+π― Learning Goals
+-
+
Understand networks as function composition:
f(x) = layer_n(...layer_2(layer_1(x)))
+Build the Sequential network architecture for composing layers
+Create common network patterns like MLPs (Multi-Layer Perceptrons)
+Visualize network architectures and understand their capabilities
+Master forward pass inference through complete networks
+
Build β Use β Reflect#
+-
+
Build: Sequential networks that compose layers into complete architectures
+Use: Create different network patterns and run inference
+Reflect: How architecture design affects network behavior and capability
+
What Youβll Learn#
+By the end of this module, youβll understand:
+-
+
How simple layers combine to create complex behaviors
+The fundamental Sequential architecture pattern
+How to build MLPs with any number of layers
+Different network architectures (shallow, deep, wide)
+How neural networks approximate complex functions
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+CNN - Convolutional Neural Networks
+ +Contents
+CNN - Convolutional Neural Networks#
+Welcome to the CNN module! Here youβll implement the core building block of modern computer vision: the convolutional layer.
+π― Learning Goals
+-
+
Understand the convolution operation and its importance in computer vision
+Implement Conv2D with explicit for-loops to understand the sliding window mechanism
+Build convolutional layers that can detect spatial patterns in images
+Compose Conv2D with other layers to build complete convolutional networks
+See how convolution enables parameter sharing and translation invariance
+
Build β Use β Reflect#
+-
+
Build: Conv2D layer using sliding window convolution from scratch
+Use: Transform images and see feature maps emerge
+Reflect: How CNNs learn hierarchical spatial patterns
+
What Youβll Learn#
+By the end of this module, youβll understand:
+-
+
How convolution works as a sliding window operation
+Why convolution is perfect for spatial data like images
+How to build learnable convolutional layers
+The CNN pipeline: Conv2D β Activation β Flatten β Dense
+How parameter sharing makes CNNs efficient
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 6: DataLoader - Data Loading and Preprocessing
+DataLoader - Data Loading and Preprocessing
Module 6: DataLoader - Data Loading and Preprocessing#
+DataLoader - Data Loading and Preprocessing#
Welcome to the DataLoader module! This is where youβll learn how to efficiently load, process, and manage data for machine learning systems.
π― Learning Goals
@@ -535,7 +535,7 @@ document.write(` diff --git a/book/_build/html/chapters/07-autograd.html b/book/_build/html/chapters/07-autograd.html index 6a54ff2a..e20902bd 100644 --- a/book/_build/html/chapters/07-autograd.html +++ b/book/_build/html/chapters/07-autograd.html @@ -9,7 +9,7 @@ -Foundation
@@ -401,7 +401,7 @@ document.write(`Module 7: Autograd - Automatic Differentiation Engine
+Autograd - Automatic Differentiation Engine
Module 7: Autograd - Automatic Differentiation Engine#
+Autograd - Automatic Differentiation Engine#
Welcome to the Autograd module! This is where TinyTorch becomes truly powerful. Youβll implement the automatic differentiation engine that makes neural network training possible.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/07-dataloader.html b/book/_build/html/chapters/07-dataloader.html new file mode 100644 index 00000000..84890282 --- /dev/null +++ b/book/_build/html/chapters/07-dataloader.html @@ -0,0 +1,622 @@ + + + + + + + + + + + +DataLoader - Data Loading and Preprocessing
+ +Contents
+DataLoader - Data Loading and Preprocessing#
+Welcome to the DataLoader module! This is where youβll learn how to efficiently load, process, and manage data for machine learning systems.
+π― Learning Goals
+-
+
Understand data pipelines as the foundation of ML systems
+Implement efficient data loading with memory management and batching
+Build reusable dataset abstractions for different data types
+Master the Dataset and DataLoader pattern used in all ML frameworks
+Learn systems thinking for data engineering and I/O optimization
+
Build β Use β Reflect#
+-
+
Build: Create dataset classes and data loaders from scratch
+Use: Load real datasets and feed them to neural networks
+Reflect: How data engineering affects system performance and scalability
+
What Youβll Learn#
+By the end of this module, youβll understand:
+-
+
The Dataset pattern for consistent data access
+How DataLoaders enable efficient batch processing
+Why batching and shuffling are crucial for ML
+How to handle datasets larger than memory
+The connection between data engineering and model performance
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Autograd - Automatic Differentiation Engine
+ +Contents
+Autograd - Automatic Differentiation Engine#
+Welcome to the Autograd module! This is where TinyTorch becomes truly powerful. Youβll implement the automatic differentiation engine that makes neural network training possible.
+π― Learning Goals
+-
+
Understand how automatic differentiation works through computational graphs
+Implement the Variable class that tracks gradients and operations
+Build backward propagation for gradient computation
+Create the foundation for neural network training
+Master the mathematical concepts behind backpropagation
+
Build β Use β Analyze#
+-
+
Build: Create the Variable class and gradient computation system
+Use: Perform automatic differentiation on complex expressions
+Analyze: Understand how gradients flow through computational graphs
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 8: Optimizers - Gradient-Based Parameter Updates
+Optimizers - Gradient-Based Parameter Updates
Module 8: Optimizers - Gradient-Based Parameter Updates#
+Optimizers - Gradient-Based Parameter Updates#
Welcome to the Optimizers module! This is where neural networks learn to improve through intelligent parameter updates.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/09-optimizers.html b/book/_build/html/chapters/09-optimizers.html new file mode 100644 index 00000000..026e2ecf --- /dev/null +++ b/book/_build/html/chapters/09-optimizers.html @@ -0,0 +1,609 @@ + + + + + + + + + + + +Optimizers - Gradient-Based Parameter Updates
+ +Contents
+Optimizers - Gradient-Based Parameter Updates#
+Welcome to the Optimizers module! This is where neural networks learn to improve through intelligent parameter updates.
+π― Learning Goals
+-
+
Understand gradient descent and how optimizers use gradients to update parameters
+Implement SGD with momentum for accelerated convergence
+Build Adam optimizer with adaptive learning rates
+Master learning rate scheduling strategies
+See how optimizers enable effective neural network training
+
Build β Use β Analyze#
+-
+
Build: Core optimization algorithms (SGD, Adam)
+Use: Apply optimizers to train neural networks
+Analyze: Compare optimizer behavior and convergence patterns
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 9: Training - Complete Neural Network Training Pipeline
+Training - Complete Neural Network Training Pipeline
Module 9: Training - Complete Neural Network Training Pipeline#
+Training - Complete Neural Network Training Pipeline#
Welcome to the Training module! This is where we bring everything together to train neural networks on real data.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/10-compression.html b/book/_build/html/chapters/10-compression.html index fe30d03c..fb4020cb 100644 --- a/book/_build/html/chapters/10-compression.html +++ b/book/_build/html/chapters/10-compression.html @@ -9,7 +9,7 @@ -Foundation
@@ -401,7 +401,7 @@ document.write(`Module 10: Compression & Optimization - Making AI Models Efficient
+Compression & Optimization - Making AI Models Efficient
Module 10: Compression & Optimization - Making AI Models Efficient#
+Compression & Optimization - Making AI Models Efficient#
Welcome to the Compression module! This is where youβll learn to make neural networks smaller, faster, and more efficient for real-world deployment.
π― Learning Goals
@@ -524,7 +524,7 @@ document.write(` diff --git a/book/_build/html/chapters/10-training.html b/book/_build/html/chapters/10-training.html new file mode 100644 index 00000000..966eb5eb --- /dev/null +++ b/book/_build/html/chapters/10-training.html @@ -0,0 +1,609 @@ + + + + + + + + + + + +Training - Complete Neural Network Training Pipeline
+ +Contents
+Training - Complete Neural Network Training Pipeline#
+Welcome to the Training module! This is where we bring everything together to train neural networks on real data.
+π― Learning Goals
+-
+
Understand loss functions and how they measure model performance
+Implement essential loss functions: MSE, CrossEntropy, and BinaryCrossEntropy
+Build evaluation metrics for classification and regression
+Create a complete training loop that orchestrates the entire process
+Master checkpointing and model persistence for real-world deployment
+
Build β Use β Optimize#
+-
+
Build: Loss functions, metrics, and training orchestration
+Use: Train complete models on real datasets
+Optimize: Analyze training dynamics and improve performance
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Compression & Optimization - Making AI Models Efficient
+ +Contents
+Compression & Optimization - Making AI Models Efficient#
+Welcome to the Compression module! This is where youβll learn to make neural networks smaller, faster, and more efficient for real-world deployment.
+π― Learning Goals
+-
+
Understand how model size affects deployment and why compression matters
+Implement magnitude-based pruning to remove unimportant weights
+Master quantization to reduce memory usage by 75%
+Build knowledge distillation for training compact models
+Create structured pruning to optimize network architectures
+Compare compression techniques and their trade-offs
+
Build β Use β Optimize#
+-
+
Build: Four compression techniques from scratch
+Use: Apply compression to real neural networks
+Optimize: Combine techniques for maximum efficiency gains
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -401,7 +401,7 @@ document.write(`Module 11: Kernels - Hardware-Optimized ML Operations
+Kernels - Hardware-Optimized ML Operations
Module 11: Kernels - Hardware-Optimized ML Operations#
+Kernels - Hardware-Optimized ML Operations#
Welcome to the Kernels module! This is where we move beyond NumPy to understand how ML operations are optimized for modern hardware. Youβll implement custom kernels that run faster than standard library functions.
π― Learning Goals
@@ -524,7 +524,7 @@ document.write(` diff --git a/book/_build/html/chapters/12-benchmarking.html b/book/_build/html/chapters/12-benchmarking.html index 24b1039c..29e60bf9 100644 --- a/book/_build/html/chapters/12-benchmarking.html +++ b/book/_build/html/chapters/12-benchmarking.html @@ -9,7 +9,7 @@ -Foundation
@@ -401,7 +401,7 @@ document.write(`Module 12: Benchmarking - Systematic ML Performance Evaluation
+Benchmarking - Systematic ML Performance Evaluation
Module 12: Benchmarking - Systematic ML Performance Evaluation#
+Benchmarking - Systematic ML Performance Evaluation#
Welcome to the Benchmarking module! This is where we learn to systematically evaluate ML systems using industry-standard methodology inspired by MLPerf.
π― Learning Goals
@@ -523,7 +523,7 @@ document.write(` diff --git a/book/_build/html/chapters/12-kernels.html b/book/_build/html/chapters/12-kernels.html new file mode 100644 index 00000000..4c76ff5c --- /dev/null +++ b/book/_build/html/chapters/12-kernels.html @@ -0,0 +1,610 @@ + + + + + + + + + + + +Kernels - Hardware-Optimized ML Operations
+ +Contents
+Kernels - Hardware-Optimized ML Operations#
+Welcome to the Kernels module! This is where we move beyond NumPy to understand how ML operations are optimized for modern hardware. Youβll implement custom kernels that run faster than standard library functions.
+π― Learning Goals
+-
+
Understand why custom kernels matter for ML performance
+Implement vectorized operations using SIMD principles
+Master memory-efficient algorithms for better cache utilization
+Build parallel processing patterns for CPU and GPU-style computing
+Create performance profiling tools to measure and optimize code
+Apply kernel optimizations to compressed model operations
+
Build β Use β Optimize#
+-
+
Build: Custom operations, vectorization, and memory optimization
+Use: Apply optimized kernels to real ML workloads
+Optimize: Profile, measure, and improve performance systematically
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Benchmarking - Systematic ML Performance Evaluation
+ +Contents
+Benchmarking - Systematic ML Performance Evaluation#
+Welcome to the Benchmarking module! This is where we learn to systematically evaluate ML systems using industry-standard methodology inspired by MLPerf.
+π― Learning Goals
+-
+
Understand the four-component MLPerf benchmarking architecture
+Implement different benchmark scenarios (latency, throughput, offline)
+Apply statistical validation for meaningful results
+Create professional performance reports for ML projects
+Learn to avoid common benchmarking pitfalls
+
Build β Use β Analyze#
+-
+
Build: Benchmarking framework with proper statistical validation
+Use: Apply systematic evaluation to your TinyTorch models
+Analyze: Generate professional reports with statistical confidence
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
@@ -400,7 +400,7 @@ document.write(`Module 13: MLOps - Production ML Systems
+MLOps - Production ML Systems
Module 13: MLOps - Production ML Systems#
+MLOps - Production ML Systems#
Welcome to the MLOps module! This is where we close the loop on the complete ML system lifecycle.
π― Learning Goals
@@ -522,7 +522,7 @@ document.write(`MLOps - Production ML Systems
+ +Contents
+MLOps - Production ML Systems#
+Welcome to the MLOps module! This is where we close the loop on the complete ML system lifecycle.
+π― Learning Goals
+-
+
Understand why ML models degrade over time without maintenance
+Implement performance monitoring and drift detection systems
+Build automated retraining triggers that use your training pipeline
+Create model comparison and deployment workflows
+See how all TinyTorch components work together in production
+
Build β Use β Deploy#
+-
+
Build: Complete MLOps infrastructure for model lifecycle management
+Use: Deploy and monitor ML systems that automatically respond to issues
+Deploy: Create production-ready systems that maintain themselves over time
+
π Interactive Learning#
+Choose your preferred way to engage with this module:
+πΎ Save Your Progress
+Binder sessions are temporary! Download your completed notebook when done, or switch to local development for persistent work.
+Ready for serious development? β ποΈ Local Setup Guide
+Foundation
Building Blocks
Training Systems
Production & Performance
Foundation
Building Blocks
Training Systems
Production & Performance
Ready to build? β ποΈ Serious Development (Fork repo and build your ML framework)
Teaching a class? β π¨βπ« Classroom Use (Complete course infrastructure)
Quick Taste: Try Chapter 0 Right Now#
-Want to see what TinyTorch feels like? Launch the Setup chapter in Binder and implement your first TinyTorch function in 2 minutes!
+Quick Taste: Try Chapter 1 Right Now#
+Want to see what TinyTorch feels like? Launch the Setup chapter in Binder and implement your first TinyTorch function in 2 minutes!
ποΈ Big Picture: Why Build from Scratch?#
Most ML education teaches you to use frameworks. TinyTorch teaches you to understand them.
-Traditional ML Course: TinyTorch Approach:
-βββ import torch βββ Build your own tensors
-βββ model = nn.Linear(10, 1) βββ Implement Linear layers
-βββ loss = nn.MSELoss() βββ Create loss functions
-βββ optimizer.step() βββ Build optimizers
-βββ "How does this work?" π€· βββ "I built this!" πͺ
+Traditional ML Course: TinyTorch Approach:
+βββ import torch βββ class Tensor:
+βββ model = nn.Linear(10, 1) β def __add__(self, other): ...
+βββ loss = nn.MSELoss() β def backward(self): ...
+βββ optimizer.step() βββ class Linear:
+βββ "How does this work?" π€· β def forward(self, x):
+ β return x @ self.weight + self.bias
+ βββ def mse_loss(pred, target):
+ β return ((pred - target) ** 2).mean()
+ βββ class SGD:
+ β def step(self):
+ β param.data -= lr * param.grad
+ βββ "I implemented every line!" πͺ
Result: You become the person others come to when they need to understand βhow PyTorch actually works under the hood.β
@@ -722,7 +729,7 @@ document.write(`
Foundation
Building Blocks
Training Systems
Production & Performance
Foundation
Building Blocks
Training Systems
Production & Performance
1. Review Course Materials#
Browse the course overview
-Test the setup module
+Test the setup module
Foundation
Building Blocks
Training Systems
Production & Performance
- π Launch Immediately (0 Setup Required)
- π Recommended Exploration Path
- β οΈ Important Limitations @@ -460,32 +460,32 @@ document.write(`
Understand the TinyTorch development workflow
Get familiar with the educational approach
See how components fit together
Implement your first ML function (ReLU)
See immediate visual results
Understand why nonlinearity matters
Create the building blocks of neural networks
Combine your ReLU with matrix operations
See how simple math becomes powerful AI
- π Launch Immediately (0 Setup Required)
- π Recommended Exploration Path
- β οΈ Important Limitations diff --git a/book/_build/html/usage-paths/serious-development.html b/book/_build/html/usage-paths/serious-development.html index 18ab8255..aa9abdc2 100644 --- a/book/_build/html/usage-paths/serious-development.html +++ b/book/_build/html/usage-paths/serious-development.html @@ -176,29 +176,29 @@ const thebe_selector_output = ".output, .cell_output"
π Recommended Exploration Path#
-Start Here: Chapter 0 - Setup#
+Start Here: Chapter 1 - Setup#
π Launch Setup Chapter
+π Launch Setup Chapter
Then Try: Chapter 2 - Activations#
+Then Try: Chapter 3 - Activations#
Build Up: Chapter 3 - Layers#
+Build Up: Chapter 4 - Layers#
@@ -585,9 +585,9 @@ document.write(`
Foundation
Building Blocks
Training Systems
Production & Performance
Choose Your Module#
-New to ML frameworks? β Start with Setup
-Have ML experience? β Jump to Tensors
-Want to see the vision? β Try Activations
New to ML frameworks? β Start with Setup +Have ML experience? β Jump to Tensors +Want to see the vision? β Try Activations
+
+
+
+