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