mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-06-02 17:16:34 -05:00
Clean, dependency-driven organization: - Part I (1-5): MLPs for XORNet - Part II (6-10): CNNs for CIFAR-10 - Part III (11-15): Transformers for TinyGPT Key improvements: - Dropped modules 16-17 (regularization/systems) to maintain scope - Moved normalization to module 13 (Part III where it's needed) - Created three CIFAR-10 examples: random, MLP, CNN - Each part introduces ONE major innovation (FC → Conv → Attention) CIFAR-10 now showcases progression: - test_random_baseline.py: ~10% (random chance) - train_mlp.py: ~55% (no convolutions) - train_cnn.py: ~60%+ (WITH Conv2D - shows why convolutions matter!) This follows actual ML history and each module is needed for its capstone.
31 lines
806 B
YAML
31 lines
806 B
YAML
# TinyTorch Module Metadata
|
|
# Essential system information for CLI tools and build systems
|
|
|
|
name: "optimizers"
|
|
title: "Optimizers"
|
|
description: "Gradient-based parameter optimization algorithms"
|
|
|
|
# Dependencies - Used by CLI for module ordering and prerequisites
|
|
dependencies:
|
|
prerequisites: ["setup", "tensor", "autograd"]
|
|
enables: ["training", "compression", "mlops"]
|
|
|
|
# Package Export - What gets built into tinytorch package
|
|
exports_to: "tinytorch.core.optimizers"
|
|
|
|
# File Structure - What files exist in this module
|
|
files:
|
|
dev_file: "optimizers_dev.py"
|
|
readme: "README.md"
|
|
tests: "inline"
|
|
|
|
# Educational Metadata
|
|
difficulty: "⭐⭐⭐⭐"
|
|
time_estimate: "6-8 hours"
|
|
|
|
# Components - What's implemented in this module
|
|
components:
|
|
- "SGD"
|
|
- "Adam"
|
|
- "StepLR"
|
|
- "gradient_descent_step" |