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