add Nautilus_jax.py — JAX-jitted Nautilus integration test#17
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced Apr 29, 2026
Collaborator
Author
|
Workspace fixes are now up: PyAutoLabs/autofit_workspace#47 (the actual breaking-case fix for the inline tutorial classes) and Jammy2211/autofit_workspace_developer#9 (defensive parity for 7 dev scripts). All three can land together once #47's smoke CI is green. |
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.
Summary
Adds
scripts/searches/Nautilus_jax.py, a JAX-jitted variant of the existingNautilus.pyintegration test. Exercises the end-to-end JAX path:enable_pytrees()+register_model(model)+af.ex.Analysis(use_jax=True)+af.Nautilus(...)against the 1D Gaussian dataset. ConfirmsFitness._vmap(which wraps the likelihood injax.vmap(jax.jit(...))) andaf.Nautilus's auto-routing tofit_x1_cpuwithvectorized=Truework end-to-end againstaf.Model(af.ex.Gaussian).Local run: search finishes (
log_Z ≈ -64.15,n_eff = 366) in ~24s. TheJAX: Applying vmap and jit to likelihood functionlog line in stdout confirms the JIT path is exercised, not silently bypassed.Scripts Changed
scripts/searches/Nautilus_jax.py(new) — JAX-jitted Nautilus integration test, NullPaths (n_live=50,n_eff=100).Upstream PR
PyAutoLabs/PyAutoFit#1240 (merged) — fixes the bare-
Modelxpfallback inaf.ex.Analysis.model_data_1d_fromthat this script depends on.Test Plan
python scripts/searches/Nautilus_jax.pyruns to completion under$WT_ROOT/activate.shfailed/scripts__searches__Nautilus_jax.py.txtlog produced bybash run_all_scripts.sh🤖 Generated with Claude Code