6 Commits
Author SHA1 Message Date
Tom Kasper cda6cfd34e Add grad_accum: effective batch 256 on small GPUs via micro-batching
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).
2026-11-04 08:35:03 +01:00
Tom Kasper 86af080e87 Create store out_dir before writing excluded_reads.parquet
extract_store wrote the excluded-reads parquet before the shard writer
created the output directory, so any fresh --out path failed with
'No such file or directory'. Add the mkdir (the docstring already
promised 'created as needed') plus a regression test.
2026-11-03 21:02:19 +01:00
Tom Kasper 87c64278ba Export per-read test split in evaluate_test for external baselines
evaluate_test additionally writes test_split.parquet (window_id/read_id/
genus/source_run) so the workflow's alignment baseline can be evaluated on
the identical test read set of a run; also a small ruff E501 fix in cli.py.
2026-10-15 19:54:40 +01:00
Tom Kasper 3e8ccdbdad Made more compatible with experimental conditions 2026-10-03 15:17:03 +01:00
Tom Kasper 96ae5d78ba Added --out optional flag for build subcommand to make usage in snakemake cleaner 2026-09-29 08:55:00 +01:00
Tom Kasper 88e98effad Initial release: E1 genus probe package moved out of the E01 workflow
- 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
2026-09-22 13:22:50 +01:00