Commit Graph

117 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
ff13efb393 docs(book): Update introduction, TOC, and learning progress from dev branch 2025-10-28 15:35:29 -04:00
Vijay Janapa Reddi
5bc35376d2 feat(website): Restructure TOC with pedagogically-sound three-tier learning pathway
Reorganized Jupyter Book navigation from scattered sections to coherent ML systems progression:

🏗️ Foundation Tier (01-07): Core systems building blocks
- Tensor, Activations, Layers, Losses, Autograd, Optimizers, Training
- Universal ML computational primitives everyone needs

🧠 Intelligence Tier (08-13): Modern AI algorithms implementation
- DataLoader, Spatial, Tokenization, Embeddings, Attention, Transformers
- Core algorithms that define modern ML systems (not "applications")

 Optimization Tier (14-19): Production systems engineering
- KV-Caching, Profiling, Acceleration, Quantization, Compression, Benchmarking
- Making intelligent algorithms fast, efficient, and scalable

🏅 Capstone Project (20): AI Olympics integration

This mirrors real ML systems engineering roles and builds proper conceptual
understanding for production ML systems work. Students need to understand
the intelligence algorithms before they can optimize them effectively.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-28 15:30:39 -04:00
Vijay Janapa Reddi
6cb37bc406 fix(autograd): Complete transformer gradient flow - ALL PARAMETERS NOW WORK!
Critical fixes to enable full gradient flow through transformer:

1. PermuteBackward:
   - Added general axis permutation backward function
   - Handles multi-dimensional transposes like (0, 2, 1, 3)
   - Fixed MultiHeadAttention breaking graph with np.transpose

2. GELUBackward:
   - Implemented GELU activation gradient
   - Uses tanh approximation derivative formula
   - Patched GELU.forward() in enable_autograd()

3. MultiHeadAttention fixes:
   - Replaced raw np.transpose with permute_axes helper
   - Now attaches PermuteBackward to preserve computation graph
   - Q/K/V projections now receive gradients 

Results:
- Before: 0/21 parameters with gradients (0%)
- After: 21/21 parameters with gradients (100%) 
- Single batch overfit: 4.66 → 0.10 (97.9% improvement!) 
- ALL Phase 1 architecture tests PASS 

Gradient flow verified through:
- Token + Position embeddings 
- LayerNorm (all 3 instances) 
- Multi-Head Attention (Q, K, V, out projections) 
- MLP (both linear layers) 
- LM head 

The transformer architecture is now fully differentiable!
2025-10-28 08:18:20 -04:00
Vijay Janapa Reddi
f1ae1728c6 🧹 Remove book/_build/ artifacts from git tracking
- Added book/_build/ to .gitignore
- Removed 540 auto-generated Jupyter Book build files from tracking
- Files remain locally for viewing but won't be committed anymore
- Reduces repo size and prevents merge conflicts on generated files
2025-10-25 17:37:43 -04:00
Vijay Janapa Reddi
9982d7c4d8 🧹 Clean up book files
- Remove command-reference.md (consolidated into tito-essentials)
- Update resources.md and testing-framework.md
2025-10-25 17:31:08 -04:00
Vijay Janapa Reddi
68ac62f182 📚 Update website navigation and content
- Add Module 20 (AI Olympics) to Competition section
- Remove Historical Milestones from navigation (simplify)
- Remove separate Leaderboard page (consolidate into capstone)
- Simplify AI Olympics capstone content (~60 lines)
  - Clear 'Coming Soon' box for competition platform
  - Brief category descriptions
  - Focus on what students can do now
- Simplify Community page (~50 lines)
  - Clear 'Coming Soon' box for dashboard features
  - Brief feature descriptions
  - Ways to participate now
- Split Competition and Community into separate nav sections
- Fix jupyter-book dependency compatibility for Python 3.8
  - myst-parser 0.18.1 (compatible with myst-nb 0.17.2)
  - sphinx 5.3.0
- Update requirements.txt with compatible versions

