Skip to content

Phase 2: MLX keep_best #288

Closed
Closed

Description

@neuromechanist

Part of epic #278. Port the #51 best-iterate safeguard (keep_best, snapshot_params/restore, final_ll semantics, the share_comps/do_reject disables) to AMICAMLXNG. Newton fallback overshoots were keep_best's original motivation; the #264 gate measured zero overshoot on sample data, so this is robustness for harder data, not a known live defect.

Activity

  1. added a commit that references this issue on Sep 1, 2026
  2. neuromechanist commented on Sep 1, 2026

    @neuromechanist
    MemberAuthor

    Landed on the epic branch via PR #310: keep_best ported with torch's exact snapshot/restore semantics (snapshot after the E-step that measured the candidate best, 1e-9 tolerance, degenerate-stop exclusion, n_kurt_done captured with pdtype), share_comps disable with the torch warning, additive state_dict persistence, and 13 new tests including the forced-restore recipe (measured overshoot 1.68e-4 under the min_dll stop), the no-rescue-of-diverged-fits guard pinned in BOTH backends, and the keep_best x n_restarts composition. Reaches dev with the epic #278 final merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions