- Introduction
- Getting Started
- 1. Installation
- 2. Quick Start
- 3. First Training Loop
- 4. Core Concepts
- Architecture
- 5. Overview
- 6. Design Philosophy
- 7. Module Organization
- 8. Type System
- 9. Memory Management
- Autograd Engine
- 10. What is Automatic Differentiation?
- 11. Tape-Based Computation Graphs
- 12. Tensor Operations
- 12.1. Matrix Multiplication
- 12.2. Activations (ReLU, GELU, Swish)
- 12.3. Layer Normalization
- 12.4. Attention Mechanism
- 13. Backward Pass
- 14. Gradient Computation
- 15. Finite Difference Validation
- Optimizers
- 16. Overview
- 17. Stochastic Gradient Descent (SGD)
- 18. Adam Optimizer
- 19. AdamW (Decoupled Weight Decay)
- 20. Learning Rate Schedulers
- 20.1. Cosine Annealing
- 20.2. Step Decay
- 20.3. Exponential Decay
- 21. Gradient Clipping
- 22. SIMD-Accelerated Updates
- 23. Optimizer Theory
- LoRA (Low-Rank Adaptation)
- 24. What is LoRA?
- 25. Parameter-Efficient Fine-Tuning
- 26. LoRA Layer Architecture
- 26.1. Low-Rank Matrices A and B
- 26.2. Scaling Factor (alpha/rank)
- 26.3. Merge and Unmerge
- 27. Target Module Selection
- 28. Gradient Flow Isolation
- 29. Adapter Persistence
- 29.1. Saving Adapters
- 29.2. Loading Adapters
- 29.3. Sharing Adapters
- QLoRA (Quantized LoRA)
- 30. Memory-Efficient Fine-Tuning
- 31. 4-bit Quantization
- 31.1. Block-Wise Quantization
- 31.2. Scale Factors
- 31.3. Quantization/Dequantization
- 32. QLoRA Layer
- 33. On-the-Fly Dequantization
- 34. Memory Benchmarks
- 34.1. LoRA vs QLoRA Comparison
- 34.2. Transformer Model Benchmarks
- 34.3. Compression Ratios
- 35. Trade-offs and Best Practices
- Model Merging
- 36. Overview
- 37. TIES Algorithm
- 38. DARE Algorithm
- 39. SLERP Algorithm
- 40. Multi-Model Ensembles
- 41. Merge Best Practices
- Knowledge Distillation
- 42. What is Distillation?
- 43. Temperature-Scaled KL Divergence
- 44. Multi-Teacher Ensemble
- 45. Progressive Layer-Wise
- 46. Distillation Loss Functions
- 47. Student-Teacher Architecture
- Training Loops
- 48. Trainer API
- 49. Callback System
- 50. Train Config
- 51. Basic Training Loop
- 52. Batching and Data Loading
- 53. Loss Functions
- 54. Validation and Testing
- 55. Checkpointing
- 56. Early Stopping
- 57. Curriculum Learning
- 58. Explainability
- Real-Time Monitoring
- 59. Overview
- 60. Experiment Tracking
- 61. Quality Gates (Jidoka)
- 62. Metrics Collection
- 63. Terminal Dashboard
- 64. Drift Detection
- 65. Andon Alerting (Jidoka)
- 66. Inference Monitoring
- 67. Model Lineage
- 68. Export Formats
- 69. Hansei Reports
- Dashboard
- 70. Overview
- 71. DashboardSource Trait
- 72. WASM Bindings
- Ecosystem Integration
- 73. Overview
- 74. Batuta Integration
- 75. Realizar GGUF Export
- 76. Ruchy Session Bridge
- MLOps (Toyota Way)
- 77. Overview
- 78. Experiment Tracking
- 79. Preflight Validation (Jidoka)
- 80. Model Registry (Kanban)
- 81. Hyperparameter Optimization (Kaizen)
- 82. Differential Privacy
- 83. GPU Monitoring (Andon)
- 84. REST API Server
- 85. Cloud Storage
- 86. LLM Evaluation
- Model I/O
- 87. Overview
- 88. Save Models
- 89. Load Models
- 90. Model Metadata
- 91. Supported Formats
- 91.1. SafeTensors Format
- 91.2. JSON Format
- 91.3. YAML Format
- 91.4. GGUF Format
- Command-Line Interface
- 92. CLI Overview
- 93. Research Commands
- 94. Benchmark Commands
- 95. Inspect Command
- 96. Audit Command
- 97. Monitor Command
- 98. Completion Command
- Declarative Training
- 99. Overview
- 100. YAML Mode Training (v1.0)
- 101. YAML Examples Catalog
- 102. Toyota Way QA Process
- 103. YAML Configuration
- 104. train_from_yaml Function
- 105. Configuration Schema
- 106. Optimizer Builders
- 107. Model Builders
- API Reference
- 108. Tensor API
- 109. Autograd Operations
- 110. Optimizer API
- 111. LoRA API
- 112. QLoRA API
- 113. Configuration System
- 114. Error Handling
- Examples
- 115. Linear Regression with Autograd
- 116. Training a Simple MLP
- 117. Fine-Tuning with LoRA
- 118. Memory-Efficient QLoRA
- 119. Custom Loss Functions
- 120. Learning Rate Scheduling
- 121. Gradient Clipping
- 122. Adapter Sharing
- 123. CUDA Backend Configuration
- Development Guide
- 124. Contributing
- 125. EXTREME TDD Methodology
- 126. Testing Strategy
- 126.1. Unit Tests
- 126.2. Property-Based Tests
- 126.3. Gradient Checking Tests
- 126.4. Mutation Testing
- 127. Quality Gates
- 127.1. Pre-Commit Hooks
- 127.2. Continuous Integration
- 127.3. Code Coverage
- 127.4. Clippy Linting
- 128. Benchmarking
- 129. PMAT Toyota Workflow
- Best Practices
- 130. Optimizer Selection
- 131. Learning Rate Tuning
- 132. LoRA Configuration
- 133. Memory Optimization
- 134. Gradient Stability
- 135. Debugging Training Issues
- 136. Performance Profiling
- Search Algorithms
- 137. Overview
- 138. Monte Carlo Tree Search (MCTS)
- 138.1. State and Action Spaces
- 138.2. UCB1/PUCT Selection
- 138.3. Expansion and Simulation
- 138.4. Backpropagation
- 139. Policy Network Integration
- Generative Models
- 140. Overview
- 141. Code Generation GANs
- 141.1. Generator Architecture
- 141.2. Discriminator Architecture
- 141.3. Latent Space Interpolation
- 141.4. Training Loop
- 142. Mode Collapse Detection
- Advanced Topics
- 143. Custom Backward Passes
- 144. Implementing New Optimizers
- 145. Custom LoRA Variants
- 146. Advanced Quantization
- 147. Distributed Training
- 148. Model Parallelism
- 149. Compiler-in-the-Loop (CITL)
- Sovereign Deployment
- 150. Overview
- Academic Research
- 151. Overview
- Specifications
- 152. Autograd Specification
- 153. Optimizer Specification
- 154. LoRA Specification
- 155. Quantization Specification
- 156. Academic Foundations
- Appendix
- 157. Glossary
- 158. Mathematical Notation
- 159. References
- 160. FAQ
- 161. Changelog
- 162. Migration Guide
- 163. Benchmarking Results