TrainConfig.grad_accum (default 1, behaviour unchanged) splits the
batch into batch_size // grad_accum loader micro-batches; train_probe
accumulates their gradients before each optimiser step (clip and fp16
unscale at window boundaries, scheduler steps per update). The Stage-A
ladder's largest points need ~15+ GiB activations at batch 256, which
no longer fits a 16 GB RTX 4060 Ti; accumulation keeps the spec's
uniform effective batch while micro-batches stay under ~8 GiB.
Tests: first-update gradient of accum=3 matches full-batch exactly;
loader micro-batch sizing; suite green (52 passed).
- src/custom_models torch modules, store, training, metrics, runner and CLI
(package-relative imports for pip installability)
- test suite (49 tests) + conftest with fast synthetic-store fixtures
- uv-managed dev env (pyproject + CPU torch index), hatchling build
- README: uv for the package, pip install into conda envs for the workflow