mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-10 16:38:39 -05:00
- Add training_dev.py with comprehensive educational structure - Implement MeanSquaredError, CrossEntropyLoss, BinaryCrossEntropyLoss - Add Accuracy metric with extensible framework - Create Trainer class for complete training orchestration - Include comprehensive inline tests for all components - Add module.yaml with proper dependencies and metadata - Create detailed README.md with examples and applications - Add test_training_integration.py with real component integration tests - Follow TinyTorch NBDev educational pattern with Build → Use → Optimize - Ready for real-world training workflows with validation and monitoring
28 lines
852 B
YAML
28 lines
852 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"
|
|
|
|
# Components - What's implemented in this module
|
|
components:
|
|
- "MeanSquaredError"
|
|
- "CrossEntropyLoss"
|
|
- "BinaryCrossEntropyLoss"
|
|
- "Accuracy"
|
|
- "Trainer" |