Files
TinyTorch/modules/source/10_training/module.yaml
T
Vijay Janapa Reddi 3bdfddca51 Finalize 15-module structure: MLPs → CNNs → Transformers
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.
2025-09-22 10:07:09 -04:00

32 lines
931 B
YAML

# TinyTorch Module Metadata
# Essential system information for CLI tools and build systems
name: "training"
title: "Training"
description: "Neural network training loops, loss functions, and metrics"
# Dependencies - Used by CLI for module ordering and prerequisites
dependencies:
prerequisites: ["setup", "tensor", "activations", "layers", "networks", "dataloader", "autograd", "optimizers"]
enables: ["compression", "kernels", "benchmarking", "mlops"]
# Package Export - What gets built into tinytorch package
exports_to: "tinytorch.core.training"
# File Structure - What files exist in this module
files:
dev_file: "training_dev.py"
readme: "README.md"
tests: "inline"
# Educational Metadata
difficulty: "⭐⭐⭐⭐"
time_estimate: "8-10 hours"
# Components - What's implemented in this module
components:
- "MeanSquaredError"
- "CrossEntropyLoss"
- "BinaryCrossEntropyLoss"
- "Accuracy"
- "Trainer"