Commit Graph

8 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
186615c18a fix(tinytorch): fix test ordering and non-interactive mode issues
Bug fixes:
- Move test_autograd_core.py from 05_dataloader/ to 06_autograd/ (fixes #1127)
- Fix integration test mapping: tests now only run after their dependencies
  are available (module 4 loss tests moved to module 7+)
- Remove premature test_unit_function_classes() call in 06_autograd.py
  that ran before enable_autograd() (fixes #1128)
- Handle EOFError in milestone prompts for non-interactive mode (fixes #1129)

Improvements:
- Read version from pyproject.toml as single source of truth
- Add try/except for sync prompt in milestone completion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 12:17:32 -05:00
Vijay Janapa Reddi
96b4914e61 fix(tito): update CLI module dependencies and mappings
- Update milestone required_modules to include full training infrastructure (modules 1-8)
- Fix module-to-test mappings: DataLoader (05), Autograd (06), Optimizers (07), Training (08)
- Update profiler mappings in status_analyzer for current module numbers
- Fix workflow milestone mappings to reflect correct module dependencies
- Correct Acceleration (17) and Memoization (18) references
2025-12-19 20:52:46 -05:00
Vijay Janapa Reddi
0d076aee26 fix: update tier boundaries across all documentation
Comprehensive update to reflect correct module assignments:
- Foundation Tier: 01-08 (was incorrectly 01-07 in many places)
- Architecture Tier: 09-13 (was incorrectly 08-13 in many places)

Updated files:
- Site pages: intro.md, big-picture.md, getting-started.md
- Tier docs: olympics.md, optimization.md
- TITO docs: milestones.md
- Source ABOUT.md: 09, 10, 11, 12, 13, 14, 16
- Paper diagrams: module_flow.dot, module_flow_horizontal.tex
- Milestones: README.md, 02_1969_xor/ABOUT.md
- Tests: integration/README.md
- CLI: tito/commands/module/test.py
2025-12-19 20:12:24 -05:00
Vijay Janapa Reddi
42f5b34ceb chore: update tools and remaining files for module swap 2025-12-19 19:30:46 -05:00
Vijay Janapa Reddi
853eb03ee8 style: apply consistent whitespace and formatting across codebase 2025-12-13 14:05:34 -05:00
Vijay Janapa Reddi
90212103d6 fix(tito): correct module naming and centralize module discovery
Fixes MLSysBook/TinyTorch#22

The module mappings were hardcoded in multiple files and had drifted
out of sync with actual folder names. Module 15 was incorrectly mapped
to "15_acceleration" instead of "15_quantization".

Changes:
- Add tito/core/modules.py that auto-discovers modules from src/ directory
- Remove hardcoded module mappings from workflow.py, reset.py, test.py
- Replace hardcoded next_modules dicts in export.py and src.py
- Single source of truth: filesystem is now the source

This prevents future sync issues - adding/renaming module folders
automatically updates the CLI without code changes.
2025-12-09 20:05:33 -08:00
Vijay Janapa Reddi
fa6d951a8a fix(tinytorch): fix test flakiness and coverage requirements
- Add np.random.seed(42) to test_deep_network_gradient_chain for reproducibility
- Add --no-cov to tito module test to avoid root pyproject.toml coverage requirements
- Skip test_layers_networks_integration.py when tinytorch.core.dense is not implemented
2025-12-07 04:32:14 -08:00
Vijay Janapa Reddi
c602f97364 feat: integrate TinyTorch into MLSysBook repository
TinyTorch educational deep learning framework now lives at tinytorch/

Structure:
- tinytorch/src/         - Source modules (single source of truth)
- tinytorch/tito/        - CLI tool
- tinytorch/tests/       - Test suite
- tinytorch/site/        - Jupyter Book website
- tinytorch/milestones/  - Historical ML implementations
- tinytorch/datasets/    - Educational datasets (tinydigits, tinytalks)
- tinytorch/assignments/ - NBGrader assignments
- tinytorch/instructor/  - Teaching materials

Workflows (with tinytorch- prefix):
- tinytorch-ci.yml           - CI/CD pipeline
- tinytorch-publish-dev.yml  - Dev site deployment
- tinytorch-publish-live.yml - Live site deployment
- tinytorch-build-pdf.yml    - PDF generation
- tinytorch-release-check.yml - Release validation

Repository Variables added:
- TINYTORCH_ROOT  = tinytorch
- TINYTORCH_SRC   = tinytorch/src
- TINYTORCH_SITE  = tinytorch/site
- TINYTORCH_TESTS = tinytorch/tests

All workflows use \${{ vars.TINYTORCH_* }} for path configuration.

Note: tinytorch/site/_static/favicon.svg kept as SVG (valid for favicons)
2025-12-05 19:23:18 -08:00