Skip to content

feat: Profiling Timings and Inference Timings boards with per-row detail pages - #79

Merged
Jammy2211 merged 16 commits into
mainfrom
feature/pulse-timings-redesign
Oct 26, 2026
Merged

Jammy2211 merged 16 commits into
mainfrom
feature/pulse-timings-redesign

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #78. This is PR 3 of 3 acting on the human's Pulse dashboard feedback; the producers merged first in autolens_profiling#467 and autolens_inference#48.

  • Two sections replace "Profiling Results": Profiling Timings and Inference Timings, each opening into PyAutoFit and PyAutoLens project groups. Project labels come from the registry's library_refs. Under Inference Timings, PyAutoFit points to the Insight board. An #evidence anchor is kept so old links still land.
  • Profiling table (PyAutoLens v3):
    • Columns: Dataset type | Model | Instrument | Regime | Setup | Hardware class | Model variant | Runtime s | Est. 12-core s | Class | ›.
    • Setup drops precision and the na operator; fp32/mixed moves into the model variant.
    • Runtime s is the producer's vmap per-call, bold, 5 DP. Est. 12-core s is the producer's estimated_12_core, on numba rows only.
    • Runtime rows only: no Measurement column or selector, no per-node toggle.
    • A green tally sits above History; the knowledge link moves to "Extra Information".
    • Headers never wrap, rows sort deterministically, and the Class filter defaults to All.
  • Detail page per row (?view=setup&instance=&record=, hidden pages inside the one dashboard.html, the Insight pattern). It restores the old per-setup look:
    • every runtime value, including single_jit_median;
    • breakdown bars over the producer's labelled steps, with other keys collapsed;
    • compilation, memory, parity, projected node throughput, status/decision/validation, configuration, evidence links and history.
    • Superseded pages show only siblings tied to the same run: the same run_id, or the same results directory and measured date.
  • Inference table:
    • Rows: nautilus:mass_total[1] only.
    • Columns: Dataset type | Model | Instrument | Setup | Hardware | Model variant | Profiling runtime s | Sampler | Seed | Cores | Wall s | Likelihood evals | Implied s/eval | ›.
    • Profiling runtime s links to that profiling detail page, with a "≠ size" badge on rectangular rows (784 vs 1225 px). Wall s is 1 DP; implied s/eval is 5 DP.
    • Removed: the note and the Predicted / Measured-predicted / Parallel efficiency / Parity / Reference / Release columns.
    • The same filters and tally as the profiling table, plus a run detail page.
  • Validation: pulse/walltime.py type-checks the additive join fields and stays on @1. lens-walltime was refetched at b0527c50 and the board regenerated. dashboard.html is 1.84 MB (0.17 MB gzipped), up from 0.89 MB.

Scripts Changed

  • pulse/board.py: sections and project groups; inference table, filters, profiling-link resolution, run pages
  • pulse/campaigns.py: old heading removed
  • pulse/setup_browser.py: v3 table, labels, tally, Extra Information, detail_pages(), run-tied siblings, strict step twins
  • pulse/setup_browser.js: route() for setup and run views, generalised filter, back links
  • pulse/setup_browser.css: no-wrap headers, tally, row-open and detail-view styles
  • pulse/walltime.py: additive optional field checks
  • REFERENCE.md, README.md: walltime and Board sections
  • tests/ (+ fixtures): test_setup_browser.py, test_board.py, test_campaigns.py, walltime validator, browser_setup.cjs, browser_fixture.py
  • Regenerated: dashboard.md/.html, badge.json, state.json, receipts/, snapshots/