Result: Clean, honest, scannable website that shows all 20 modules
2025-10-25 17:26:54 -04:00
Vijay Janapa Reddi
4d70e308ff refactor: Update embeddings module to match tokenization style
- Standardize import structure following TinyTorch dependency chain
- Enhance section organization with 6 clear educational sections
- Add comprehensive ASCII diagrams matching tokenization patterns
- Improve code organization and function naming consistency
- Strengthen systems analysis and performance documentation
- Align package integration documentation with module standards

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-25 14:58:30 -04:00
Vijay Janapa Reddi
3f05acee4c Add construction-themed work-in-progress banner to website
- Bright yellow/orange gradient banner with construction icons (🚧 ⚠️ 🔨)
- Interactive controls for collapsing and dismissing the banner
- Responsive design that adapts to different screen sizes
- Clear messaging about active development and community feedback
- Proper spacing and professional appearance
- JavaScript functionality for persistent user preferences

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 16:19:10 -04:00
Vijay Janapa Reddi
0b961abc79 fix: Add sphinxcontrib-mermaid to book requirements
- Book _config.yml uses mermaid extension
- Extension was missing from requirements.txt
- Fixes Jupyter Book build error
2025-10-19 13:20:30 -04:00
Vijay Janapa Reddi
42a77450c0 docs: update README and website with milestones structure
- Updated main README to prominently feature historical milestones (1957-2024)
- Added new 'Journey Through ML History' section to book navigation
- Created comprehensive milestones-overview.md chapter explaining the progression
- Updated intro.md with milestone achievements section
- Enhanced quickstart-guide.md with milestone unlock information
- Reflects working milestones/ directory structure with 6 historical demonstrations
- Clear progression: Perceptron (1957) → XOR (1969) → MLP (1986) → CNN (1998) → Transformers (2017) → Systems (2024)
- Emphasizes proof-of-mastery approach with real achievements
2025-10-19 12:47:17 -04:00
Vijay Janapa Reddi
04cbc65724 Fix training pipeline: Parameter class, Variable.sum(), gradient handling
Major fixes for complete training pipeline functionality:

Core Components Fixed:
- Parameter class: Now wraps Variables with requires_grad=True for proper gradient tracking
- Variable.sum(): Essential for scalar loss computation from multi-element tensors
- Gradient handling: Fixed memoryview issues in autograd and activations
- Tensor indexing: Added __getitem__ support for weight inspection

Training Results:
- XOR learning: 100% accuracy (4/4) - network successfully learns XOR function
- Linear regression: Weight=1.991 (target=2.0), Bias=0.980 (target=1.0)
- Integration tests: 21/22 passing (95.5% success rate)
- Module tests: All individual modules passing
- General functionality: 4/5 tests passing with core training working

Technical Details:
- Fixed gradient data access patterns throughout activations.py
- Added safe memoryview handling in Variable.backward()
- Implemented proper Parameter-Variable delegation
- Added Tensor subscripting for debugging access

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-28 19:14:11 -04:00
Vijay Janapa Reddi
9400c82c35 Fix website navigation and content issues
- Updated quick start guide: Module 01 is now Tensor (not Setup)
- Fixed navigation menu: Corrected module numbering (01-19)
- Fixed mermaid diagram: Changed to Jupyter Book syntax
- Updated module descriptions to reflect actual content
- Emphasized ML systems learning with proper commands
2025-09-28 15:43:23 -04:00
Vijay Janapa Reddi
df6b7d44ae Update website: Emphasize ML Systems focus in 'Who Is This For' section
- Added ML Systems Engineers as primary audience
- Added Performance Engineers section
- Updated all sections to emphasize systems implications:
  - Memory hierarchies and OOM debugging
  - Computational complexity (O(N²) attention scaling)
  - Cache efficiency and memory access patterns
  - Production bottlenecks and optimization
- Changed focus from just ML algorithms to ML systems understanding
2025-09-28 15:36:17 -04:00
Vijay Janapa Reddi
4a9131f8c4 Major reorganization: Remove setup module, renumber all modules, add tito setup command and numeric shortcuts
- Removed 01_setup module (archived to archive/setup_module)
- Renumbered all modules: tensor is now 01, activations is 02, etc.
- Added tito setup command for environment setup and package installation
- Added numeric shortcuts: tito 01, tito 02, etc. for quick module access
- Fixed view command to find dev files correctly
- Updated module dependencies and references
- Improved user experience: immediate ML learning instead of boring setup
2025-09-28 07:02:08 -04:00
Vijay Janapa Reddi
5679cc804d feat: Complete educational module-developer framework with progressive disclosure
- Enhanced module-developer agent with Dr. Sarah Rodriguez persona
- Added comprehensive educational frameworks and Golden Rules
- Implemented Progressive Disclosure Principle (no forward references)
- Added Immediate Testing Pattern (test after each implementation)
- Integrated package structure template (📦 where code exports to)
- Applied clean NBGrader structure with proper scaffolding
- Fixed tensor module formatting and scope boundaries
- Removed confusing transparent analysis patterns
- Added visual impact icons system for consistent motivation

