Repository navigation
feat: site layer — site.yaml schema, Config.push_site, shipped site/ral.yaml - #207
Merged
Merged
Conversation
…al.yaml hpc-campaign phase 1 (#206). - autonerves/site_config.py: site.yaml schema (partitions with gpu_only, cores_per_node, mem_per_node_mb, max_time, max_array_size, tdp_w_per_cpu, cpu_is_thread, gpu_model, gpu_tdp_w; pue as a range; grid_region; ci_basis; energy_accounting) + validation. Any value may be plain, {value: ...} or a {low, high[, central]} range and may carry `unverified: true`. Site.cpu_partitions / Site.check_cpu_job keep CPU-only jobs off gpu_only partitions. - Config.push_site(name): config-dir site/<name>.yaml overrides the shipped autonerves/site/<name>.yaml; result kept on Config.site. - autonerves/site/ral.yaml (package data): `ral` CPU partition and `gpu` (gpu_only: true, A100) encoding the 2026-09-30 rule; every unconfirmed constant unverified (PUE 1.14-1.45, TDP 2.8-4.4 W/CPU, A100 250-400 W). - Nerves imports nothing from autofit (tested). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8N4RdvbZz9cstLYtNF
This was referenced Oct 29, 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
hpc-campaign phase 1 (#206). Adds a site layer: a
site.yamldescribing one HPC site (partitions, node sizes, limits, energy constants), loaded withConfig.push_site(name). It is the input later phases use to lint Slurm requests and estimate carbon.gpu_only,cores_per_node,mem_per_node_mb,max_time,max_array_size,tdp_w_per_cpu,cpu_is_thread,gpu_model,gpu_tdp_w; site-widepue(range),grid_region,ci_basis,energy_accounting. Any value may be plain,{value: ...}or a{low, high[, central]}range, and may carryunverified: trueSite.cpu_partitions/Site.check_cpu_jobkeep CPU-only jobs offgpu_onlypartitionsConfig.push_site(name): a config-dirsite/<name>.yamloverrides the shippedautonerves/site/<name>.yaml; the result is kept onConfig.siteautonerves/site/ral.yaml:ralCPU partition andgpu(gpu_only: true, A100), encoding the 2026-09-30 rule that CPU jobs never go on RALgpu; every unconfirmed constant markedunverified(PUE 1.14–1.45, 2.8–4.4 W/CPU, A100 250–400 W)Independent of the PyAutoFit phase 1 PR; can merge in any order.
API Changes
Additive. New
autonerves.site_configmodule andConfig.push_site(name)/Config.site. Shipssite/ral.yamlas package data (pyproject.toml).See full details below.
Test Plan
test_autonerves/test_site_config.py(new): schema validation, ranges andunverified,push_site("ral")loads the shipped file withgpumarkedgpu_only, config-dir override, CPU job rejected on agpu_onlypartition, no autofit importtest_autonervessuite: 280 passedpyauto-heart smoke autofit autolens_teston the phase 1 worktree (PyAutoFit + PyAutoNerves + autofit_workspace branches together): 47 passed, 0 failedFull API Changes (for automation & release notes)
Added
autonerves.site_config— site schema, validation,Site,Site.cpu_partitions,Site.check_cpu_jobConfig.push_site(name),Config.siteautonerves/site/ral.yamlMigration
Refs #206
🤖 Generated with Claude Code