Repository navigation
docs: auto compute-setup guide, cpu_fast override example, HPC fix (5F PR1) - #689
Merged
Merged
Conversation
…mple fix (5F PR1) New guides/advanced/auto_setup.py (setup="auto" / number_of_cores="auto", the per-dataset table, reading the Setup/Parallel/Estimate lines, overrides, estimate_runtime, lazy sparse operator, setup.json, factor graphs), linked from the READMEs, start_here and using_jax, and added to smoke_tests.txt. cpu_fast_modeling.py scripts become explicit-override examples with stale claims removed; hpc/example_cpu_and_gpu.py uses auto; stale speed prose points to the guide. Notebooks and catalogues regenerated. Part of #688 (likelihood-lifecycle phase 5F). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
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
Likelihood-lifecycle phase 5F, PR1 of 3 (#688). This brings the workspace in line with the automatic compute setup now on library main (5A–5E plus the setup banner):
guides/advanced/auto_setup.pyguide;cpu_fast_modeling.pyscripts become the explicit-override examples;Merge timing: these scripts call
setup="auto",number_of_cores="auto",al.estimate_runtimeandal.Settings(lazy_sparse_operator=...), which are merged but not yet on PyPI. Merge this together with or after the release that carries them (pending-release: PyAutoNerves#223/#224, PyAutoArray#709/#710/#712/#713, PyAutoFit#1795/#1796/#1797, PyAutoGalaxy#752/#753/#755, PyAutoLens#882/#886/#888/#889).Changes
scripts/guides/advanced/auto_setup.py(and notebook) covers: what auto decides and never decides; the per-dataset table (CPU node vs A100, fromsetup_rules.yaml); a fit withsetup="auto"/number_of_cores="auto"; reading the printed header andSetup:/Parallel:/Estimate:lines (real output pasted in); overrides (setup_id,al.Setup.from_setup_id,PYAUTO_SETUP, theJAX_PLATFORMS=cpunote);al.estimate_runtime; the lazy sparse operator for single fits; what masking, noise scaling and over-sampling keep;setup.json/parallel.jsonand aggregator reloads; factor graphs.guides/advanced/README.md(also fixes the stalegraphicalentry and the missingover_sampling_chaining),guides/README.md, the__JAX__sections of rootstart_here.py(also fixes its "NumPy is the default" contradiction) andimaging/start_here.py, andguides/using_jax.py. Also asmoke_tests.txtentry.cpu_fast_modeling.py(imaging, group, multi_galaxy) is reframed as "override the automatic setup":setup = "numba_cpu_sparse_fp64"withdataset.apply_setup(...)andsetup=setupon each analysis replacesapply_sparse_operator_cpu()/use_jax=False;setup="auto". Its prose said JAX but its code forced NumPy.guides/hpc/example_cpu_and_gpu.py+hpc/README.md+ batch-script comments now usesetup="auto"/number_of_cores="auto". They fix the single-CPU vs 8-CPU and "identical because use_jax=True" contradictions, and mark theJAX_PLATFORMS/ thread pins as optional.setup="auto"and the guide. Explicit teaching code is unchanged, and the bulkuse_jax=Trueboilerplate is left for the R6 default-flip sweep.llms-full.txtandworkspace_index.jsonregenerated by PyAutoHandsgenerate.py.Test Plan
PYAUTO_TEST_MODE=2, headless): 19/19 rc=0. The guide also passes under the smoke profile env (PYAUTO_DISABLE_JAX=1, small datasets).pyauto-heart smoke autolensagainst this branch: 43/43 scripts PASS (including the new guide) plus notebooks.scripts/check_sizes.sh: OK.pyauto-heart readiness --dev --repos autolens_workspace): GREEN.What the guide prints (8-core laptop, test mode):
Notes:
scripts/**/subhalo/sensitivity/slam_source_pixelized.py(owned by another task) andscripts/cluster/plot.py(open PR Teach the family fit panels one by one using Pandora #687) are untouched. Whichever of this PR and Teach the family fit panels one by one using Pandora #687 merges second regeneratesllms-full.txt/workspace_index.json.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code