Repository navigation
feat: wire iterations_per_quick_update into the MultiStart gradient step loop - #1556
Merged
Merged
Conversation
…ve_visual_update The multi-start gradient searches accepted both kwargs, announced the cadence in the startup log, and then ignored them: their Fitness was built without the cadence because fitness.call is traced under jax.jit(jax.vmap(...)), where the per-evaluation counter in call_wrap would tick once at trace time and never again (PyAutoFit#1433). The step loop in AbstractMultiStartGradient._fit is plain host Python — the same seam iterations_per_log uses — so the cadence is driven from there instead: - _fit forwards iterations_per_quick_update (never-sentinel mapped to None so a disabled cadence pays no visualization warm-up), background_quick_update and live_visual_update into its Fitness, so LiveDisplay / BackgroundQuickUpdate are set up through the exact path every other search uses. - _manage_quick_update_step feeds the current global-best point into Fitness.manage_quick_update once per non-terminal gradient step, so Fitness.quick_update_count counts GRADIENT STEPS (each evaluating all n_starts lanes) — the unit is deliberate and documented, distinct from the per-evaluation batch counting the call_wrap searches get. - Terminal steps skip the quick update, and the cadence is disabled on the returned fitness, because start_resume_fit performs the full final update unconditionally and its likelihood profiling calls call_wrap directly — both would otherwise duplicate or trail the final update. - quick_update_message override states the gradient-step unit, keeping the startup line honest in the unit as well as in fact. - mle/multi_start_gradient/search.py leaves the EXEMPT map in test_quick_update_wiring.py; new tests drive the real JAX step loop and count perform_quick_update calls (cadence, unit, terminal skip, disabled default), plus guards on the per-step feeder. Closes the library phase of the Mind prompt; the autolens_workspace prose/cadence retune and AST guard follow once these semantics land.
…ick-update-wiring
…s tripwire to assert quick updates FIRE The wiring makes the cadence live for the MultiStart family, so the e2e regression's quick_update_count assertion flips from == 0 to > 0 exactly as the tripwire's comment demanded; the two ceiling asserts (60 steps, max_steps stop) stay unchanged. mle + wiring + text_util suites: 162 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qj5UN31m3FSCxzgp5jTrPj
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.
Closes #1552.
Summary
MultiStartProdigy/Adam/ADABelief/Lionacceptediterations_per_quick_updateandlive_visual_update, announced the cadence in the startup log, and ignored both (theFitnesscounter cannot live underjax.jit(jax.vmap(...))). Quick updates are now driven from the host-Python step loop — one count per gradient step, deliberately, not per batched evaluation — withLiveDisplay/BackgroundQuickUpdateset up through the same path every other search uses. The startup message states the unit honestly, andmle/multi_start_gradient/search.pyis removed from the EXEMPT map intest_quick_update_wiring.py. Session-reported: full suite green locally (2334 passed).Merge order (batch 2026-08-31-pm, member autofit-multistart-iterations)
Third of the three PyAutoFit PRs this shift: merge after #1554 and #1555. #1555 added a
quick_update_count == 0inertness tripwire that this change must flip to a "fired" assertion — expect that test interaction when this rebases onto the moved main. The autolens_workspace leg (prose retune + AST guard) is phase 2, queued separately.Review context
This branch was produced by an unattended batch member that parked at the ship checkpoint per its
supervisedautonomy, with plan and evidence on #1552. The PR is opened from the parked branch at the human's request so the batch review judges a real PR with CI — merge remains the review's ruling.Generated by the PyAutoLabs agent workflow.
Generated by Claude Code