// Populate the sidebar
//
// This is a script, and not included directly in the page, to control the total size of the book.
// The TOC contains an entry for each page, so if each page includes a copy of the TOC,
// the total size of the page becomes O(n**2).
class MDBookSidebarScrollbox extends HTMLElement {
    constructor() {
        super();
    }
    connectedCallback() {
        this.innerHTML = '<ol class="chapter"><li class="chapter-item expanded affix "><a href="introduction.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="part-title">Getting Started</li><li class="chapter-item expanded "><a href="getting-started/installation.html"><strong aria-hidden="true">1.</strong> Installation</a></li><li class="chapter-item expanded "><a href="getting-started/quick-start.html"><strong aria-hidden="true">2.</strong> Quick Start</a></li><li class="chapter-item expanded "><a href="getting-started/first-training-loop.html"><strong aria-hidden="true">3.</strong> First Training Loop</a></li><li class="chapter-item expanded "><a href="getting-started/core-concepts.html"><strong aria-hidden="true">4.</strong> Core Concepts</a></li><li class="chapter-item expanded affix "><li class="part-title">Architecture</li><li class="chapter-item expanded "><a href="architecture/overview.html"><strong aria-hidden="true">5.</strong> Overview</a></li><li class="chapter-item expanded "><a href="architecture/design-philosophy.html"><strong aria-hidden="true">6.</strong> Design Philosophy</a></li><li class="chapter-item expanded "><a href="architecture/module-organization.html"><strong aria-hidden="true">7.</strong> Module Organization</a></li><li class="chapter-item expanded "><a href="architecture/type-system.html"><strong aria-hidden="true">8.</strong> Type System</a></li><li class="chapter-item expanded "><a href="architecture/memory-management.html"><strong aria-hidden="true">9.</strong> Memory Management</a></li><li class="chapter-item expanded affix "><li class="part-title">Autograd Engine</li><li class="chapter-item expanded "><a href="autograd/what-is-autograd.html"><strong aria-hidden="true">10.</strong> What is Automatic Differentiation?</a></li><li class="chapter-item expanded "><a href="autograd/tape-based-graphs.html"><strong aria-hidden="true">11.</strong> Tape-Based Computation Graphs</a></li><li class="chapter-item expanded "><a href="autograd/tensor-operations.html"><strong aria-hidden="true">12.</strong> Tensor Operations</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="autograd/matmul.html"><strong aria-hidden="true">12.1.</strong> Matrix Multiplication</a></li><li class="chapter-item expanded "><a href="autograd/activations.html"><strong aria-hidden="true">12.2.</strong> Activations (ReLU, GELU, Swish)</a></li><li class="chapter-item expanded "><a href="autograd/layer-norm.html"><strong aria-hidden="true">12.3.</strong> Layer Normalization</a></li><li class="chapter-item expanded "><a href="autograd/attention.html"><strong aria-hidden="true">12.4.</strong> Attention Mechanism</a></li></ol></li><li class="chapter-item expanded "><a href="autograd/backward-pass.html"><strong aria-hidden="true">13.</strong> Backward Pass</a></li><li class="chapter-item expanded "><a href="autograd/gradient-computation.html"><strong aria-hidden="true">14.</strong> Gradient Computation</a></li><li class="chapter-item expanded "><a href="autograd/finite-difference.html"><strong aria-hidden="true">15.</strong> Finite Difference Validation</a></li><li class="chapter-item expanded affix "><li class="part-title">Optimizers</li><li class="chapter-item expanded "><a href="optimizers/overview.html"><strong aria-hidden="true">16.</strong> Overview</a></li><li class="chapter-item expanded "><a href="optimizers/sgd.html"><strong aria-hidden="true">17.</strong> Stochastic Gradient Descent (SGD)</a></li><li class="chapter-item expanded "><a href="optimizers/adam.html"><strong aria-hidden="true">18.</strong> Adam Optimizer</a></li><li class="chapter-item expanded "><a href="optimizers/adamw.html"><strong aria-hidden="true">19.</strong> AdamW (Decoupled Weight Decay)</a></li><li class="chapter-item expanded "><a href="optimizers/schedulers.html"><strong aria-hidden="true">20.</strong> Learning Rate Schedulers</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="optimizers/cosine-scheduler.html"><strong aria-hidden="true">20.1.</strong> Cosine Annealing</a></li><li class="chapter-item expanded "><a href="optimizers/step-decay.html"><strong aria-hidden="true">20.2.</strong> Step Decay</a></li><li class="chapter-item expanded "><a href="optimizers/exponential-decay.html"><strong aria-hidden="true">20.3.</strong> Exponential Decay</a></li></ol></li><li class="chapter-item expanded "><a href="optimizers/gradient-clipping.html"><strong aria-hidden="true">21.</strong> Gradient Clipping</a></li><li class="chapter-item expanded "><a href="optimizers/simd-acceleration.html"><strong aria-hidden="true">22.</strong> SIMD-Accelerated Updates</a></li><li class="chapter-item expanded "><a href="optimizers/theory.html"><strong aria-hidden="true">23.</strong> Optimizer Theory</a></li><li class="chapter-item expanded affix "><li class="part-title">LoRA (Low-Rank Adaptation)</li><li class="chapter-item expanded "><a href="lora/what-is-lora.html"><strong aria-hidden="true">24.</strong> What is LoRA?</a></li><li class="chapter-item expanded "><a href="lora/parameter-efficient-finetuning.html"><strong aria-hidden="true">25.</strong> Parameter-Efficient Fine-Tuning</a></li><li class="chapter-item expanded "><a href="lora/layer-architecture.html"><strong aria-hidden="true">26.</strong> LoRA Layer Architecture</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="lora/low-rank-matrices.html"><strong aria-hidden="true">26.1.</strong> Low-Rank Matrices A and B</a></li><li class="chapter-item expanded "><a href="lora/scaling-factor.html"><strong aria-hidden="true">26.2.</strong> Scaling Factor (alpha/rank)</a></li><li class="chapter-item expanded "><a href="lora/merge-unmerge.html"><strong aria-hidden="true">26.3.</strong> Merge and Unmerge</a></li></ol></li><li class="chapter-item expanded "><a href="lora/target-modules.html"><strong aria-hidden="true">27.</strong> Target Module Selection</a></li><li class="chapter-item expanded "><a href="lora/gradient-flow.html"><strong aria-hidden="true">28.</strong> Gradient Flow Isolation</a></li><li class="chapter-item expanded "><a href="lora/adapter-persistence.html"><strong aria-hidden="true">29.</strong> Adapter Persistence</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="lora/saving-adapters.html"><strong aria-hidden="true">29.1.</strong> Saving Adapters</a></li><li class="chapter-item expanded "><a href="lora/loading-adapters.html"><strong aria-hidden="true">29.2.</strong> Loading Adapters</a></li><li class="chapter-item expanded "><a href="lora/sharing-adapters.html"><strong aria-hidden="true">29.3.</strong> Sharing Adapters</a></li></ol></li><li class="chapter-item expanded "><li class="part-title">QLoRA (Quantized LoRA)</li><li class="chapter-item expanded "><a href="quantization/qlora-overview.html"><strong aria-hidden="true">30.</strong> Memory-Efficient Fine-Tuning</a></li><li class="chapter-item expanded "><a href="quantization/4bit-quantization.html"><strong aria-hidden="true">31.</strong> 4-bit Quantization</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="quantization/block-wise-quantization.html"><strong aria-hidden="true">31.1.</strong> Block-Wise Quantization</a></li><li class="chapter-item expanded "><a href="quantization/scale-factors.html"><strong aria-hidden="true">31.2.</strong> Scale Factors</a></li><li class="chapter-item expanded "><a href="quantization/quant-dequant.html"><strong aria-hidden="true">31.3.</strong> Quantization/Dequantization</a></li></ol></li><li class="chapter-item expanded "><a href="quantization/qlora-layer.html"><strong aria-hidden="true">32.</strong> QLoRA Layer</a></li><li class="chapter-item expanded "><a href="quantization/on-the-fly-dequant.html"><strong aria-hidden="true">33.</strong> On-the-Fly Dequantization</a></li><li class="chapter-item expanded "><a href="quantization/memory-benchmarks.html"><strong aria-hidden="true">34.</strong> Memory Benchmarks</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="quantization/lora-vs-qlora.html"><strong aria-hidden="true">34.1.</strong> LoRA vs QLoRA Comparison</a></li><li class="chapter-item expanded "><a href="quantization/transformer-benchmarks.html"><strong aria-hidden="true">34.2.</strong> Transformer Model Benchmarks</a></li><li class="chapter-item expanded "><a href="quantization/compression-ratios.html"><strong aria-hidden="true">34.3.</strong> Compression Ratios</a></li></ol></li><li class="chapter-item expanded "><a href="quantization/tradeoffs.html"><strong aria-hidden="true">35.</strong> Trade-offs and Best Practices</a></li><li class="chapter-item expanded affix "><li class="part-title">Model Merging</li><li class="chapter-item expanded "><a href="merging/overview.html"><strong aria-hidden="true">36.</strong> Overview</a></li><li class="chapter-item expanded "><a href="merging/ties.html"><strong aria-hidden="true">37.</strong> TIES Algorithm</a></li><li class="chapter-item expanded "><a href="merging/dare.html"><strong aria-hidden="true">38.</strong> DARE Algorithm</a></li><li class="chapter-item expanded "><a href="merging/slerp.html"><strong aria-hidden="true">39.</strong> SLERP Algorithm</a></li><li class="chapter-item expanded "><a href="merging/multi-model.html"><strong aria-hidden="true">40.</strong> Multi-Model Ensembles</a></li><li class="chapter-item expanded "><a href="merging/best-practices.html"><strong aria-hidden="true">41.</strong> Merge Best Practices</a></li><li class="chapter-item expanded affix "><li class="part-title">Knowledge Distillation</li><li class="chapter-item expanded "><a href="distillation/what-is-distillation.html"><strong aria-hidden="true">42.</strong> What is Distillation?</a></li><li class="chapter-item expanded "><a href="distillation/temperature-kl.html"><strong aria-hidden="true">43.</strong> Temperature-Scaled KL Divergence</a></li><li class="chapter-item expanded "><a href="distillation/multi-teacher.html"><strong aria-hidden="true">44.</strong> Multi-Teacher Ensemble</a></li><li class="chapter-item expanded "><a href="distillation/progressive.html"><strong aria-hidden="true">45.</strong> Progressive Layer-Wise</a></li><li class="chapter-item expanded "><a href="distillation/loss-functions.html"><strong aria-hidden="true">46.</strong> Distillation Loss Functions</a></li><li class="chapter-item expanded "><a href="distillation/student-teacher.html"><strong aria-hidden="true">47.</strong> Student-Teacher Architecture</a></li><li class="chapter-item expanded affix "><li class="part-title">Training Loops</li><li class="chapter-item expanded "><a href="training/trainer-api.html"><strong aria-hidden="true">48.</strong> Trainer API</a></li><li class="chapter-item expanded "><a href="training/callback-system.html"><strong aria-hidden="true">49.</strong> Callback System</a></li><li class="chapter-item expanded "><a href="training/train-config.html"><strong aria-hidden="true">50.</strong> Train Config</a></li><li class="chapter-item expanded "><a href="training/basic-loop.html"><strong aria-hidden="true">51.</strong> Basic Training Loop</a></li><li class="chapter-item expanded "><a href="training/batching.html"><strong aria-hidden="true">52.</strong> Batching and Data Loading</a></li><li class="chapter-item expanded "><a href="training/loss-functions.html"><strong aria-hidden="true">53.</strong> Loss Functions</a></li><li class="chapter-item expanded "><a href="training/validation.html"><strong aria-hidden="true">54.</strong> Validation and Testing</a></li><li class="chapter-item expanded "><a href="training/checkpointing.html"><strong aria-hidden="true">55.</strong> Checkpointing</a></li><li class="chapter-item expanded "><a href="training/early-stopping.html"><strong aria-hidden="true">56.</strong> Early Stopping</a></li><li class="chapter-item expanded "><a href="training/curriculum-learning.html"><strong aria-hidden="true">57.</strong> Curriculum Learning</a></li><li class="chapter-item expanded "><a href="training/explainability.html"><strong aria-hidden="true">58.</strong> Explainability</a></li><li class="chapter-item expanded affix "><li class="part-title">Real-Time Monitoring</li><li class="chapter-item expanded "><a href="monitor/overview.html"><strong aria-hidden="true">59.</strong> Overview</a></li><li class="chapter-item expanded "><a href="monitor/experiment-tracking.html"><strong aria-hidden="true">60.</strong> Experiment Tracking</a></li><li class="chapter-item expanded "><a href="monitor/quality-gates.html"><strong aria-hidden="true">61.</strong> Quality Gates (Jidoka)</a></li><li class="chapter-item expanded "><a href="monitor/metrics-collection.html"><strong aria-hidden="true">62.</strong> Metrics Collection</a></li><li class="chapter-item expanded "><a href="monitor/dashboard.html"><strong aria-hidden="true">63.</strong> Terminal Dashboard</a></li><li class="chapter-item expanded "><a href="monitor/drift-detection.html"><strong aria-hidden="true">64.</strong> Drift Detection</a></li><li class="chapter-item expanded "><a href="monitor/andon.html"><strong aria-hidden="true">65.</strong> Andon Alerting (Jidoka)</a></li><li class="chapter-item expanded "><a href="monitor/inference-monitoring.html"><strong aria-hidden="true">66.</strong> Inference Monitoring</a></li><li class="chapter-item expanded "><a href="monitor/lineage.html"><strong aria-hidden="true">67.</strong> Model Lineage</a></li><li class="chapter-item expanded "><a href="monitor/export.html"><strong aria-hidden="true">68.</strong> Export Formats</a></li><li class="chapter-item expanded "><a href="monitor/hansei.html"><strong aria-hidden="true">69.</strong> Hansei Reports</a></li><li class="chapter-item expanded affix "><li class="part-title">Dashboard</li><li class="chapter-item expanded "><a href="dashboard/overview.html"><strong aria-hidden="true">70.</strong> Overview</a></li><li class="chapter-item expanded "><a href="dashboard/dashboard-source.html"><strong aria-hidden="true">71.</strong> DashboardSource Trait</a></li><li class="chapter-item expanded "><a href="dashboard/wasm.html"><strong aria-hidden="true">72.</strong> WASM Bindings</a></li><li class="chapter-item expanded affix "><li class="part-title">Ecosystem Integration</li><li class="chapter-item expanded "><a href="ecosystem/overview.html"><strong aria-hidden="true">73.</strong> Overview</a></li><li class="chapter-item expanded "><a href="ecosystem/batuta.html"><strong aria-hidden="true">74.</strong> Batuta Integration</a></li><li class="chapter-item expanded "><a href="ecosystem/realizar.html"><strong aria-hidden="true">75.</strong> Realizar GGUF Export</a></li><li class="chapter-item expanded "><a href="ecosystem/ruchy.html"><strong aria-hidden="true">76.</strong> Ruchy Session Bridge</a></li><li class="chapter-item expanded affix "><li class="part-title">MLOps (Toyota Way)</li><li class="chapter-item expanded "><a href="mlops/overview.html"><strong aria-hidden="true">77.</strong> Overview</a></li><li class="chapter-item expanded "><a href="mlops/experiment-tracking.html"><strong aria-hidden="true">78.</strong> Experiment Tracking</a></li><li class="chapter-item expanded "><a href="mlops/preflight.html"><strong aria-hidden="true">79.</strong> Preflight Validation (Jidoka)</a></li><li class="chapter-item expanded "><a href="mlops/model-registry.html"><strong aria-hidden="true">80.</strong> Model Registry (Kanban)</a></li><li class="chapter-item expanded "><a href="mlops/hpo.html"><strong aria-hidden="true">81.</strong> Hyperparameter Optimization (Kaizen)</a></li><li class="chapter-item expanded "><a href="mlops/differential-privacy.html"><strong aria-hidden="true">82.</strong> Differential Privacy</a></li><li class="chapter-item expanded "><a href="mlops/gpu-monitoring.html"><strong aria-hidden="true">83.</strong> GPU Monitoring (Andon)</a></li><li class="chapter-item expanded "><a href="mlops/rest-api.html"><strong aria-hidden="true">84.</strong> REST API Server</a></li><li class="chapter-item expanded "><a href="mlops/cloud-storage.html"><strong aria-hidden="true">85.</strong> Cloud Storage</a></li><li class="chapter-item expanded "><a href="mlops/llm-evaluation.html"><strong aria-hidden="true">86.</strong> LLM Evaluation</a></li><li class="chapter-item expanded affix "><li class="part-title">Model I/O</li><li class="chapter-item expanded "><a href="io/overview.html"><strong aria-hidden="true">87.</strong> Overview</a></li><li class="chapter-item expanded "><a href="io/save-models.html"><strong aria-hidden="true">88.</strong> Save Models</a></li><li class="chapter-item expanded "><a href="io/load-models.html"><strong aria-hidden="true">89.</strong> Load Models</a></li><li class="chapter-item expanded "><a href="io/metadata.html"><strong aria-hidden="true">90.</strong> Model Metadata</a></li><li class="chapter-item expanded "><a href="io/formats.html"><strong aria-hidden="true">91.</strong> Supported Formats</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="io/safetensors-format.html"><strong aria-hidden="true">91.1.</strong> SafeTensors Format</a></li><li class="chapter-item expanded "><a href="io/json-format.html"><strong aria-hidden="true">91.2.</strong> JSON Format</a></li><li class="chapter-item expanded "><a href="io/yaml-format.html"><strong aria-hidden="true">91.3.</strong> YAML Format</a></li><li class="chapter-item expanded "><a href="io/gguf-format.html"><strong aria-hidden="true">91.4.</strong> GGUF Format</a></li></ol></li><li class="chapter-item expanded "><li class="part-title">Command-Line Interface</li><li class="chapter-item expanded "><a href="cli/overview.html"><strong aria-hidden="true">92.</strong> CLI Overview</a></li><li class="chapter-item expanded "><a href="cli/research.html"><strong aria-hidden="true">93.</strong> Research Commands</a></li><li class="chapter-item expanded "><a href="cli/benchmark.html"><strong aria-hidden="true">94.</strong> Benchmark Commands</a></li><li class="chapter-item expanded "><a href="cli/inspect.html"><strong aria-hidden="true">95.</strong> Inspect Command</a></li><li class="chapter-item expanded "><a href="cli/audit.html"><strong aria-hidden="true">96.</strong> Audit Command</a></li><li class="chapter-item expanded "><a href="cli/monitor.html"><strong aria-hidden="true">97.</strong> Monitor Command</a></li><li class="chapter-item expanded "><a href="cli/completion.html"><strong aria-hidden="true">98.</strong> Completion Command</a></li><li class="chapter-item expanded affix "><li class="part-title">Declarative Training</li><li class="chapter-item expanded "><a href="declarative/overview.html"><strong aria-hidden="true">99.</strong> Overview</a></li><li class="chapter-item expanded "><a href="declarative/yaml-mode.html"><strong aria-hidden="true">100.</strong> YAML Mode Training (v1.0)</a></li><li class="chapter-item expanded "><a href="declarative/yaml-examples.html"><strong aria-hidden="true">101.</strong> YAML Examples Catalog</a></li><li class="chapter-item expanded "><a href="declarative/qa-process.html"><strong aria-hidden="true">102.</strong> Toyota Way QA Process</a></li><li class="chapter-item expanded "><a href="declarative/yaml-config.html"><strong aria-hidden="true">103.</strong> YAML Configuration</a></li><li class="chapter-item expanded "><a href="declarative/train-from-yaml.html"><strong aria-hidden="true">104.</strong> train_from_yaml Function</a></li><li class="chapter-item expanded "><a href="declarative/schema.html"><strong aria-hidden="true">105.</strong> Configuration Schema</a></li><li class="chapter-item expanded "><a href="declarative/optimizer-builders.html"><strong aria-hidden="true">106.</strong> Optimizer Builders</a></li><li class="chapter-item expanded "><a href="declarative/model-builders.html"><strong aria-hidden="true">107.</strong> Model Builders</a></li><li class="chapter-item expanded affix "><li class="part-title">API Reference</li><li class="chapter-item expanded "><a href="api-reference/tensor-api.html"><strong aria-hidden="true">108.</strong> Tensor API</a></li><li class="chapter-item expanded "><a href="api-reference/autograd-ops.html"><strong aria-hidden="true">109.</strong> Autograd Operations</a></li><li class="chapter-item expanded "><a href="api-reference/optimizer-api.html"><strong aria-hidden="true">110.</strong> Optimizer API</a></li><li class="chapter-item expanded "><a href="api-reference/lora-api.html"><strong aria-hidden="true">111.</strong> LoRA API</a></li><li class="chapter-item expanded "><a href="api-reference/qlora-api.html"><strong aria-hidden="true">112.</strong> QLoRA API</a></li><li class="chapter-item expanded "><a href="api-reference/configuration.html"><strong aria-hidden="true">113.</strong> Configuration System</a></li><li class="chapter-item expanded "><a href="api-reference/error-handling.html"><strong aria-hidden="true">114.</strong> Error Handling</a></li><li class="chapter-item expanded affix "><li class="part-title">Examples</li><li class="chapter-item expanded "><a href="examples/linear-regression.html"><strong aria-hidden="true">115.</strong> Linear Regression with Autograd</a></li><li class="chapter-item expanded "><a href="examples/simple-mlp.html"><strong aria-hidden="true">116.</strong> Training a Simple MLP</a></li><li class="chapter-item expanded "><a href="examples/lora-finetuning.html"><strong aria-hidden="true">117.</strong> Fine-Tuning with LoRA</a></li><li class="chapter-item expanded "><a href="examples/qlora-example.html"><strong aria-hidden="true">118.</strong> Memory-Efficient QLoRA</a></li><li class="chapter-item expanded "><a href="examples/custom-loss.html"><strong aria-hidden="true">119.</strong> Custom Loss Functions</a></li><li class="chapter-item expanded "><a href="examples/lr-scheduling.html"><strong aria-hidden="true">120.</strong> Learning Rate Scheduling</a></li><li class="chapter-item expanded "><a href="examples/gradient-clipping-example.html"><strong aria-hidden="true">121.</strong> Gradient Clipping</a></li><li class="chapter-item expanded "><a href="examples/adapter-sharing.html"><strong aria-hidden="true">122.</strong> Adapter Sharing</a></li><li class="chapter-item expanded "><a href="examples/cuda-backend.html"><strong aria-hidden="true">123.</strong> CUDA Backend Configuration</a></li><li class="chapter-item expanded affix "><li class="part-title">Development Guide</li><li class="chapter-item expanded "><a href="development/contributing.html"><strong aria-hidden="true">124.</strong> Contributing</a></li><li class="chapter-item expanded "><a href="development/extreme-tdd.html"><strong aria-hidden="true">125.</strong> EXTREME TDD Methodology</a></li><li class="chapter-item expanded "><a href="development/testing-strategy.html"><strong aria-hidden="true">126.</strong> Testing Strategy</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/unit-tests.html"><strong aria-hidden="true">126.1.</strong> Unit Tests</a></li><li class="chapter-item expanded "><a href="development/property-based-tests.html"><strong aria-hidden="true">126.2.</strong> Property-Based Tests</a></li><li class="chapter-item expanded "><a href="development/gradient-checking.html"><strong aria-hidden="true">126.3.</strong> Gradient Checking Tests</a></li><li class="chapter-item expanded "><a href="development/mutation-testing.html"><strong aria-hidden="true">126.4.</strong> Mutation Testing</a></li></ol></li><li class="chapter-item expanded "><a href="development/quality-gates.html"><strong aria-hidden="true">127.</strong> Quality Gates</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/pre-commit-hooks.html"><strong aria-hidden="true">127.1.</strong> Pre-Commit Hooks</a></li><li class="chapter-item expanded "><a href="development/continuous-integration.html"><strong aria-hidden="true">127.2.</strong> Continuous Integration</a></li><li class="chapter-item expanded "><a href="development/code-coverage.html"><strong aria-hidden="true">127.3.</strong> Code Coverage</a></li><li class="chapter-item expanded "><a href="development/clippy-linting.html"><strong aria-hidden="true">127.4.</strong> Clippy Linting</a></li></ol></li><li class="chapter-item expanded "><a href="development/benchmarking.html"><strong aria-hidden="true">128.</strong> Benchmarking</a></li><li class="chapter-item expanded "><a href="development/pmat-workflow.html"><strong aria-hidden="true">129.</strong> PMAT Toyota Workflow</a></li><li class="chapter-item expanded affix "><li class="part-title">Best Practices</li><li class="chapter-item expanded "><a href="best-practices/optimizer-selection.html"><strong aria-hidden="true">130.</strong> Optimizer Selection</a></li><li class="chapter-item expanded "><a href="best-practices/lr-tuning.html"><strong aria-hidden="true">131.</strong> Learning Rate Tuning</a></li><li class="chapter-item expanded "><a href="best-practices/lora-configuration.html"><strong aria-hidden="true">132.</strong> LoRA Configuration</a></li><li class="chapter-item expanded "><a href="best-practices/memory-optimization.html"><strong aria-hidden="true">133.</strong> Memory Optimization</a></li><li class="chapter-item expanded "><a href="best-practices/gradient-stability.html"><strong aria-hidden="true">134.</strong> Gradient Stability</a></li><li class="chapter-item expanded "><a href="best-practices/debugging-training.html"><strong aria-hidden="true">135.</strong> Debugging Training Issues</a></li><li class="chapter-item expanded "><a href="best-practices/profiling.html"><strong aria-hidden="true">136.</strong> Performance Profiling</a></li><li class="chapter-item expanded affix "><li class="part-title">Search Algorithms</li><li class="chapter-item expanded "><a href="search/overview.html"><strong aria-hidden="true">137.</strong> Overview</a></li><li class="chapter-item expanded "><a href="search/mcts.html"><strong aria-hidden="true">138.</strong> Monte Carlo Tree Search (MCTS)</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="search/state-action.html"><strong aria-hidden="true">138.1.</strong> State and Action Spaces</a></li><li class="chapter-item expanded "><a href="search/selection.html"><strong aria-hidden="true">138.2.</strong> UCB1/PUCT Selection</a></li><li class="chapter-item expanded "><a href="search/expansion.html"><strong aria-hidden="true">138.3.</strong> Expansion and Simulation</a></li><li class="chapter-item expanded "><a href="search/backpropagation.html"><strong aria-hidden="true">138.4.</strong> Backpropagation</a></li></ol></li><li class="chapter-item expanded "><a href="search/policy-network.html"><strong aria-hidden="true">139.</strong> Policy Network Integration</a></li><li class="chapter-item expanded affix "><li class="part-title">Generative Models</li><li class="chapter-item expanded "><a href="generative/overview.html"><strong aria-hidden="true">140.</strong> Overview</a></li><li class="chapter-item expanded "><a href="generative/code-gan.html"><strong aria-hidden="true">141.</strong> Code Generation GANs</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="generative/generator.html"><strong aria-hidden="true">141.1.</strong> Generator Architecture</a></li><li class="chapter-item expanded "><a href="generative/discriminator.html"><strong aria-hidden="true">141.2.</strong> Discriminator Architecture</a></li><li class="chapter-item expanded "><a href="generative/latent-space.html"><strong aria-hidden="true">141.3.</strong> Latent Space Interpolation</a></li><li class="chapter-item expanded "><a href="generative/training.html"><strong aria-hidden="true">141.4.</strong> Training Loop</a></li></ol></li><li class="chapter-item expanded "><a href="generative/mode-collapse.html"><strong aria-hidden="true">142.</strong> Mode Collapse Detection</a></li><li class="chapter-item expanded affix "><li class="part-title">Advanced Topics</li><li class="chapter-item expanded "><a href="advanced/custom-backward.html"><strong aria-hidden="true">143.</strong> Custom Backward Passes</a></li><li class="chapter-item expanded "><a href="advanced/new-optimizers.html"><strong aria-hidden="true">144.</strong> Implementing New Optimizers</a></li><li class="chapter-item expanded "><a href="advanced/custom-lora.html"><strong aria-hidden="true">145.</strong> Custom LoRA Variants</a></li><li class="chapter-item expanded "><a href="advanced/advanced-quantization.html"><strong aria-hidden="true">146.</strong> Advanced Quantization</a></li><li class="chapter-item expanded "><a href="advanced/distributed-training.html"><strong aria-hidden="true">147.</strong> Distributed Training</a></li><li class="chapter-item expanded "><a href="advanced/model-parallelism.html"><strong aria-hidden="true">148.</strong> Model Parallelism</a></li><li class="chapter-item expanded "><a href="advanced/citl.html"><strong aria-hidden="true">149.</strong> Compiler-in-the-Loop (CITL)</a></li><li class="chapter-item expanded affix "><li class="part-title">Sovereign Deployment</li><li class="chapter-item expanded "><a href="sovereign/overview.html"><strong aria-hidden="true">150.</strong> Overview</a></li><li class="chapter-item expanded affix "><li class="part-title">Academic Research</li><li class="chapter-item expanded "><a href="research/overview.html"><strong aria-hidden="true">151.</strong> Overview</a></li><li class="chapter-item expanded affix "><li class="part-title">Specifications</li><li class="chapter-item expanded "><a href="specifications/autograd-spec.html"><strong aria-hidden="true">152.</strong> Autograd Specification</a></li><li class="chapter-item expanded "><a href="specifications/optimizer-spec.html"><strong aria-hidden="true">153.</strong> Optimizer Specification</a></li><li class="chapter-item expanded "><a href="specifications/lora-spec.html"><strong aria-hidden="true">154.</strong> LoRA Specification</a></li><li class="chapter-item expanded "><a href="specifications/quantization-spec.html"><strong aria-hidden="true">155.</strong> Quantization Specification</a></li><li class="chapter-item expanded "><a href="specifications/academic-foundations.html"><strong aria-hidden="true">156.</strong> Academic Foundations</a></li><li class="chapter-item expanded affix "><li class="part-title">Appendix</li><li class="chapter-item expanded "><a href="appendix/glossary.html"><strong aria-hidden="true">157.</strong> Glossary</a></li><li class="chapter-item expanded "><a href="appendix/mathematical-notation.html"><strong aria-hidden="true">158.</strong> Mathematical Notation</a></li><li class="chapter-item expanded "><a href="appendix/references.html"><strong aria-hidden="true">159.</strong> References</a></li><li class="chapter-item expanded "><a href="appendix/faq.html"><strong aria-hidden="true">160.</strong> FAQ</a></li><li class="chapter-item expanded "><a href="appendix/changelog.html"><strong aria-hidden="true">161.</strong> Changelog</a></li><li class="chapter-item expanded "><a href="appendix/migration-guide.html"><strong aria-hidden="true">162.</strong> Migration Guide</a></li><li class="chapter-item expanded "><a href="appendix/benchmark-results.html"><strong aria-hidden="true">163.</strong> Benchmarking Results</a></li></ol>';
        // Set the current, active page, and reveal it if it's hidden
        let current_page = document.location.href.toString();
        if (current_page.endsWith("/")) {
            current_page += "index.html";
        }
        var links = Array.prototype.slice.call(this.querySelectorAll("a"));
        var l = links.length;
        for (var i = 0; i < l; ++i) {
            var link = links[i];
            var href = link.getAttribute("href");
            if (href && !href.startsWith("#") && !/^(?:[a-z+]+:)?\/\//.test(href)) {
                link.href = path_to_root + href;
            }
            // The "index" page is supposed to alias the first chapter in the book.
            if (link.href === current_page || (i === 0 && path_to_root === "" && current_page.endsWith("/index.html"))) {
                link.classList.add("active");
                var parent = link.parentElement;
                if (parent && parent.classList.contains("chapter-item")) {
                    parent.classList.add("expanded");
                }
                while (parent) {
                    if (parent.tagName === "LI" && parent.previousElementSibling) {
                        if (parent.previousElementSibling.classList.contains("chapter-item")) {
                            parent.previousElementSibling.classList.add("expanded");
                        }
                    }
                    parent = parent.parentElement;
                }
            }
        }
        // Track and set sidebar scroll position
        this.addEventListener('click', function(e) {
            if (e.target.tagName === 'A') {
                sessionStorage.setItem('sidebar-scroll', this.scrollTop);
            }
        }, { passive: true });
        var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
        sessionStorage.removeItem('sidebar-scroll');
        if (sidebarScrollTop) {
            // preserve sidebar scroll position when navigating via links within sidebar
            this.scrollTop = sidebarScrollTop;
        } else {
            // scroll sidebar to current active section when navigating via "next/previous chapter" buttons
            var activeSection = document.querySelector('#sidebar .active');
            if (activeSection) {
                activeSection.scrollIntoView({ block: 'center' });
            }
        }
        // Toggle buttons
        var sidebarAnchorToggles = document.querySelectorAll('#sidebar a.toggle');
        function toggleSection(ev) {
            ev.currentTarget.parentElement.classList.toggle('expanded');
        }
        Array.from(sidebarAnchorToggles).forEach(function (el) {
            el.addEventListener('click', toggleSection);
        });
    }
}
window.customElements.define("mdbook-sidebar-scrollbox", MDBookSidebarScrollbox);
