- 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
- Pruning
- 42. Overview
- 43. Pruning Schedules
- 44. Calibration
- 45. Pipeline Stages
- Knowledge Distillation
- 46. What is Distillation?
- 47. Temperature-Scaled KL Divergence
- 48. Multi-Teacher Ensemble
- 49. Progressive Layer-Wise
- 50. Distillation Loss Functions
- 51. Student-Teacher Architecture
- Training Loops
- 52. Trainer API
- 53. Callback System
- 54. Train Config
- 55. Basic Training Loop
- 56. Batching and Data Loading
- 57. Loss Functions
- 58. Validation and Testing
- 59. Checkpointing
- 60. Early Stopping
- 61. Curriculum Learning
- 62. Explainability
- Real-Time Monitoring
- 63. Overview
- 64. Experiment Tracking
- 65. Quality Gates (Jidoka)
- 66. Metrics Collection
- 67. Terminal Dashboard
- 68. Drift Detection
- 69. Andon Alerting (Jidoka)
- 70. Inference Monitoring
- 71. Model Lineage
- 72. Export Formats
- 73. Hansei Reports
- Dashboard
- 74. Overview
- 75. DashboardSource Trait
- 76. WASM Bindings
- Ecosystem Integration
- 77. Overview
- 78. Batuta Integration
- 79. Realizar GGUF Export
- 80. Ruchy Session Bridge
- MLOps (Toyota Way)
- 81. Overview
- 82. Experiment Tracking
- 83. Preflight Validation (Jidoka)
- 84. Model Registry (Kanban)
- 85. Hyperparameter Optimization (Kaizen)
- 86. Differential Privacy
- 87. GPU Monitoring (Andon)
- 88. REST API Server
- 89. Cloud Storage
- 90. LLM Evaluation
- Model I/O
- 91. Overview
- 92. Save Models
- 93. Load Models
- 94. Model Metadata
- 95. Supported Formats
- 95.1. SafeTensors Format
- 95.2. JSON Format
- 95.3. YAML Format
- 95.4. GGUF Format
- Command-Line Interface
- 96. CLI Overview
- 97. Research Commands
- 98. Benchmark Commands
- 99. Inspect Command
- 100. Audit Command
- 101. Monitor Command
- 102. Completion Command
- Declarative Training
- 103. Overview
- 104. YAML Mode Training (v1.0)
- 105. YAML Examples Catalog
- 106. Toyota Way QA Process
- 107. YAML Configuration
- 108. train_from_yaml Function
- 109. Configuration Schema
- 110. Optimizer Builders
- 111. Model Builders
- API Reference
- 112. Tensor API
- 113. Autograd Operations
- 114. Optimizer API
- 115. LoRA API
- 116. QLoRA API
- 117. Configuration System
- 118. Error Handling
- Model Evaluation (APR-073)
- 119. Overview
- 120. Classification Metrics
- 121. ModelEvaluator & Leaderboard
- 122. Cross-Validation
- 123. Drift Detection
- 123.1. KS Test
- 123.2. Chi-Square Test
- 123.3. PSI (Population Stability Index)
- 124. Auto-Retraining (Andon Loop)
- Examples
- 125. Linear Regression with Autograd
- 126. Training a Simple MLP
- 127. Fine-Tuning with LoRA
- 128. Memory-Efficient QLoRA
- 129. Custom Loss Functions
- 130. Learning Rate Scheduling
- 131. Gradient Clipping
- 132. Adapter Sharing
- 133. CUDA Backend Configuration
- 134. Pruning Pipeline
- 135. Drift Detection Simulation
- 136. P-Value Calibration Check
- Development Guide
- 137. Contributing
- 138. EXTREME TDD Methodology
- 139. Testing Strategy
- 139.1. Unit Tests
- 139.2. Property-Based Tests
- 139.3. Gradient Checking Tests
- 139.4. Mutation Testing
- 140. Quality Gates
- 140.1. Pre-Commit Hooks
- 140.2. Continuous Integration
- 140.3. Code Coverage
- 140.4. Clippy Linting
- 141. Benchmarking
- 142. PMAT Toyota Workflow
- Best Practices
- 143. Optimizer Selection
- 144. Learning Rate Tuning
- 145. LoRA Configuration
- 146. Memory Optimization
- 147. Gradient Stability
- 148. Debugging Training Issues
- 149. Performance Profiling
- Search Algorithms
- 150. Overview
- 151. Monte Carlo Tree Search (MCTS)
- 151.1. State and Action Spaces
- 151.2. UCB1/PUCT Selection
- 151.3. Expansion and Simulation
- 151.4. Backpropagation
- 152. Policy Network Integration
- Generative Models
- 153. Overview
- 154. Code Generation GANs
- 154.1. Generator Architecture
- 154.2. Discriminator Architecture
- 154.3. Latent Space Interpolation
- 154.4. Training Loop
- 155. Mode Collapse Detection
- Advanced Topics
- 156. Custom Backward Passes
- 157. Implementing New Optimizers
- 158. Custom LoRA Variants
- 159. Advanced Quantization
- 160. Distributed Training
- 161. Model Parallelism
- 162. Compiler-in-the-Loop (CITL)
- Sovereign Deployment
- 163. Overview
- Academic Research
- 164. Overview
- Specifications
- 165. Autograd Specification
- 166. Optimizer Specification
- 167. LoRA Specification
- 168. Quantization Specification
- 169. Academic Foundations
- Appendix
- 170. Glossary
- 171. Mathematical Notation
- 172. References
- 173. FAQ
- 174. Changelog
- 175. Migration Guide
- 176. Benchmarking Results