mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-02 16:37:36 -05:00
- Replaced 3 overlapping documentation files with 1 authoritative source - Set modules/source/08_optimizers/optimizers_dev.py as reference implementation - Created comprehensive module-rules.md with complete patterns and examples - Added living-example approach: use actual working code as template - Removed redundant files: module-structure-design.md, module-quick-reference.md, testing-design.md - Updated cursor rules to point to consolidated documentation - All module development now follows single source of truth
1.4 KiB
1.4 KiB
Module Development Rules
Authoritative Source: docs/development/module-rules.md
Reference Implementation: modules/source/08_optimizers/optimizers_dev.py
All TinyTorch module development rules, patterns, conventions, and examples are maintained in the comprehensive documentation file:
📖 docs/development/module-rules.md
🎯 Use Living Examples, Not Static Documentation
Instead of maintaining separate documentation that can get out of sync, use 08_optimizers as your reference implementation - it follows all current patterns perfectly and serves as the living example of proper module structure.
📋 What's Covered
- 📁 File structure and organization
- 🎓 Educational patterns and pedagogical framework
- 🧪 Testing conventions and inline test standards
- 📦 NBDev integration and export patterns
- 🎯 Complete module template with educational content
- 🏗️ Development workflow and best practices
- 📋 Module metadata and configuration
- ✅ Quality standards and checklist
🔗 Quick Reference Approach
- Check
08_optimizersfor educational content structure - Follow exact patterns for module summaries and takeaways
- Use the rules file for technical specifications
- Reference living code instead of static documentation
Remember: When in doubt, reference 08_optimizers - it follows all patterns perfectly!