🎯 Ready to apply these proven educational principles to all modules
2025-09-28 05:33:38 -04:00
Vijay Janapa Reddi
9f014ae531 feat: Implement TinyTorch complexity framework for academic friendliness
MAJOR MILESTONE: Successfully balanced robustness with educational accessibility

Core Changes:
- **TinyTorch Assumptions Framework**: docs/tinytorch-assumptions.md
  - "Production Concepts, Educational Implementation" philosophy
  - 20% complexity for 80% learning objectives
  - Clear guidelines for type systems, error handling, memory analysis

- **Module 02 Tensor Simplifications**:
  - Simplified dtype system: Union[str, np.dtype, type] → string-only
  - Added module-level assumption documentation
  - Enhanced visual diagrams with narrative descriptions ("The Story")
  - Preserved core concepts while reducing implementation barriers

- **Narrative Learning Enhancement**:
  - Step-by-step explanations for complex visual diagrams
  - "What's happening" sections for memory layout, broadcasting
  - Concrete analogies (memory as library, cache as city blocks)

Team Consensus Achieved:
- Educational Review Expert: Progressive disclosure, cognitive load management
- ML Framework Advisor: Essential vs optional complexity identification
- Education Architect: Learning objective alignment
- Module Developer: Implementation feasibility validation
- Technical Program Manager: Coordinated framework implementation

Validation Results:
- Module 02 passes all tests with simplified complexity
- Students can implement tensor concepts without Union type confusion
- Production context preserved in advanced sections
- Clear path from educational to production understanding

Next: Apply framework to remaining modules for consistent complexity management
2025-09-27 16:59:00 -04:00
Vijay Janapa Reddi
a6a7d0c685 feat: Complete comprehensive TinyTorch educational enhancement (modules 02-20)
🎓 MAJOR EDUCATIONAL FRAMEWORK TRANSFORMATION:

 Enhanced 19 modules (02-20) with:
- Visual teaching elements (ASCII diagrams, performance charts)
- Computational assessment questions (76+ NBGrader-compatible)
- Systems insights functions (57+ executable analysis functions)
- Graduated comment strategy (heavy → medium → light)
- Enhanced educational structure (standardized patterns)

🔬 ML SYSTEMS ENGINEERING FOCUS:
- Memory analysis and scaling behavior in every module
- Performance profiling and complexity analysis
- Production context connecting to PyTorch/TensorFlow/JAX
- Hardware considerations and optimization strategies
- Real-world deployment scenarios and constraints

📊 COMPREHENSIVE ENHANCEMENTS:
- Module 02-07: Foundation (tensor, activations, layers, losses, autograd, optimizers)
- Module 08-13: Training Pipeline (training, spatial, dataloader, tokenization, embeddings, attention)
- Module 14-20: Advanced Systems (transformers, profiling, acceleration, quantization, compression, caching, capstone)

🎯 EDUCATIONAL OUTCOMES:
- Students learn ML systems engineering through hands-on implementation
- Complete progression from tensors to production deployment
- Assessment-ready with NBGrader integration
- Production-relevant skills that transfer to real ML engineering roles

📋 QUALITY VALIDATION:
- Educational review expert validation: Exceptional pedagogical design
- Unit testing: 15/19 modules pass comprehensive testing (79% success)
- Integration testing: 85.2% excellent cross-module compatibility
- Training validation: 10/10 perfect score - students can train working networks

🚀 FRAMEWORK IMPACT:
This transformation creates a world-class ML systems engineering curriculum
that bridges theory and practice through visual teaching, computational
assessments, and production-relevant optimization techniques.

Ready for educational deployment and industry adoption.
2025-09-27 16:14:27 -04:00
Vijay Janapa Reddi
442819ba8b feat: Enhance homepage with 2x2 comparison cards and flame-themed dividers
- Restore 2x2 card layout for library vs TinyTorch comparison
  - Top row: PyTorch/TensorFlow examples (red theme)
  - Bottom row: TinyTorch implementations (green theme)
  - Added subtle shadows and better visual hierarchy

