Skip to content

feat: per-call vs per-node throughput view and CPU-parallel vs GPU knowledge page - #77

Merged
Jammy2211 merged 4 commits into
mainfrom
feature/likelihood-lifecycle-p2x-pulse-view
Oct 25, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
feature/likelihood-lifecycle-p2x-pulse-view

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

This is the Pulse half of likelihood-lifecycle phase 2x (#76; human ruling 2026-10-25: compare CPU and GPU as node throughput). autolens_profiling now declares resources and projected_node_throughput on v3 records (#463, #465). Pulse validates and displays them; it never recomputes them or issues a verdict.

  • Validation (pulse/catalogue.py): both blocks are optional and additive to profiling-summary@3, so no version bump. A malformed block makes the capture invalid with an error naming the field. The checks:

    • basis: projected;
    • status projected with exactly one host and per_call_s, or not_projected with a reason;
    • the host's host_class equals the record's own, never cross-machine;
    • worker caps, bound_by naming the smallest cap and equal to workers;
    • calls_per_s finite and positive;
    • η in (0, 1] with a source;
    • the block appears on runtime records only.

    4 new tests, one covering 36 malformed cases.

  • Setup browser and board:

    • A View selector: "Per call (measured)", the default, or "Per node (projected)".
    • Projected values carry a dashed amber projected badge, with a keyboard- and hover-accessible tooltip giving η and its source, bound_by with the worker caps, the per-call basis and what isn't modelled.
    • not_projected rows show the producer's reason.
    • The Markdown board gains a "Node throughput (projected)" column.
    • Light and dark themes are covered, with no horizontal scroll at 390 or 1280 px.
  • Knowledge page: knowledge/cpu_parallel_vs_gpu_batched.md, seven decision rules for the assistant. It covers:

    • the formula;
    • the memory cap per worker;
    • W~ operator sharing after fork (unknown until phase 4);
    • η declared at 1.0;
    • the Nautilus n_batch ceiling;
    • the fork rules (numba imported before fork; JAX analyses never fork a pool);
    • the RAL hosts;
    • the 2a worked examples.

    It sits in a new knowledge/ folder because decisions/ is for human-recorded decisions only, and it is linked from the board and the browser.

  • Refetch: lens at autolens_profiling 29caed89 (679 records): 626 resources blocks; 78 throughput blocks (50 projected, 28 not projected).

Note: no lens rows are class: optimal yet; phase 3 designates them. So the default Class filter shows few per-node values until Class is set to Secondary or All.

Scripts Changed

  • pulse/catalogue.py (+ tests/, tests/fixtures/setup_summary_v3.json) — validation
  • pulse/setup_browser.js, setup_browser.css, setup_browser.py, measurement_presentation.js, pulse/board.py (+ tests/browser_setup.cjs) — view selector, badge, tooltip, board column
  • knowledge/cpu_parallel_vs_gpu_batched.md (new), REFERENCE.md
  • receipts/, snapshots/, dashboard.*, state.json — online refetch

Test Plan

  • pytest 341 passed; ruff check + format clean; Chromium browser checks; pyauto-pulse check --offline OK; real dashboard checked at 390 px light and 1280 px dark
  • Heart YELLOW acknowledged by the human (2026-10-25, "Ship and prm")

Closes #76

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_014iaN7eDPr9toV6UcpDKTuZ

Jammy2211 and others added 4 commits October 25, 2026 21:47
…ummary@3

Optional, additive record fields from autolens_profiling#463/#465; no version
bump. Malformed blocks make the capture invalid with a named error: basis must
be 'projected', a projected record names exactly one host on its own
host_class, bound_by names the smallest limit and equals workers, a gpus limit
belongs to gpu setups only, null resources carry a reason. Pulse checks shape
and consistency only and never recomputes a projection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014iaN7eDPr9toV6UcpDKTuZ
A View selector (default Per call, measured) swaps the value column to the
producer's projected node throughput. Projected values carry a dashed
'projected' badge whose keyboard-focusable tooltip (role=tooltip,
aria-describedby, Escape dismisses) gives eta, its source, the bounding limit
and worker caps, the per-call basis and the not-modelled note. not_projected
rows print the producer's reason. The Markdown board gains a marked
'Node throughput (projected)' column. Theme tokens keep dark mode; browser
checks cover default, keyboard reach, tooltip, Escape, 390/1280 px and both
colour schemes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014iaN7eDPr9toV6UcpDKTuZ
knowledge/cpu_parallel_vs_gpu_batched.md gives the autolens_assistant decision
rules: never headline GPU vs CPU from per-call latency; the producer's worker
formula and same-host-class projection; eta declared 1.0 (upper bound) until
phase 4; the per-worker memory cap (ao ~23 GB -> 40 workers on a 921 GB ral
node); W~ sharing after fork unknown; Nautilus n_batch ceiling not modelled;
the JAX and numba fork rules; the RAL reference hosts; the 2a hst and ao
Delaunay worked examples. Knowledge, not a decision: nothing is added to
decisions.yaml. REFERENCE.md documents knowledge/; the lifecycle browser and
the Markdown board link the page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014iaN7eDPr9toV6UcpDKTuZ
Online refetch (pyauto-pulse board): lens at autolens_profiling 29caed89
(679 records) now validates its 626 resources and 78 projected_node_throughput
blocks (50 projected, 28 not_projected) under the new reader; fit and
lens-walltime unchanged. Snapshots were already at these commits, so only
refreshed_at moves; dashboard.md/html carry the View selector, projected
badges and the knowledge-page link. check --offline: OK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014iaN7eDPr9toV6UcpDKTuZ
@Jammy2211
Jammy2211 merged commit db5e7c0 into main Oct 25, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/likelihood-lifecycle-p2x-pulse-view branch October 25, 2026 22:36
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: per-call vs per-node throughput view and CPU-parallel vs GPU research page

1 participant