Skip to content

feat: aa.Setup, Setup.auto and the setup rule table from the Pulse designations (5B-1) - #709

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-p5b-array
Nov 24, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/likelihood-lifecycle-p5b-array

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Likelihood-lifecycle phase 5B-1 (part of #708). This adds aa.Setup and aa.Setup.auto, which return the Pulse-designated optimal compute setup for a likelihood on the current hardware. The rule table is generated from the PyAutoPulse designation decisions. The PR is choice only and no dataset behaviour changes; applying a setup to a dataset is 5B-2.

API Changes

  • New aa.Setup: a frozen setup tuple (backend, device, operator, precision, transformer) plus its provenance (rule_id, regime, hardware_class, decision_id, extrapolated). Setup.from_setup_id() and .setup_id round-trip.
  • New aa.Setup.auto(dataset_type, variant, regime="standard", environment=None):
    • A full setup_id in PYAUTO_SETUP wins; cpu or gpu forces that hardware class.
    • Otherwise it looks the likelihood up in the rule table for the hardware autonerves.environment.Environment.detect() reports.
    • Hardware with no designation (a non-A100 GPU, a CPU with fewer than 16 cores) gets the nearest class with extrapolated=True.
  • New data file autoarray/config/setup_rules.yaml: 39 rows generated from Pulse decisions.yaml at 94a101f4. Regenerate it with python -m autoarray.setup.generate_rules --pulse <PyAutoPulse>; --check reports drift.
    See full details below.

Test Plan

  • test_autoarray/setup: 85 tests, covering every rule row on both hardware classes, the extrapolated cases, PYAUTO_SETUP precedence, invalid tokens, and a parity regeneration against a local Pulse checkout (skipped without one)
  • Full suite: 2562 passed (-n 4)
  • Importing autoarray still does not import JAX
  • CI green

Heart dev readiness (PyAutoArray): GREEN. Reasons shown but not blocking: manifest drift (1 mismatch); no release rehearsal for current source.

Note: datacube/delaunay has only a cpu_many_core designation, so on a GPU node auto returns that CPU setup with extrapolated=True (design call 1: nearest class).

Full API Changes (for automation & release notes)

Added

  • autoarray.Setup (aa.Setup): Setup(backend, device, operator, precision, transformer=None, rule_id=None, regime="standard", hardware_class=None, decision_id=None, extrapolated=False)
  • Setup.from_setup_id(setup_id, **provenance), Setup.setup_id
  • Setup.auto(dataset_type, variant, regime="standard", environment=None)
  • autoarray.setup.setup.rules(), MANY_CORE_MIN_CORES = 16, GPU_A100_NAME
  • python -m autoarray.setup.generate_rules --pulse <path> [--output F] [--check]
  • autoarray/config/setup_rules.yaml

Migration

  • None (additive).

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…signations (#708)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Nov 23, 2026
@Jammy2211
Jammy2211 merged commit e70af85 into main Nov 24, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/likelihood-lifecycle-p5b-array branch November 24, 2026 09:44
@pyautolabs-bot pyautolabs-bot Bot removed the pending-release PR queued for the next release build label Nov 25, 2026
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.

1 participant