Repository navigation
feat: aa.Setup, Setup.auto and the setup rule table from the Pulse designations (5B-1) - #709
Merged
Merged
Conversation
…signations (#708) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
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 5B-1 (part of #708). This adds
aa.Setupandaa.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
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_idround-trip.aa.Setup.auto(dataset_type, variant, regime="standard", environment=None):PYAUTO_SETUPwins;cpuorgpuforces that hardware class.autonerves.environment.Environment.detect()reports.extrapolated=True.autoarray/config/setup_rules.yaml: 39 rows generated from Pulsedecisions.yamlat 94a101f4. Regenerate it withpython -m autoarray.setup.generate_rules --pulse <PyAutoPulse>;--checkreports drift.See full details below.
Test Plan
test_autoarray/setup: 85 tests, covering every rule row on both hardware classes, the extrapolated cases,PYAUTO_SETUPprecedence, invalid tokens, and a parity regeneration against a local Pulse checkout (skipped without one)-n 4)autoarraystill does not import JAXHeart dev readiness (PyAutoArray): GREEN. Reasons shown but not blocking: manifest drift (1 mismatch); no release rehearsal for current source.
Note:
datacube/delaunayhas only a cpu_many_core designation, so on a GPU nodeautoreturns that CPU setup withextrapolated=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_idSetup.auto(dataset_type, variant, regime="standard", environment=None)autoarray.setup.setup.rules(),MANY_CORE_MIN_CORES = 16,GPU_A100_NAMEpython -m autoarray.setup.generate_rules --pulse <path> [--output F] [--check]autoarray/config/setup_rules.yamlMigration
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code