- Add flame-themed section dividers between major sections
  - Gradient orange-to-red horizontal lines
  - 400px max width, centered, subtle opacity
  - Consistent spacing between all sections

- Improve visual appeal while maintaining educational clarity
- Better section separation for improved readability
2025-09-27 14:46:57 -04:00
Vijay Janapa Reddi
a21a006603 feat: Major book structure and content updates
- Reorganized chapter structure with new numbering system
- Added new chapters: introduction, tokenization, embeddings, profiling, quantization, caching
- Removed obsolete chapters (15-mlops) and consolidated content
- Updated table of contents and navigation structure
- Enhanced visual design with new logos and favicon
- Added comprehensive documentation (FAQ, user manual, command reference, competitions)
- Improved theme design and custom CSS styling
- Added QUICKSTART.md for rapid onboarding
- Updated all chapter cross-references and links
2025-09-27 01:36:16 -04:00
Vijay Janapa Reddi
9123de658b FIX: Restore complete navigation structure with 15 available chapters
Fixed the TOC to properly display all available chapter files:

Neural Network Foundations (8 modules):
- 01. Setup through 08. Training
- Core foundation modules for building neural networks

Computer Vision (2 modules):
- 09. Spatial (Conv2d operations)
- 10. DataLoader (Efficient data handling)

Language Models (2 modules):
- 11. Attention (Multi-head attention)
- 12. Transformers (Complete transformer blocks)

System Optimization (3 modules):
- 13. Compression (Model optimization)
- 14. Kernels (Performance kernels)
- 15. Benchmarking (TinyMLPerf framework)

The website navigation now works properly and shows the complete
module progression available for students. This maps correctly to
the existing chapter files in book/chapters/.
2025-09-26 15:17:44 -04:00
Vijay Janapa Reddi
4d20502ec3 REMOVE: MLOps module and ADD: TinyMLPerf Leaderboard placeholder
MLOps Module Removal:
- Remove deleted Module 21 (MLOps) from all documentation
- Update TOC to end at Module 20 (Benchmarking)
- Fix references in intro.md and README.md
- Clean up learning timeline to reflect 20-module structure

TinyMLPerf Leaderboard Addition:
- Create comprehensive leaderboard placeholder page at /leaderboard
- Detail competition categories: MLP Sprint, CNN Marathon, Transformer Decathlon
- Outline benchmark specifications and fair competition guidelines
- Reference future tinytorch.org/leaderboard domain
- Add leaderboard to main navigation under Resources & Tools
- Update README to point to leaderboard page

The website now accurately represents our 20-module curriculum
without premature MLOps references and includes exciting
competition framework for student engagement.
2025-09-26 15:14:19 -04:00
Vijay Janapa Reddi
9e6cd5487e FIX: Clean up website and documentation for production readiness
Major improvements:
- Fix module ordering to match actual 20-module progression (01-20 + MLOps)
- Clarify DataLoader as generic batching tool (not just CIFAR-10)
- Add work-in-progress banner with compelling 'Why TinyTorch?' message
- Add TinyMLPerf competition and leaderboard section
- Remove premature industry feedback section
- Acknowledge other TinyTorch/MiniTorch projects
- Simplify additional resources section
- Update Mermaid diagram to show DataLoader correctly
- Ensure git URL points to mlsysbook/TinyTorch

