You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: re-mainline af.NSS as a first-class search on mainline blackjax ≥1.6 #1491
Restore the af.NSS nested slice sampler as a proper first-class search. It was removed in #1356/#1357 solely because its dependencies were unshippable git-fork pins (handley-lab/blackjax + yallup/nss); nested sampling has since merged into mainline blackjax 1.6 (current 1.6.2), so the removal reason is gone and the stash README's re-mainlining checklist applies. Human-directed 2026-08-18.
The full working implementation is preserved verbatim at autofit_workspace_developer/searches/nss/. The mainline port was validated end-to-end on CPU before this issue (cloud session, autolens_profiling#142 companion): 2D analytic toy through the full search pipeline gives logZ −4.558 ± 0.078 vs analytic −4.605, and the chunked GPU-memory path is bit-identical to the unchunked path at fixed seed.
Plan
Restore autofit/non_linear/search/nest/nss/ from the stash with the mainline port: blackjax.ns.utils imports (fork's nss.ns is gone), SliceInfo num_steps → num_expansions eval counter, chunked builder recomposed from mainline public helpers (build_slice_kernel / slice_constrained_step / build_adaptive_kernel / live_covariance — the fork's update_strategy= kwarg no longer exists), fork-era install prose removed.
Restore test_autofit/non_linear/search/nest/nss/ (kept verbatim against library import paths; one ImportError match-string update).
Re-export NSS from autofit/__init__.py.
pyproject.toml: bump the optional extra's blackjax floor >=1.2.0 → >=1.6.2 (no cap exists).
Run the nss test subset + an end-to-end toy smoke from the checkout.
Programme note: the inference programme (autolens_profiling results/notes/inference/PROGRAMME.md §7) gated re-mainlining behind Gate A; the human has directed it early — Gate A still decides whether NSS becomes the GPU nested-sampling baseline. Scope change to be recorded in the programme DECISIONS.md. Workspace tutorial restoration (stash checklist item 5) is a separate follow-up.
Original Prompt
Click to expand starting prompt
See PyAutoMind/active/nss_remainline_mainline_blackjax.md (filed 2026-08-18).
Activity