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