Repository navigation
Learn the stagnation step from any reader's increases; make ETA total follow the run's own step - #2020
Merged
Conversation
…her reader wrote The learned step (longest_quiet_seconds) was written only by the increase branch of the tracker. When an older reader of the same record (a route sealed on an older version) wrote the increase first, this observer saw delta 0 and never learned, so a run with steps over two hours kept getting the two-hour stagnation notice at every step. Remember the last-increase time this observer has accounted for; when the record's last-increase time has moved past it, the width is a step. Reproduced first: with an older writer's increases the stagnation stood at two hours instead of 1.5x the step. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…the run's own step The ETA used the change between two looks (within 600 s) as the rate. For a coarse unit such as an epoch, the look that sees an increase is seconds to minutes after the last look, so that gap was taken as the time of a whole epoch: the predicted total sat just above the elapsed time and grew with it (3/50 -> 7 h, 20/50 -> 44 h for a ~108 h run), and any look that did not see an increase had no ETA at all. The tracker now keeps the time per unit between the run's last two increases (also an increase another reader wrote), and the evaluator uses units left x that time at every look. Until two increases are known the old look-to-look rate is the fallback, so a run that rises in small steps keeps its value, a resumed run does not divide earlier units by this elapsed time, and a run with no increase yet stays unknown. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two fixes in
utilities/resource_progress.py(the experiment observer's counter tracker and ETA), reported by a user whose run takes about 2 h 10 min per epoch for 50 epochs:longest_quiet_seconds) was written only by the tracker's own increase branch. When an older reader of the same record (a route sealed on an older version) wrote an increase first, this observer sawdelta == 0and never learned, so the two-hour default stood for the whole run: "no increase for 2h00m" arrived at every epoch of a healthy run. The tracker now remembers the last-increase time (and counter value) it has accounted for; when the record's last-increase time has moved past it, that width is a step.(total - reached) × that time. Until two increases are known the old look-to-look rate is the fallback; with no increase yet the ETA stays unknown.Order of commits: fix 1 (with its test), fix 2 (with its tests and one doc sentence in
capabilities/autopilot-lab.mdplus generated projections).Tests
New tests in
utilities/resource_progress.test.pyfail onorigin/mainand pass here: an older writer's increases (stagnation at 1.5× the step, not at 2 h), ETA total at 3/13/20 of 50 epochs at three looks each (±10 %), a fine-step run (same value as before), a resumed run (counter starts at 30), and unknown until the interval is known.utilities/resource_progress.test.pyand the other suites that call it pass;generate.py --checkandcheck-adaptation-boundary.shpass.What changes for users
eta-over-plan/eta-over-six-hoursfire late (aselapsed-over-*) or not at all for coarse units🤖 Generated with Claude Code