Repository navigation
Move to EpiAwarePackageTools 0.5.2: kit benchmark layout, a daily AD tier, and no kit pin - #1048
Merged
Merged
Conversation
Accept the benchmark-history.yaml that EpiAwarePackageTools 0.5 renders: one cell per top-level group and per AD backend, with per-revision caches, merged and deployed to the same published layout.
The kit's benchmark workflows give each AD backend its own runner and name it in BENCHMARK_AD_BACKEND. The suite now prepares that backend only.
0.5.0 is now in General, so drop the git [sources] pins in test, docs, test/ad and test/jet, and bound every environment at "0.5", the benchmark environment included.
The performance page read history/results/latest.json, which the daily ad-benchmarks run replaces with the AD gradients alone. With no forward-run times the figure reduced over an empty collection and failed the docs build. Read the per-revision file the history README names, which only the history workflow writes, fall back to latest.json, and say the results are not available when no case has both a forward run and a gradient.
update(".") from the commit registered as 0.5.1, with the
template-sync.yaml arguments. The benchmark workflows install the
registered kit rather than its main branch, benchmark-history.yaml gains
the scheduled-only tier machinery (no extra tier named), docs/make.jl
passes AD_BENCHMARK_TIER, and the issue forms, pull request template and
authorship-labels workflow are seeded. test/jet/Project.toml takes the
kit's own compat line back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.5.1 fixes the min_merge world-age failure in the benchmark comparison and is the release whose build_docs takes ad_benchmark_tier, which the synced docs/make.jl now passes. test/jet keeps the kit's own line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both carry this package's workflow, checks and release steps, so name them in DEVELOPMENT_OWNED_PAGES as the 0.5.1 sync asks, rather than take the kit's generic pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The kit has no slot for an extra badge, so it sat outside the managed block and showed on the docs home page. The backends explanation already links the Reactant support matrix. Closes #1045. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
update(".") from v0.5.2 with the template-sync.yaml arguments and
docs_timeout = 90. The benchmark history publishes the cells that
finished when one fails, the AD comparison page reads only the registry
scenarios, test/jet takes the kit's "0.5" bound, and the docs build
may run for 90 minutes. The document.yaml with: block survives a later
sync that does not pass docs_timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
No? |
Contributor
Benchmark comparison vs baseMinimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:
Evaluation — 24 benchmarks (by time change)
AD gradients — 63 benchmarks (by time change)
|
BENCHMARK_TIER=ad times the registry gradients alone, with no matrix cases and no primal groups, for the history workflow's daily extra tier. With BENCHMARK_LIST_ONLY=true, as the history workflow sets when it only lists groups and backends, each gradient gets a placeholder rather than being prepared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0.5.2's history job publishes the cells that finished when one fails, so a crashing backend (Enzyme forward, #1054) no longer costs the others their numbers. The tier deploys to history/tiers/ad/, so it no longer overwrites history/results/latest.json, and the AD comparison page reads it through AD_BENCHMARK_TIER. ad-benchmarks.yaml, its merge script and that script's test go. 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.
This completes the move to EpiAwarePackageTools 0.5 that #1035 started, and brings the package up to the kit's 0.5.2 release.
Benchmark history now runs as the kit's per-group grid, with one runner per AD backend.
The registry AD grid moves from the package's own
ad-benchmarks.yamlto the history workflow's dailyadtier, which publishes the backends that finish when one crashes.The kit is no longer pinned by git, and every package-owned environment requires
"0.5.2".It also fixes the Performance page, which failed the docs build when the daily AD benchmark run had replaced the history results it reads, gives the docs build 90 minutes, and removes the Reactant badge that showed on the docs home page.
Closes #1045.
After merging, run the Benchmark history workflow once by hand with
tierset toad, or wait for its 02:23 UTC schedule. Until then the AD comparison page says its numbers are not available.Claude Opus 5.5 [high]
Commits
update(".")with thetemplate-sync.yamlarguments (kit 0.5.0) rewritesbenchmark-history.yaml.revsjob builds the grid: one cell per top-level group, and one per backend in"AD gradients".test/ADFixtures, and caches per-revision results by group.jq, then plots and deploys tobenchmarks:history/as before.BENCHMARK_AD_BACKENDinbenchmark/benchmarks.jl. The suite keeps that backend's gradients only, leaves outprimal, and combines withBENCHMARK_BACKENDS. An unknown name errors.[sources]entry for the kit remains in any environment, and no committed Manifest refers to it.update(".")from the registered release and thetemplate-sync.yamlarguments.benchmark.yamlandbenchmark-history.yamlinstall the registered kit rather than itsmainbranch. 0.5.1 fixes themin_mergeworld-age failure in the pull request comparison.ad-comparison.jlpasses the registry scenario names toload_ad_benchmarks(0.5.2).test/jet/Project.tomltakes the kit's"0.5"(0.5.2'sKIT_COMPAT).docs_timeout = 90writestimeout_minutes: 90intodocument.yaml'swith:block. The docs build was hitting the reusable's 45-minute default.template-sync.yamlcalls the shared reusable and has noupdate(call to change: the kit keeps awith:input on a later sync that does not pass it (_preserve_caller_with_inputs), which a secondupdatewithout the keyword confirms.docs/make.jlpassesAD_BENCHMARK_TIERtobuild_docs.authorship-labels.yaml, which labels issues and pull requestsbot,ai-supportedorhuman.docs/src/assets/epiaware-logo.svgis already the kit's copy, from fix: keep the logo readable in dark mode #1053."0.5.2"inbenchmark,docs,testandtest/ad.DEVELOPMENT_OWNED_PAGES. The 0.5.1 sync warns thatdeveloper/contributing.mdanddeveloper/release-process.mdare the package's own. Both carry this package's workflow, checks and release steps, sodocs/docs_config.jlnames them rather than taking the kit's generic pages.<!-- badges:end -->. The kit has no slot for an extra badge, so it showed on the docs home page (Random spare reactant badge on homepage? #1045). The backends explanation already linkstest/reactant/RESULTS.md.adtier. See below.The
adtierupdate(".", benchmark_history_tiers = ["ad"])adds a daily schedule and atierdispatch input tobenchmark-history.yaml.BENCHMARK_HISTORY_TIERS: default,adrecords the choice, so a later sync keeps it.BENCHMARK_TIER=adinbenchmarks.jltimes the registry gradients alone, on every benchmarked backend, with no matrix cases and no primal groups. This is the scopead-benchmarks.yamltimed.benchmarks.jlnow honoursBENCHMARK_LIST_ONLY, which therevsjob sets when it only lists groups and backends. Each gradient gets a placeholder rather than being prepared, for the registry grid and the matrix cases.history/tiers/ad/results/, so it no longer overwriteshistory/results/latest.json, which caused the docs failure below.AD_BENCHMARK_TIER = "ad"indocs/docs_config.jlpoints the AD comparison page at it.ad-benchmarks.yamldid.ad-benchmarks.yaml,benchmark/ad_latest.jland its testtest/results/ad_benchmark.jlare removed, with that test's line intest/item_times.tsv.benchmark-full.yamlstays. Kit tiers run daily, and it times the wholefullgrid weekly from one commit.The
tracked()docs failureDocumenter run 47292101629 failed in
docs/src/performance/index.mdwithArgumentError: reducing over an empty collection.ad-benchmarks.yamldeployedhistory/results/latest.jsondaily withclean: false, holding the registry"AD gradients"alone.tracked()read that file, found noEvaluationtimes, andtracked_figuretookminimumover no rows.tracked()now:Revisions:line ofhistory/README.md;history/results/results_ComposableRecurrences@<rev>.json, which only the history workflow writes;latest.jsonwhen that file is missing;With the
adtier nothing else writeshistory/results/, so the fallback is now only for a missing revision file.Workflows
ad.yaml,benchmark.yaml,benchmark-history.yaml,document.yaml: the kit's 0.5.2 files, unedited.benchmark-full.yaml,history-fixtures.yaml,ad-versions.yaml,threads.yaml,trim.yaml,reactant.yaml,opencl.yaml,jet.yaml.AD tolerance
0.5.1 tightened the harness default to
rtol = atol = 1e-6.No test this package runs uses the default:
test/ad/checks.jlcallstest_working_backendwith an explicitrtol(1e-8for double precision,1e-4for single) andatol = 0.0, then checks every entry on its own. An explicit keyword wins overgradient_tolerance()and the defaults.test/ad/setup.jlare not called.So no
gradient_tolerance()is added.The managed
test/ad/run_selected.jl, a local triage tool not run in CI, does use the default and takes the single-precision scenarios too.Verification
update(".")from 0.5.2, run again with only thetemplate-sync.yamlarguments, changes nothing and warns about nothing. Theadtier andtimeout_minutes: 90both survive it.scaffoldwith the same options writes 98 files, all present here. No MANAGED file is a leftover.test_readme_sections,test_readme_placeholders,test_readme_prose,test_readme_bullets,test_docs_pages_in_sync) from 0.5.2: 26 pass.benchmarks.jl, built as the workflows build it:adtier, list only (therevsjob):"AD gradients"alone, 274 scenarios, five backends."AD gradients"(21, the three pull request backends),Evaluation(21) andConvolution body(3), as before.adtier withBENCHMARK_AD_BACKEND=ForwardDiff, prepared (a tier cell): 274 scenarios, none failing to prepare.benchmark.yamlon two small result files per revision fails inmin_mergewith kit 0.5.0 (world-ageMethodError) and writes the comment with 0.5.1.docs/make.jl --skip-notebooks) against the registered 0.5.2: exit 0. The built home page has no Reactant badge.benchmark/benchmarks.jl,docs/docs_config.jlanddocs/helpers/performance_page.jl: clean.Kit follow-ups
docs/helpers/performance_page.jlcould use the kit'sDocsBuild.published_benchmark_resultsin place of its ownpublishedandgit show.CI
Pending.
This was opened by a bot. Please ping @seabbs for any questions.