Test Plan

  • ruff check, ruff format --check
  • pytest: 363 passed
  • node tests/browser_setup.cjs (Playwright): row › → detail → back, deep links, back/forward, unknown ids, inference link → profiling page, filters and tally, one-line headers, no page-wide horizontal scroll at 390 and 1280 px
  • pyauto-pulse check --offline: OK; walltime.validate on the real autolens_inference artefact returns []
  • Independent review, three rounds: round 1 FINDINGS (4 non-blocking: superseded pages pooling runs, back link, twin dedupe, a leftover label), all fixed; round 2 FINDINGS (1: directory tie ignored dates), fixed
  • Human preview of the rendered board (copy opened at the human's request; no feedback yet)

Heart RED override (development only)

Authorization (live human, 2026-10-26): "I authroize", in reply to the explicit ask naming this task.

Exact RED reasons (published Heart feed at ship):
release validation FAILED (stage integrate) · PyAutoHeart/workflows/Release Integrate: failure · PyAutoHeart/workflows/Workspace Smoke: failure · manifest_drift/checks/workspace checkouts (manifest ↔ disk): red · Release readiness: release validation FAILED (stage integrate) · autolens: red · Workspace validation: NOT ready — 1429p / 1f / 125s @ cloud#40294511523 · test_run: red · Release validation: NOT release_ready — v? profile=? (2026-10-26T07:48:52+00:00) · validation_report/stages/integrate: fail · PyAutoBrain: red · PyAutoLens: red · autolens_profiling: red · Worktree drift: 1 orphan / 0 missing / 3 dirty

Passed branch gates: see the Test Plan. This PR does not fix Heart. No release. Merge needs a fresh human /prm and green CI.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Jammy2211 and others added 12 commits October 26, 2026 15:07
implied_s_per_eval, profiling_per_call_s finite|null; profiling_record_id,
profiling_unmatched_reason, profiling_per_call_source, profiling_status
str|null; size_match bool|null; source_pixels, profiling_source_pixels
int>=0|null. Checked only when present. Fixture gains mass_total[1],
another-stage, unmatched and uncaptured-link rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…groups

Split Profiling Results into Profiling Timings and Inference Timings, each
opening per project (<details class=project-group>, label from the registry
row's library_refs[0], PyAutoFit then PyAutoLens). PyAutoFit inference points
to the PyAutoInsight board. campaigns.py no longer emits the old heading; an
empty <a id=evidence> keeps old links landing; nav and the v2 back link go to
#profiling-timings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Columns Dataset type | Model | Instrument | Regime | Setup | Hardware class |
Model variant | Runtime s | Est. 12-core s | Class | ›. Runtime s is the
producer's vmap per-call (projected_node_throughput.per_call_s), Est. 12-core
s its estimated_12_core.value_s (numba CPU only), bold, 5 DP, display rounding
only. Setup drops the precision token; non-fp64 precision joins the model
variant. Class defaults to All; Measurement column/selector and the per-node
view are gone; a green tally sits above History; the knowledge link moves
under Extra Information. The JS filter now also serves tables with no History
or status. Headers never wrap; numbers right-aligned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
detail_pages() server-renders one hidden <article class=detail-page> per
runtime row, from the sibling records on (likelihood, instrument, setup_id,
host_class, model_variant, regime) with the row's status: headline runtime
values incl. single_jit_median/block, the 12-core estimate and the node
throughput projection, breakdown/compile/memory/parity panels as bars (v2
classes), status/decision/validation, configuration, evidence and history.
JS routes ?view=setup|run&instance=&record= (same page, pushState/popstate),
hides the board around the page and says when an id is not captured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inks

Only nautilus:mass_total[1] runs, Sampler shown as nautilus. Columns Dataset
type | Model | Instrument | Setup | Hardware class | Model variant |
Profiling runtime s | Sampler | Seed | Cores | Wall s (1 DP) | Likelihood
evals | Implied s/eval (5 DP) | ›. The producer's profiling_per_call_s links
to that profiling setup's detail page (resolved against the captured
catalogue; plain text + 'not in captured catalogue' otherwise), carries a
'≠ size' badge when size_match is false, and shows — titled with the
unmatched reason. Predicted/ratio/efficiency/parity/reference/release and
the full-fit note are gone; same filters and tally as profiling; one run
page per row with every recorded field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bin/pyauto-pulse fetch --instance lens-walltime (autolens_inference b0527c50,
the profiling-join fields) and bin/pyauto-pulse board. REFERENCE Board
section and README describe the two sections, the inference table and the
same-page detail pages. Table cells no longer wrap (the table scrolls inside
its box) with tighter padding so both tables fit the board width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both tables (and dashboard.md) sort by dataset type → model → instrument →
setup → hardware class → model variant (inference then seed). The setup
label drops an na operator token (jax_cpu_na_fp64 → jax_cpu). The detail
page breakdown shows the producer's labelled steps.* list as the panel,
scaled to component_total; raw keys recording the identical value of a
labelled step are not repeated, and the remaining raw keys sit in a
collapsed 'All recorded keys' list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inks

Superseded pages show only siblings tied to the same run (same run_id or
evidence in the same producer results directory; never by date), else a
'no sibling measurements tied to this run' note. A raw breakdown key is
dropped only as the unambiguous twin of one labelled step (one step and one
raw key with that value, sharing a word); ambiguity keeps every key. The
unknown-id back link is set for both views. The v2 evidence disclosure
reads Profiling Timings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…me day

A directory can hold several runs (59/242 hold records from different
dates), so the directory tie also requires the same measured_at UTC date;
the run_id tie is unchanged. Untied superseded rows show the note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jammy2211 and others added 2 commits October 26, 2026 16:29
Human ruling 2026-10-26 (less dense tables). Regime reads Source size and
Model variant reads Lens light (values verbatim; a non-fp64 precision folds
in as 'default · mixed'), also on the detail pages and in the docs. Source
size, Lens light and Class (profiling) and Lens light, Sampler and Cores
(inference) are hidden while every visible row shares one value, with an
'All rows: …' caption above the table. The script re-evaluates on every
filter/History change; the server renders the default view and dashboard.md
the same way. Filters and detail pages keep every field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211

Copy link
Copy Markdown
Contributor Author

Follow-up (human request 2026-10-26, after reviewing the preview): headers renamed (Regime → Source size, Model variant → Lens light). Categorical columns that hold one value across the visible rows are hidden and named in a caption, re-evaluated on every filter/History change:

  • Profiling hides Source size / Lens light / Class by default: 'All rows: standard size · default lens light · secondary'.
  • Inference hides Sampler: 'All rows: nautilus sampler'.
    pytest 365 passed; browser test covers columns re-appearing via History; check --offline OK. Head 8c5366f.

Jammy2211 and others added 2 commits October 26, 2026 16:37
Human request 2026-10-26. Headers are the name on one line and the unit in
brackets in italics on the next (empty when unitless), each line nowrap:
Runtime (s), Est. 12 CPU (s), Profiling runtime (s), Cores (cores), Wall
(s), Likelihood evals (evals), Implied time (s / eval). dashboard.md puts
the unit after the name. The inference table drops the size badge; source
pixel counts and size_match stay on the run page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 65a31ce into main Oct 26, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/pulse-timings-redesign branch October 26, 2026 16:40
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.

feat: Profiling Timings and Inference Timings boards with per-row detail pages

1 participant