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