Repository navigation
Description
Overview
This is the Pulse half of the likelihood-lifecycle phase 2x (human ruling 2026-10-25: compare CPU and GPU as node throughput). autolens_profiling now declares resources and projected_node_throughput on v3 records, projected only onto the host class each row was measured on (#463, #465). Pulse validates and displays them, with a per-call / per-node switch, and adds a research page on comparing CPU-parallel and GPU-batched setups.
Plan
- Validate the producer's additive fields (
resources,projected_node_throughput: basis, η and source, bound_by, limits, workers, calls_per_s). Malformed blocks are refused; absent blocks stay optional. - Board and setup browser: a per-call / per-node switch.
- Projected values carry a visible "projected" marker, with a tooltip giving η, its source and the bounding limit.
- The view defaults to per-call until phase 4 measures η.
- A research page (decision-rule style, read by the autolens_assistant) covering:
- the throughput formula;
- the memory cap per worker;
- sharing the W~ operator after fork;
- η, declared until measured;
- the Nautilus n_batch ceiling;
- the JAX fork rule;
- the RAL reference hosts;
- the 2a worked examples.
- Refetch the lens receipt so the board shows the new fields. Pulse computes no projection and issues no verdict.
- Tier: judge — merge mode: human /prm.
Detailed implementation plan
Branch: feature/likelihood-lifecycle-p2x-pulse-view
pulse/catalogue.py: validate theresourcesandprojected_node_throughputshapes on v3 records (additive, optional). Add tests intests/.pulse/setup_browser.js/setup_browser.py/measurement_presentation.js: add the per-call ↔ per-node toggle, a projected badge with a tooltip, and keyboard/a11y parity with the existing controls. Keep per-call as the default. Extend the browser tests (tests/browser_setup.cjs).pulse/board.py(dashboard.md/html): show a projected-throughput column or line where present, marked projected.- Research page: put it wherever REFERENCE.md says Pulse keeps knowledge/decision-rule pages (
decisions/vs another folder), and link it from the board. - Run
pyauto-pulse board(online refetch) andcheck, pytest, ruff, and the browser tests.
Original Prompt
Click to expand
Likelihood lifecycle phase 2x (Pulse): per-call vs per-node-throughput view, and a research page on comparing CPU-parallel and GPU-batched setups
Type: feature
Target: PyAutoPulse
Repos:
- PyAutoPulse
Themes: - profiling
Difficulty: medium
Autonomy: supervised
Priority: normal
Status: formalised
Consequence: judge
Witness: the Pulse board and setup browser offer a per-call / per-node-throughput switch; projected values render visibly distinct and show their efficiency basis;pyauto-pulse checkpasses on the refetched lens receipt; the knowledge page is linked from the board
Review-minutes: 25
Unattended: never
Epic: likelihood-lifecycle
Phase: 2
Parent: draft/research/autolens_profiling/likelihood_lifecycle_epic.md
Filed: 2026-10-25
Pulse half of the human's 2026-10-25 ruling: numba CPU runs one process per core under Nautilus multiprocessing, so CPU vs GPU must be compared as node throughput. Depends on complete/2026/10/likelihood-lifecycle-p2x-node-throughput.md (merged autolens_profiling#463), the producer task that declares projected_node_throughput.
Boundary
The producer declares, Pulse validates and displays, and the Brain's profiling conductor judges. Pulse computes no projection itself and issues no verdict.
Scope
- Validate the producer's new fields.
- Fields:
cpus_per_eval,peak_rss_gb,projected_node_throughputwithbasis,parallel_efficiency, its source andbound_by. - These are additive to
profiling-summary@3, unless the producer task found that a version bump is needed.
- Fields:
- Board and setup browser: a per-call / per-node switch.
- Projected values carry a "projected" badge or hatching, plus a tooltip giving η and its source and the bounding limit.
- Measured values from phase 4 replace the badge when they arrive.
- The default view stays per-call until phase 4 measures η, so projections never headline.
- Knowledge page: "Comparing CPU-parallel and GPU-batched setups", which the autolens_assistant reads as decision rules. It covers:
- the formula;
- the memory cap per worker (ao
25 GB) and whether the Woperator is shared after fork (copy-on-write); - parallel efficiency, declared until measured;
- the Nautilus batch ceiling;
- the JAX fork rule;
- the RAL reference hosts;
- the 2a worked examples (hst and ao Delaunay).
Activity
Jammy2211 commentedon Oct 25, 2026
Shipped
Merged in #77 (db5e7c0) on human
/prm("Ship and prm", Heart YELLOW acknowledged), with lint and Dashboard Refresh green.profiling-summary@3validatesresourcesandprojected_node_throughput. They're additive, so no version bump.knowledge/cpu_parallel_vs_gpu_batched.md.