Repository navigation
feat: HPC templates take --setup / --number_of_cores auto; wiki HPC pages for auto setup (R6 phase C) - #196
Merged
Conversation
…es for the automatic compute setup (R6 phase C) Closes #195. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Closes #195 (likelihood-lifecycle R6 phase C). Safe to merge before the next release: the templates pass
setup=explicitly, which 2026.11.25.1 already supports.--setup <auto|cpu|gpu|setup_id>and--number_of_cores <auto|int>(both defaultauto), replacing--use_cpu— the same contract as the Euclid pipeline (feat: --setup replaces --use_cpu, number_of_cores auto (5H) euclid_strong_lens_modeling_pipeline#142).cpu/gpuexportPYAUTO_SETUPand resolve as"auto"; a setup_id is validated withal.Setup.from_setup_id.--use_cpustays as a deprecated alias for--setup cpu(stderr note; combining it with another--setupis a usage error).--setup=cpu --number_of_cores=auto; GPU template--setup=gpu. Kept, with a one-line comment each:JAX_PLATFORMS=cpu(no GPU reach on CPU jobs; makes auto pick CPU rules) and one thread per process via a newBLAS_THREADS(default 1;NUMBA_NUM_THREADS/OMP/MKL/OpenBLAS) becausenumber_of_cores=autoruns one numba worker per CPU. Dropped unusedJAX_PLATFORM_NAME,VECLIB_MAXIMUM_THREADS,NUMEXPR_NUM_THREADS,NPROC.wiki/core/operations/hpc.mdrewritten viaal_update_wikias "Compute setup": the realsetup_rules.yamlchoices (MGE →jax_{cpu,gpu}_dense_fp64; pixelized →numba_cpu_sparse_fp64/jax_gpu_dense_fp64),apply_setupattaching JAX or numba sparse operators,number_of_cores="auto"; the stale "sparse operator is CPU/numba-only, never on GPU" claim removed. Pinned to library main (PyAutoArray e261e6d6f, PyAutoGalaxy 9c3916391, PyAutoFit 67164d229), which the next release carries.hpc_infrastructure.md: CLI table, GPU/CPU table, pin rationale.skills/init-slam.mdandscripts/AGENTS.mdmatch the new contract.Test Plan
autoassistant/tests/test_hpc_template.py(CLI contract) + updatedtest_hpc_sync.pystage-args/pin tests: 59 passedmake test: 328 passed, 2 skipped, 1 xfailed; 9 errors intest_forward_model_consistency.py("Reference requires autolens==2026.9.27.2; found 9999.0.0.dev0") are pre-existing — the same 9 error on main locally--scope all,--lint-idioms,--check-citations,--check-versionclean;--check-provenance0 errors against library origin/mainhpc/sync plan hpc/campaign.yamldry run (local fake ssh/rsync) printed all 3 stages;act submit --dry-runrendered the stage;python hpc/template.py --helpshows the new flagsGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code