Skip to main content

Source coverage

Coverage claim​

This documentation project inventories:

  • all implementation modules under src/speedtronic (v1 plus v2);
  • every top-level class and function;
  • every direct class method;
  • module constants and compatibility aliases;
  • all v1 and v2 test functions in the repository;
  • both shipped YAML configurations;
  • both shipped examples;
  • package metadata, source manifest, license, and ignore rules through the operational pages.

The exhaustive AST listing is generated during npm run build and appears as Generated Source Inventory.

Build-time coverage gate​

scripts/validate_coverage.py fails the build when:

  • a Python implementation file is absent from the generated inventory;
  • a top-level class/function or class method lacks a generated anchor;
  • a test file or test function is absent;
  • a shipped config or example is absent;
  • a documentation page is not represented in the sidebar.

The source inventory generator uses ast.parse; it does not import Speedtronic, load PyTorch, read credentials, or access the network.

Implementation module map​

ModuleResponsibilityCurated page
__init__.pyEager/lazy public exports and versionGenerated inventory
__main__.pypython -m speedtronicCLI
config.pyDataclasses, parsing, defaults, redactionConfiguration
runtime.pyComposition helpersRuntime and Trainer
trainer.pyOptimization loop and stateRuntime and Trainer
data.pyTokenizers, datasets, collators, loaderData
model.pyReference transformerReference Model
registry.pyModel factory registryExtensions
precision.pyDevice and precision capabilityPrecision
checkpoint.pyAtomic persistence and RNGCheckpoints
profiling.pyMetrics and callbacksObservability
hooks.pyEvent wrapperObservability
integrations.pyW&B and TensorBoard adaptersObservability
module_utils.pyGradient-checkpointing helperExtensions
cli.pyArgument parser and command dispatchCLI
distributed/__init__.pyDistributed re-exportsDumbDiLoCo overview
distributed/diloco.pyMaster/worker coordinatorCoordinator
distributed/hub.pyHub file transport and retriesHub Transport
distributed/outer.pyOuter optimizer and master loopOuter Loop
distributed/tensors.pySafetensors and delta wire formatTensor Format
optimizers.pyHybrid Muon, Muon+, cautious wrapper, routingv2 Optimizers
shapes.pyStartup shape profiles and warningsShape Validation
scheduling.pyCUDA stage streams and OOO fallbackOOO Backprop

Supporting file map​

FileCoverage
README.mdUser overview reconciled against implementation in all pages
pyproject.tomlPackaging
MANIFEST.inPackaging
LICENSEApache-2.0 summary and glossary
.gitignoreGenerated/artifact guidance in operations pages
configs/smoke.yamlShipped Configs
configs/v2_smoke.yamlShipped Configs
configs/diloco.yamlShipped Configs
CHANGELOG.mdRelease and deferred-decision record
.github/workflows/ci.ymlPython, documentation, and distribution gates
examples/train_reference.pyShipped Examples
examples/diloco_master.yamlShipped Examples

Evidence labels​

LabelMeaning
Verified by testsDirectly asserted by a repository test
Example exercisedPresent in a shipped runnable configuration or Python example
Implementation-derivedRead directly from source but not directly tested
External dependentRequires real CUDA, MPS, compilation, filesystem failure, or Hub networking

Documentation completeness does not imply every documented path is tested. The test map makes that distinction explicit.