geno_lewm.training.fixture¶
fixture
¶
Deterministic fixture-tier trainer for the geno-lewm-train smoke path.
This module is intentionally not the Carbon-backed trainer. It gives the release workflow a clean-machine, dependency-light training command that exercises config resolution, checkpointing, deterministic resume, metrics, logs, and training-run metadata before the heavy ML stack is available.
FixtureTrainingReport
dataclass
¶
FixtureTrainingReport(run_id: str, run_dir: Path, steps_requested: int, steps_completed: int, resumed_from_step: int, final_loss: float, checkpoint_path: Path, metrics_path: Path, log_path: Path, config_path: Path, dataset_manifest_path: Path, training_metadata_path: Path)
Summary returned by the deterministic fixture trainer.
run_fixture_training
¶
run_fixture_training(*, config: GenoLeWMConfig, run_dir: Path, steps: int = 50, resume_from: Path | None = None, command: str, commit_sha: str, package_version: str) -> FixtureTrainingReport
Run a deterministic scalar smoke trainer and write release artifacts.
steps is the target total step count. When resume_from is
supplied, the checkpoint's current step must be lower than steps;
the resumed run continues with the same deterministic sample stream.