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.
Source code in geno_lewm/training/fixture.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |