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