Skip to content

Timing benchmark - #120

Merged
Sebastian Ehlert (awvwgk) merged 35 commits into
mainfrom
thijsvogels/benchmark-report
Aug 20, 2026
Merged

Sebastian Ehlert (awvwgk) merged 35 commits into
mainfrom
thijsvogels/benchmark-report

Conversation

@JensWehner

Copy link
Copy Markdown
Contributor

Adds

Pipeline for running benchmarks, excluding internal amlt submission code
JSON files with reference data that we have run ourselves.
Documentation for running your own measurements and comparing them to our results.
CI for deploying the benchmark along with the Sphinx docs.

@JensWehner
Jens (JensWehner) force-pushed the thijsvogels/benchmark-report branch from 92faa0b to 6344d06 Compare August 19, 2026 13:14
@JensWehner
Jens (JensWehner) marked this pull request as ready for review August 19, 2026 14:15
@JensWehner
Jens (JensWehner) requested review from Sebastian Ehlert (awvwgk) and Thijs Vogels (tvogels) and a balanced review from Copilot and removed request for Sebastian Ehlert (awvwgk) August 19, 2026 14:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an end-to-end DFT benchmarking pipeline, reference results, interactive reporting, and documentation publishing.

Changes:

  • Adds benchmark execution, timing, sharding, collection, fitting, and reporting.
  • Adds reference datasets and Sphinx deployment integration.
  • Adds benchmark tests and updates dependencies.

Reviewed changes

Copilot reviewed 45 out of 50 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
.github/workflows/docs.yml Updates documentation link checking.
benchmarks/reference/README.md Describes reference data.
benchmarks/reference/environments.json Adds reference environments.
benchmarks/reference/fits.json Adds reference fits.
benchmarks/reference/measurements.json Adds reference measurements.
benchmarks/reference/prose.yaml Adds report narrative.
docs/_ext/benchmark_report.py Generates reports during HTML builds.
docs/benchmarks.rst Documents benchmark usage.
docs/conf.py Registers the report extension.
docs/index.rst Links benchmark documentation.
environment-cpu.yml Adds CPU benchmark dependencies.
environment-gpu.yml Adds GPU benchmark dependencies.
pyproject.toml Adds benchmark extras and updates Torch.
src/skala/benchmark/README.md Points to user documentation.
src/skala/benchmark/__init__.py Defines the benchmark package.
src/skala/benchmark/__main__.py Adds benchmark CLI commands.
src/skala/benchmark/collect_results.py Collects report-ready results.
src/skala/benchmark/dataset.json.gz Bundles benchmark molecules.
src/skala/benchmark/dataset.py Loads benchmark molecules.
src/skala/benchmark/fitting.py Implements scaling fits and smoothing.
src/skala/benchmark/metrics.py Defines timing metrics.
src/skala/benchmark/models.py Defines molecule records.
src/skala/benchmark/node_info.py Captures environment metadata.
src/skala/benchmark/orchestrator.py Runs and resumes benchmark shards.
src/skala/benchmark/protocol.py Defines the benchmark protocol.
src/skala/benchmark/runner.py Executes isolated calculations.
src/skala/benchmark/schema/__init__.py Defines the schema package.
src/skala/benchmark/schema/environment.py Persists environment metadata.
src/skala/benchmark/schema/measurements.py Defines measurement storage.
src/skala/benchmark/timing.py Instruments SCF timing layers.
src/skala/benchmark/report/__init__.py Exposes report generation.
src/skala/benchmark/report/_normalize.py Normalizes report values.
src/skala/benchmark/report/data.py Prepares chart data.
src/skala/benchmark/report/generate.py Generates static reports.
src/skala/benchmark/report/prose.py Loads and renders prose.
src/skala/benchmark/report/templates/index.html Defines report markup.
src/skala/benchmark/report/assets/report-base.css Defines base report styling.
src/skala/benchmark/report/assets/report.css Styles controls and charts.
src/skala/benchmark/report/assets/report.js Implements interactive charts.
src/skala/benchmark/report/assets/vendor/d3.min.js Bundles D3.
src/skala/benchmark/report/assets/vendor/katex.min.js Bundles KaTeX.
src/skala/pyscf/gradients.py Updates VJP result access.
tests/benchmark/test_cli.py Tests CLI routing.
tests/benchmark/test_docs.py Tests Sphinx integration.
tests/benchmark/test_metrics.py Tests timing metrics.
tests/benchmark/test_orchestrator.py Tests sharding and resume behavior.
tests/benchmark/test_report.py Tests report generation.
tests/benchmark/test_runner.py Tests worker measurements.
tests/benchmark/test_workflow.py Tests the complete workflow.
tests/test_ao_screening.py Updates transform result access.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pyproject.toml Resolved
Comment thread src/skala/benchmark/report/generate.py Resolved
Comment thread src/skala/benchmark/orchestrator.py Resolved
Comment thread src/skala/benchmark/orchestrator.py Resolved
Comment thread src/skala/benchmark/metrics.py Resolved
Comment thread src/skala/benchmark/fitting.py Resolved
@tvogels Thijs Vogels (tvogels) changed the title Thijsvogels/benchmark report Timing benchmark Aug 19, 2026
Thijs Vogels and others added 21 commits August 19, 2026 20:50
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 576371e1-0193-4527-9df0-b091dcf63360
The sixteen-thread reference came from the 2026-08-12 direct-timing sweep,
which predates the three-stage warmup. It therefore carried warmup_ms but
none of process_warmup_ms, target_warmup_ms, settle_ms or jit_compile_ms,
while the A100 and two-thread references carry all four. One consequence was
visible in the published text: the start-up section quotes 6.5 s for Skala
on sixteen threads, and no shipped row had the columns needed to recompute
it. It now reproduces, as the other two already did (8.19 s on the A100 and
13.11 s on two threads, against 8.2 and 13.1 in the text).