The website now accurately reflects our 20-module structure with proper
categorization and professional presentation ready for Spring 2025 launch.
2025-09-26 15:08:21 -04:00
Vijay Janapa Reddi
c8dc692a09 FEAT: Add interactive learning timeline and clean up website presentation
- Create comprehensive learning timeline page showing 60+ years of ML evolution
- Visual progress timeline from Perceptron (1957) to TinyMLPerf (2025)
- Module progression map with historical context and achievements
- Capability checkpoints tracking system integration
- Clean up emoji usage in TOC for professional presentation
- Add timeline as first item in Getting Started section
- Show students exactly what they'll build at each milestone
- Connect each module to real historical breakthroughs
- Emphasize progression from foundation to production systems
2025-09-26 14:57:44 -04:00
Vijay Janapa Reddi
2a2e34a7e4 DOCS: Professional documentation update with reduced emoji usage
- Update README and website to be more professional while staying welcoming
- Remove excessive emojis from headers and tables
- Keep strategic emoji usage for emphasis (checkmarks, warnings)
- Clean up module tables and section headers
- Update Mermaid diagrams to be cleaner
- Fix module count (20 not 16) and accuracy claims (75%+ CIFAR-10)
- Strengthen ML Systems engineering messaging throughout
- Update milestone examples with correct historical references
- Maintain accessibility and professional tone
2025-09-26 14:50:28 -04:00
Vijay Janapa Reddi
b808346cf8 Clean up repository: remove temp files, organize modules, prepare for PyPI publication
- Removed temporary test files and audit reports
- Deleted backup and temp_holding directories
- Reorganized module structure (07->09 spatial, 09->07 dataloader)
- Added new modules: 11-14 (tokenization, embeddings, attention, transformers)
- Updated examples with historical ML milestones
- Cleaned up documentation structure
2025-09-24 10:13:37 -04:00
Vijay Janapa Reddi
4ed91fe44f Complete comprehensive system validation and cleanup
🎯 Major Accomplishments:
•  All 15 module dev files validated and unit tests passing
•  Comprehensive integration tests (11/11 pass)
•  All 3 examples working with PyTorch-like API (XOR, MNIST, CIFAR-10)
•  Training capability verified (4/4 tests pass, XOR shows 35.8% improvement)
•  Clean directory structure (modules/source/ → modules/)

🧹 Repository Cleanup:
• Removed experimental/debug files and old logos
• Deleted redundant documentation (API_SIMPLIFICATION_COMPLETE.md, etc.)
• Removed empty module directories and backup files
• Streamlined examples (kept modern API versions only)
• Cleaned up old TinyGPT implementation (moved to examples concept)

📊 Validation Results:
• Module unit tests: 15/15 
• Integration tests: 11/11 
• Example validation: 3/3 
• Training validation: 4/4 

🔧 Key Fixes:
• Fixed activations module requires_grad test
• Fixed networks module layer name test (Dense → Linear)
• Fixed spatial module Conv2D weights attribute issues
• Updated all documentation to reflect new structure

📁 Structure Improvements:
• Simplified modules/source/ → modules/ (removed unnecessary nesting)
• Added comprehensive validation test suites
• Created VALIDATION_COMPLETE.md and WORKING_MODULES.md documentation
• Updated book structure to reflect ML evolution story

🚀 System Status: READY FOR PRODUCTION
All components validated, examples working, training capability verified.
Test-first approach successfully implemented and proven.
2025-09-23 10:00:33 -04:00
Vijay Janapa Reddi
49bd8b2b3f Restructure TinyTorch: Move TinyGPT to examples, improve testing framework
Major changes:
- Moved TinyGPT from Module 16 to examples/tinygpt (capstone demo)
- Fixed Module 10 (optimizers) and Module 11 (training) bugs
- All 16 modules now passing tests (100% health)
- Added comprehensive testing with 'tito test --comprehensive'
- Renamed example files for clarity (train_xor_network.py, etc.)
- Created working TinyGPT example structure
- Updated documentation to reflect 15 core modules + examples
- Added KISS principle and testing framework documentation
2025-09-22 09:37:18 -04:00
Vijay Janapa Reddi
17b5d61a96 Update website documentation to reflect current achievements
- Update intro.md to show realistic 57.2% CIFAR-10 accuracy
- Replace aspirational 75% compression claims with actual achievements
- Highlight 100% XOR accuracy milestone
- Clean up milestone examples to match new directory structure
- Remove outdated example references from milestones

Website documentation now accurately reflects TinyTorch capabilities!
2025-09-21 16:07:15 -04:00
Vijay Janapa Reddi
c1adc69c88 Remove redundant modules and streamline to 16-module structure
- Remove 00_introduction module (meta-content, not substantive learning)
- Remove 16_capstone_backup backup directory
- Remove utilities directory from modules/source
- Clean up generated book chapters for removed modules

Result: Clean 16-module progression (01_setup → 16_tinygpt) focused on
hands-on ML systems implementation without administrative overhead.
2025-09-18 16:41:43 -04:00
Vijay Janapa Reddi
5fbe431117 Clean up documentation formatting
- Remove bold formatting from all markdown headers
- Remove 'NEW:' tags from README to keep it clean
- Maintain professional academic appearance
2025-09-18 13:36:06 -04:00
Vijay Janapa Reddi
70642c9cfb Fix module dependency diagram and add mermaid support
- Corrected module dependencies based on actual YAML files
- Fixed diagram to show accurate prerequisite relationships:
  - Tensor directly enables both Activations and Autograd
  - DataLoader depends directly on Tensor (not through Spatial)
  - Training depends on Dense, Spatial, Attention, Optimizers, and DataLoader
  - TinyGPT depends on Attention, Optimizers, and Training
