Commit 5d2df92
committed
refactor(automodel)!: delete the inert log_every_n_steps
It described itself as "Logging frequency in steps. Controls how often training
metrics are logged" and controlled nothing. No code read it, it never reached
the recipe config, and `config.py` builds step_scheduler with no logging cadence
at all. A repo-wide grep found only the declaration.
The design doc called it "documented to users" and weighed deletion against
wiring it to StepScheduler.log_remote_every_steps, which gates W&B and MLflow
from inside log_train_metrics and so would have left our wrapper firing every
step. That wiring had a real argument behind it — it is the automodel analogue
of unsloth's logging_steps, which we deliberately keep separate from our own
reporting knob.
Checking the reachability settled it the other way. `api/v2/jobs/` holds a
schema file and no routes; CustomizationJobOutput is an internal intermediate
between the plugin adapter and the compiler; the submitter-facing
AutomodelJobOutput never carried the field; and regenerating the specs after
removing it produces no diff, because it was in none of them. No request could
ever set it. So there is no existing behaviour to preserve and no user
expectation to honour, and wiring it would have been adding a feature under
cover of a cleanup — a second field that sounds like "how often are metrics
logged", sitting next to progress_reporting.max_points, which is the knob it
was reaching for and which now exists.
Removal is invisible: the model ignores extras, so a stored spec that still
carries the key parses exactly as before. That property is the whole reason
this is safe rather than breaking, so it is pinned by a test — adding
extra="forbid" here later would otherwise turn silent tolerance into a hard
failure for precisely those specs.
Marked as a breaking change by convention, since the field was public in shape
even though it was unreachable in practice.
Signed-off-by: Albert Cui <albcui@nvidia.com>1 parent 752ea56 commit 5d2df92
2 files changed
Lines changed: 36 additions & 4 deletions
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 214 | | |
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 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 | + | |
129 | 158 | | |
130 | 159 | | |
131 | 160 | | |
| |||
0 commit comments