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. Metrics Collection
  72. Terminal Dashboard
  73. Drift Detection
  74. Andon Alerting (Jidoka)
  75. Model Lineage
  76. Export Formats
  77. Hansei Reports
  78. Model I/O
  79. Overview
  80. Save Models
  81. Load Models
  82. Model Metadata
  83. Supported Formats
    1. SafeTensors Format
    2. JSON Format
    3. YAML Format
    4. GGUF Format
  84. Command-Line Interface
  85. CLI Reference
  86. Declarative Training
  87. Overview
  88. YAML Configuration
  89. train_from_yaml Function
  90. Configuration Schema
  91. Optimizer Builders
  92. Model Builders
  93. API Reference
  94. Tensor API
  95. Autograd Operations
  96. Optimizer API
  97. LoRA API
  98. QLoRA API
  99. Configuration System
  100. Error Handling
  101. Examples
  102. Linear Regression with Autograd
  103. Training a Simple MLP
  104. Fine-Tuning with LoRA
  105. Memory-Efficient QLoRA
  106. Custom Loss Functions
  107. Learning Rate Scheduling
  108. Gradient Clipping
  109. Adapter Sharing
  110. Development Guide
  111. Contributing
  112. EXTREME TDD Methodology
  113. Testing Strategy
    1. Unit Tests
    2. Property-Based Tests
    3. Gradient Checking Tests
    4. Mutation Testing
  114. Quality Gates
    1. Pre-Commit Hooks
    2. Continuous Integration
    3. Code Coverage
    4. Clippy Linting
  115. Benchmarking
  116. PMAT Toyota Workflow
  117. Best Practices
  118. Optimizer Selection
  119. Learning Rate Tuning
  120. LoRA Configuration
  121. Memory Optimization
  122. Gradient Stability
  123. Debugging Training Issues
  124. Performance Profiling
  125. Advanced Topics
  126. Custom Backward Passes
  127. Implementing New Optimizers
  128. Custom LoRA Variants
  129. Advanced Quantization
  130. Distributed Training
  131. Model Parallelism
  132. Compiler-in-the-Loop (CITL)
  133. Specifications
  134. Autograd Specification
  135. Optimizer Specification
  136. LoRA Specification
  137. Quantization Specification
  138. Academic Foundations
  139. Appendix
  140. Glossary
  141. Mathematical Notation
  142. References
  143. FAQ
  144. Changelog
  145. Migration Guide
  146. Benchmarking Results