- Added sphinxcontrib-mermaid to requirements for diagram rendering
- Updated both intro.md and README.md with corrected diagrams
- Ensured mermaid extension is configured in _config.yml
2025-09-18 13:03:11 -04:00
Vijay Janapa Reddi
a7f879ceeb Fix spacing, add links, and improve content structure
- Tighten line spacing from 1.8 to 1.6 for better readability
- Reduce header margins for more compact appearance
- Add educational links (Binder, Colab) with proper URLs
- Fix time duplication in badges (use difficulty stars instead)
- Simplify setup module content for better clarity
- Improve content hierarchy with proper nesting
- Professional ML Engineering Skills section now properly organizes steps
- Consistent badge formatting across all modules
- More compact and professional appearance overall
2025-09-18 10:47:32 -04:00
Vijay Janapa Reddi
f88464a972 Enhance typography with Inter and JetBrains Mono fonts
- Replace Source Sans/Serif Pro with Inter for better screen readability
- Add JetBrains Mono for superior code display
- Increase body font size from 16px to 17px for better readability
- Optimize line height to 1.8 for comfortable reading
- Add proper font weights and letter spacing hierarchy
- Improve color contrast for accessibility
- Add CSS custom properties for maintainable design tokens
- Enhanced focus states and text selection
- Professional academic typography matching top educational platforms
2025-09-18 10:18:33 -04:00
Vijay Janapa Reddi
999fde74dc Transform to professional academic design
- Remove excessive emojis while maintaining strategic usage
- Update CSS with academic typography (Source Sans Pro, Source Serif Pro)
- Professional color scheme with academic blues (#2c3e50, #3498db)
- Clean navigation without emoji decorations
- Enhanced visual hierarchy with professional spacing
- University-level styling consistent with Harvard standards
- Maintained pedagogical effectiveness and engagement
- Improved readability with clean, accessible design
- Professional tone throughout all content
- Academic credibility without sacrificing approachability
2025-09-18 10:08:52 -04:00
Vijay Janapa Reddi
f5a46bb46d Move logo to correct book directory location 2025-09-18 09:49:28 -04:00
Vijay Janapa Reddi
c2c32db768 Improve Jupyter Book styling and configuration
- Replace ugly gray background with clean white theme
- Add proper logo styling and configuration
- Update book chapters from module READMEs
- Add educational-ml-docs-architect agent
- Clean up custom CSS for better readability
- Configure logo.png in correct location
- Update tito book command with proper chapters
2025-09-18 09:48:01 -04:00
Vijay Janapa Reddi
5386b58e07 Implement interactive ML Systems questions and standardize module structure
Major Educational Framework Enhancements:
• Deploy interactive NBGrader text response questions across ALL modules
• Replace passive question lists with active 150-300 word student responses
• Enable comprehensive ML Systems learning assessment and grading

TinyGPT Integration (Module 16):
• Complete TinyGPT implementation showing 70% component reuse from TinyTorch
• Demonstrates vision-to-language framework generalization principles
• Full transformer architecture with attention, tokenization, and generation
• Shakespeare demo showing autoregressive text generation capabilities

Module Structure Standardization:
• Fix section ordering across all modules: Tests → Questions → Summary
• Ensure Module Summary is always the final section for consistency
• Standardize comprehensive testing patterns before educational content

Interactive Question Implementation:
• 3 focused questions per module replacing 10-15 passive questions
• NBGrader integration with manual grading workflow for text responses
• Questions target ML Systems thinking: scaling, deployment, optimization
• Cumulative knowledge building across the 16-module progression

Technical Infrastructure:
• TPM agent for coordinated multi-agent development workflows
• Enhanced documentation with pedagogical design principles
• Updated book structure to include TinyGPT as capstone demonstration
• Comprehensive QA validation of all module structures

Framework Design Insights:
• Mathematical unity: Dense layers power both vision and language models
• Attention as key innovation for sequential relationship modeling
• Production-ready patterns: training loops, optimization, evaluation
• System-level thinking: memory, performance, scaling considerations

Educational Impact:
• Transform passive learning to active engagement through written responses
• Enable instructors to assess deep ML Systems understanding
• Provide clear progression from foundations to complete language models
• Demonstrate real-world framework design principles and trade-offs
2025-09-17 14:42:24 -04:00
Vijay Janapa Reddi
0bcbbaa8cf Update documentation with agent workflow and checkpoint system
Documentation updates:
- Enhanced CLAUDE.md with checkpoint implementation case study
- Updated README.md with checkpoint achievement system
- Expanded checkpoint-system.md with CLI documentation
- Added comprehensive agent workflow case study

Agent workflow documented:
- Module Developer implemented checkpoint tests and CLI integration
- QA Agent tested all 16 checkpoints and integration systems
- Package Manager created module-level integration testing
- Documentation Publisher updated all guides and references
- Workflow Coordinator orchestrated successful agent collaboration

Features documented:
- 16-checkpoint capability assessment system
- Rich CLI progress tracking with visual timelines
- Two-tier validation (integration + capability tests)
- Module completion workflow with automatic testing
- Complete agent coordination success pattern
2025-09-16 21:37:52 -04:00
Vijay Janapa Reddi
c834e7a206 Rename milestone to checkpoint system with enhanced Rich CLI visualizations
Major changes:
- Renamed entire system from "milestone" to "checkpoint" for academic framing
- Checkpoints are now positioned as academic progress markers in learning journey
- Implemented enhanced Rich CLI timeline with progress bars and connecting lines
- Added overall progress tracking (16/16 modules = 100%)

Enhanced timeline visualization:
- Horizontal view shows progress bar with filled/unfilled segments
- Visual connecting lines between checkpoints showing completion status
- Color-coded progress: green (complete), yellow (in-progress), dim (future)
- Percentage indicators for each checkpoint and overall progress

CLI improvements:
- `tito checkpoint status` - Shows overall and per-checkpoint progress
- `tito checkpoint timeline --horizontal` - Rich visual progress line
- `tito checkpoint timeline` - Vertical tree view with module details
- Better progress indicators with filled bars and connecting lines

Documentation updates:
- Renamed milestone-system.md to checkpoint-system.md
- Updated all references from milestone to checkpoint terminology
- Emphasized academic checkpoint philosophy and progress markers
- Added descriptions of new Rich CLI visualizations

Benefits:
- More academic framing aligns with educational context
- Visual progress bars provide immediate feedback on learning journey
- Checkpoint terminology is more familiar to students
- Rich CLI visualizations make progress tracking engaging
2025-09-16 13:27:43 -04:00
Vijay Janapa Reddi
09a3af88b1 Implement comprehensive milestone system for capability-driven learning
Features implemented:
- Complete milestone tracking system with Foundation → Architecture → Training → Inference → Serving progression
- Rich CLI visualization with status, timeline (horizontal/vertical), and progress tracking
- Ticker-based granular progress within each milestone showing module completion
- Comprehensive documentation explaining the pedagogical approach and system benefits
- Integration with existing tito CLI infrastructure and module detection

Key capabilities:
- `tito milestone status` - shows current progress and capabilities unlocked
- `tito milestone timeline` - visual progress timeline with multiple views
- `tito milestone test/unlock` - placeholder for future capability testing
- Automatic module detection and progress calculation
- Clear capability statements for each milestone achievement

Benefits:
- Transforms learning from "completing modules" to "building capabilities"
- Provides clear motivation through visual progress and capability unlocks
- Aligns with real ML engineering workflow: Foundation → Architecture → Training → Inference → Serving
- Gives students concrete sense of progress toward complete ML framework
2025-09-16 13:15:13 -04:00
Vijay Janapa Reddi
02c6ccbda7 Restructure course to start with hands-on Module 0: Setup
- Moved Introduction to "Course Orientation" section (no longer Module 0)
- Renumbered all modules: Setup becomes Module 0, course now has 16 modules
- Updated table of contents to separate orientation from formal course modules
- Updated intro.md and vision.md to reflect 16 modules instead of 17
- Course now starts immediately with hands-on implementation (Setup)
- Maintains Build→Use→Reflect philosophy by removing non-implementation module
- Introduction remains accessible as orientation material without being numbered module
2025-09-16 10:12:33 -04:00
Vijay Janapa Reddi
3b415e33fa Enhance TinyTorch vision communication on website
- Enhanced book/intro.md with comprehensive ML systems vision sections including "Our Vision", "Systems-First Thinking", "Beyond Code: Systems Intuition", and expanded "Who This Is For"
- Created book/vision.md with complete educational philosophy explaining the problem TinyTorch solves, systems thinking approach, target audience, and learning outcomes
- Updated book/_toc.yml to include vision document in Additional Resources section
- Content emphasizes training ML systems engineers vs ML users, focusing on memory management, performance analysis, and production trade-offs
- Maintains existing structure for NBGrader compatibility while clearly communicating educational vision to students
2025-09-16 09:57:12 -04:00
Vijay Janapa Reddi
2c4b44c8ec Add introduction module to Jupyter Book and refactor classroom documentation
- Create comprehensive introduction module (00-introduction.md) for Jupyter Book
- Add visual system overview and architecture documentation
- Update TOC to include introduction as module 0 in Foundation section
- Refactor classroom-use.md to be high-level overview pointing to instructor guide
- Eliminate duplication between classroom-use and instructor guide
- Ensure all 17 modules (00-16) are properly documented

Features:
- Introduction module provides system overview and dependency visualizations
- Clear separation: classroom-use = overview, instructor-guide = detailed workflow
- Professional navigation structure with all modules properly ordered
- Cross-references between related documentation sections

Successfully built and tested with jupyter-book build.
2025-09-16 08:22:57 -04:00
Vijay Janapa Reddi
da67d6c1d6 Add comprehensive NBGrader documentation for instructors
- Create complete instructor guide with user journey from setup to course completion
- Cover all phases: setup, course prep, assignment management, grading workflow
- Include weekly routines, troubleshooting, and student guidance
- Add quick reference card for daily commands
- Update Jupyter Book TOC to include instructor documentation
- Update classroom-use guide to reference comprehensive documentation

Features documented:
- 30-minute initial setup process
- Weekly assignment workflow (generate -> release -> grade -> feedback)
- Batch operations for efficiency
- System monitoring and analytics
- End-to-semester procedures
- Student support guidelines
- Common troubleshooting scenarios

Provides complete user journey for instructors and TAs using NBGrader + TinyTorch.
2025-09-16 02:45:02 -04:00
Vijay Janapa Reddi
058ec89909 Fix book conversion script to handle dynamic module names
- Replace hardcoded module names array with dynamic reading from module.yaml files
- Add get_module_names() function to read actual module structure
- Fix IndexError in get_prev_module_name() and get_next_module_name() functions
- Update navigation logic to use actual module count instead of hardcoded assumptions
- Successfully converts all 16 modules to chapters with proper navigation
- Book build now completes without errors
2025-07-18 15:01:16 -04:00
Vijay Janapa Reddi
d6f7a91ab2 Update intro page and rebuild book 2025-07-18 13:28:39 -04:00
Vijay Janapa Reddi
6a993622a7 Update capstone chapter and rebuild book 2025-07-18 12:25:09 -04:00
Vijay Janapa Reddi
4cfb88a8f6 Rebuild book with streamlined resources page 2025-07-18 12:18:47 -04:00
Vijay Janapa Reddi
f87a19473c Streamline resources page: remove fluff, keep concrete value
- Remove generic learning communities section
- Remove vague 'next steps' career advice
- Remove fluffy usage instructions
- Keep focused: academic courses, books, alternative implementations, production internals
- Result: curated reference for students who built ML systems from scratch
2025-07-18 11:13:36 -04:00
Vijay Janapa Reddi
b428ea52da 🔧 Fix MLOps over-emphasis and repetitive differentiation statements
✂️ Reduced MLOps Focus:
- Renamed 'MLOps & Production' → 'Development Tools'
- Removed redundant 'MLOps Community' link
- Focuses on practical development tools instead

🎯 Made Framework Differentiations Distinct:
- Micrograd: 'shows you the math, TinyTorch shows you the systems'
- Tinygrad: 'optimizes for speed, TinyTorch optimizes for learning'
- NNFS: 'focuses on algorithms, TinyTorch focuses on complete systems engineering'

💡 Benefits:
- Each differentiation now highlights specific strengths vs repetitive vehicle analogy
- Less MLOps emphasis (appears in course already)
- More concise and memorable comparisons

Result: Cleaner resource organization with unique, specific differentiations
that avoid repetition and over-emphasis on any single topic.
2025-07-18 10:55:26 -04:00