The newer sweep was not in blob storage because its upload was killed, so it
had to be recovered from the job outputs; that is why the older one looked
like the latest available.

Converged calculations rise from 265 to 367 and the reach from 3138 to 4884
atomic orbitals. The machine also differs: the older sweep ran on a Xeon
E5-2673 v4 at 2.30 GHz and this one on a Xeon Platinum 8370C at 2.80 GHz,
which is the same processor as the two-thread reference, so the two CPU
environments no longer differ by processor generation as well as by thread
count.

Two environment cards are corrected to match, and one sentence in the
start-up section that claimed the first iteration is within a percent or two
of the steady state on every system is softened to "typically": five percent
of the sixteen-thread runs exceed 1.10 and one reaches 2.22.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Jens (JensWehner) and others added 10 commits August 19, 2026 20:50
Two assertions pinned strings that the prose no longer contains: the old
report title, and a sentence from the start-up section that was rewritten.
The reproducibility test also asserted the presence of interpreted prose via
that sentence, and the neutrality test asserted its absence, so both are
repointed at "machine cold start" -- present in the reference prose, absent
from the neutral defaults, and so serving the same purpose.

The neutrality test also required the default closing text, which is no
longer there: the defaults now omit the closing section entirely rather than
stating that no conclusions were supplied. Omitting it is at least as
neutral, and the template already drops the section when the key is absent.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JensWehner
Jens (JensWehner) force-pushed the thijsvogels/benchmark-report branch from 3a8077d to 65dc92b Compare August 19, 2026 18:50
Jens (JensWehner) and others added 3 commits August 19, 2026 21:19
The two-thread reference was collected from the aggregated blob output, which
is incomplete for the same reason the sixteen-thread one was: a job whose
terminal upload is killed leaves its per-task checkpoints behind in the job
output but never copies them to the shared location. Taking the results
directly from the job outputs recovers them.

The new set is a strict superset: all 312 rows already present, plus 167 more.
Converged calculations rise from 150 to 284. The reach is unchanged at 2094
atomic orbitals, so the environment card still holds, and the machine is the
same Xeon Platinum 8370C.

One series was missing entirely rather than merely thin: B3LYP at def2-qzvp
had no converged run at all on two threads, so that curve was absent from
every panel. It now has nineteen points. The remaining eleven series roughly
double.

The 187 unsuccessful rows are all exit -9. On a machine with 8 GB of memory
that is the kernel's out-of-memory killer, so they are a real property of the
environment rather than lost data, and they are recorded as failures rather
than dropped.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The sixteen-thread experiment is still running, so its job outputs now hold
two calculations that finished after the reference was last taken from them:
M06-2X on C66Cl2H75N9O24/def2-svp and on C30H52N10O11/def2-qzvp, both
converged.

Unlike the two-thread refresh this is a small top-up rather than a recovery,
because that reference was already collected from the job outputs rather than
from the aggregated location. Converged calculations rise from 367 to 369 and
the environment record is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The 58 benchmark structures were committed as a 295 kB dataset.json.gz. They
are the property of the authors of the five datasets they come from, and the
licence status of that redistribution is unclear, so this removes the file and
rebuilds the set from the original sources instead.

`python -m skala.benchmark fetch-dataset` downloads five archives and writes
the molecule set to a cache directory. Four sources are GitHub repositories
pinned to a 40-character commit; the fifth, the conformer benchmark's
supporting information, has no commit to pin and is checked against a SHA-256
digest instead. That file is also mirrored on figshare, which serves it to
scripts, so no source needs a manual browser download. A cold fetch takes 7.3
seconds and the cache is 1.2 MB.

The new dataset_sources.csv records, per molecule, which archive and which
path inside it a structure comes from, plus name, charge and multiplicity. It
carries no coordinates, so it is metadata about public files rather than a
copy of them. It ships in the package, and load_benchmark_molecules refuses a
cache that does not match it.

The rebuilt set was checked against the file it replaces. Names, atom counts,
charges, multiplicities and atomic numbers are identical for all 58 molecules,
and coordinates agree to within 5.13e-06 bohr, which is the published decimal
precision rather than a disagreement. The sweep fingerprint is byte-identical
at eef9969dc3001e51, so the published reference data stays comparable.

Three electron counts change, because the old ones were wrong: the count was
built as sum(Z) + charge rather than sum(Z) - charge, which flips the sign of
the correction on charged systems. It affects the three charged molecules.
Nothing consumed the field, and the task ordering and fingerprint are unchanged.

Parsing no longer needs qcelemental, which was pulled in for two lines. pyscf
supplies both the bohr conversion and the symbol-to-charge lookup, and unlike
qcelemental it accepts the lowercase symbols the Turbomole files use.

Declaring package data is unrelated but necessary: without it the wheel ships
only .py files, so a non-editable install would have neither the new manifest
nor the report's templates and assets. It never had them.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@awvwgk
Sebastian Ehlert (awvwgk) merged commit 723406a into main Aug 20, 2026
38 checks passed
@awvwgk
Sebastian Ehlert (awvwgk) deleted the thijsvogels/benchmark-report branch August 20, 2026 06:31
@tvogels
Thijs Vogels (tvogels) restored the thijsvogels/benchmark-report branch August 20, 2026 06:49

This branch was previously deployed

1 inactive deployment
github-pages — 7de94c94 Deployed Aug 20, 2026 by tvogels via deploy #87
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.

4 participants