Skip to content

feat: wire iterations_per_quick_update into the MultiStart gradient step loop - #1556

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/multistart-quick-update-wiring
Sep 1, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/multistart-quick-update-wiring

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Closes #1552.

Summary

MultiStartProdigy/Adam/ADABelief/Lion accepted iterations_per_quick_update and live_visual_update, announced the cadence in the startup log, and ignored both (the Fitness counter cannot live under jax.jit(jax.vmap(...))). Quick updates are now driven from the host-Python step loop — one count per gradient step, deliberately, not per batched evaluation — with LiveDisplay/BackgroundQuickUpdate set up through the same path every other search uses. The startup message states the unit honestly, and mle/multi_start_gradient/search.py is removed from the EXEMPT map in test_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 == 0 inertness 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 supervised autonomy, 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.

  • Human: plan sound in hindsight?
  • Human: diff matches plan (no scope creep)?
  • Human: merge, amend, or reject — then log the outcome

Generated by the PyAutoLabs agent workflow.


Generated by Claude Code

claude added 3 commits August 31, 2026 19:15
…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.
…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
@Jammy2211
Jammy2211 merged commit c06f671 into main Sep 1, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/multistart-quick-update-wiring branch September 1, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: MultiStart* searches ignore iterations_per_quick_update

2 participants