Vijay Janapa Reddi 15f5a84863 RESTORE: Complete CLI functionality in new architecture
- Ported all commands from bin/tito.py to new tito/ CLI architecture
- Added InfoCommand with system info and module status
- Added TestCommand with pytest integration
- Added DoctorCommand with environment diagnosis
- Added SyncCommand for nbdev export functionality
- Added ResetCommand for package cleanup
- Added JupyterCommand for notebook server
- Added NbdevCommand for nbdev development tools
- Added SubmitCommand and StatusCommand (placeholders)
- Fixed missing imports in tinytorch/core/tensor.py
- All commands now work with 'tito' command in shell
- Maintains professional architecture while restoring full functionality

Commands restored:
 info - System information and module status
 test - Run module tests with pytest
 doctor - Environment diagnosis
 sync - Export notebooks to package
 reset - Clean tinytorch package
 nbdev - nbdev development commands
 jupyter - Start Jupyter server
 submit - Module submission
 status - Module status
 notebooks - Build notebooks from Python files

The CLI now has both the professional architecture and all original functionality.
2025-07-10 22:39:23 -04:00
2025-07-08 22:47:00 -04:00
2025-07-10 11:23:48 -04:00
2025-07-10 11:23:48 -04:00

Tiny🔥Torch: Build ML Systems from Scratch

A hands-on systems course where you implement every component of a modern ML system

Python 3.8+ License nbdev

Disclaimer: TinyTorch is an educational framework developed independently and is not affiliated with or endorsed by Meta or the PyTorch project.

Tiny🔥Torch is a hands-on companion to Machine Learning Systems, providing practical coding exercises that complement the book's theoretical foundations. Rather than just learning about ML systems, you'll build one from scratch—implementing everything from tensors and autograd to hardware-aware optimization and deployment systems.

🎯 What You'll Build

By completing this course, you will have implemented a complete ML system:

Core FrameworkTraining PipelineProduction System

  • Tensors with automatic differentiation
  • Neural network layers (MLP, CNN, Transformer)
  • Training loops with optimizers (SGD, Adam)
  • Data loading and preprocessing pipelines
  • Model compression (pruning, quantization)
  • Performance profiling and optimization
  • Production deployment and monitoring

🚀 Quick Start

Ready to build? Choose your path:

🏃‍♂️ I want to start building now

QUICKSTART.md - Get coding in 10 minutes

📚 I want to understand the full course structure

PROJECT_GUIDE.md - Complete learning roadmap

🔍 I want to see the course in action

modules/setup/ - Browse the first module

🎓 Learning Approach

Module-First Development: Each module is self-contained with its own notebook, tests, and learning objectives. You'll work in Jupyter notebooks using the nbdev workflow to build a real Python package.

The Cycle: Write Code → Export → Test → Next Module

# The rhythm you'll use for every module
jupyter lab tensor_dev.ipynb    # Write & test interactively  
python bin/tito.py sync         # Export to Python package
python bin/tito.py test         # Verify implementation

📚 Course Structure

Phase Modules What You'll Build
Foundation Setup, Tensor, Autograd Core mathematical engine
Neural Networks MLP, CNN Learning algorithms
Training Systems Data, Training, Config End-to-end pipelines
Production Profiling, Compression, MLOps Real-world deployment

Total Time: 40-80 hours over several weeks • Prerequisites: Python basics

🛠️ Key Commands

python bin/tito.py info               # Check progress
python bin/tito.py sync               # Export notebooks  
python bin/tito.py test --module [name]  # Test implementation

🌟 Why Tiny🔥Torch?

Systems Engineering Principles: Learn to design ML systems from first principles Hardware-Software Co-design: Understand how algorithms map to computational resources
Performance-Aware Development: Build systems optimized for real-world constraints End-to-End Systems: From mathematical foundations to production deployment

📖 Educational Approach

Companion to Machine Learning Systems: This course provides hands-on implementation exercises that bring the book's concepts to life through code.

Learning by Building: Following the educational philosophy of Karpathy's micrograd, we learn complex systems by implementing them from scratch.

Real-World Systems: Drawing from production PyTorch and JAX architectures to understand industry-proven design patterns.

🤝 Contributing

We welcome contributions! Whether you're a student who found a bug or an instructor wanting to add modules, see our Contributing Guide.

📄 License

Apache License 2.0 - see the LICENSE file for details.


Ready to start building?QUICKSTART.md 🚀

Description
No description provided
Readme MIT 505 MiB
Languages
Python 84.5%
Jupyter Notebook 7.4%
HTML 2.8%
TeX 2.2%
JavaScript 1.3%
Other 1.8%