Skip to content

feat: HPC templates take --setup / --number_of_cores auto; wiki HPC pages for auto setup (R6 phase C) - #196

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-r6c-assistant-hpc
Nov 26, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-r6c-assistant-hpc

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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.

  • HPC templates take --setup <auto|cpu|gpu|setup_id> and --number_of_cores <auto|int> (both default auto), 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/gpu export PYAUTO_SETUP and resolve as "auto"; a setup_id is validated with al.Setup.from_setup_id. --use_cpu stays as a deprecated alias for --setup cpu (stderr note; combining it with another --setup is a usage error).
  • CPU batch template and stage call --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 new BLAS_THREADS (default 1; NUMBA_NUM_THREADS/OMP/MKL/OpenBLAS) because number_of_cores=auto runs one numba worker per CPU. Dropped unused JAX_PLATFORM_NAME, VECLIB_MAXIMUM_THREADS, NUMEXPR_NUM_THREADS, NPROC.
  • Wiki wiki/core/operations/hpc.md rewritten via al_update_wiki as "Compute setup": the real setup_rules.yaml choices (MGE → jax_{cpu,gpu}_dense_fp64; pixelized → numba_cpu_sparse_fp64 / jax_gpu_dense_fp64), apply_setup attaching 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.md and scripts/AGENTS.md match the new contract.

Test Plan

  • New autoassistant/tests/test_hpc_template.py (CLI contract) + updated test_hpc_sync.py stage-args/pin tests: 59 passed
  • make test: 328 passed, 2 skipped, 1 xfailed; 9 errors in test_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
  • Audits: --scope all, --lint-idioms, --check-citations, --check-version clean; --check-provenance 0 errors against library origin/main
  • hpc/sync plan hpc/campaign.yaml dry run (local fake ssh/rsync) printed all 3 stages; act submit --dry-run rendered the stage; python hpc/template.py --help shows the new flags

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…es for the automatic compute setup (R6 phase C)

Closes #195.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit abf05bf into main Nov 26, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/likelihood-lifecycle-r6c-assistant-hpc branch November 26, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: R6 phase C — HPC templates take --setup/--number_of_cores auto; wiki HPC pages for auto setup

1 participant