Skip to content

feat: per-call vs per-node throughput view and CPU-parallel vs GPU research page #76

Closed

Description

@Jammy2211

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

  1. pulse/catalogue.py: validate the resources and projected_node_throughput shapes on v3 records (additive, optional). Add tests in tests/.
  2. 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).
  3. pulse/board.py (dashboard.md/html): show a projected-throughput column or line where present, marked projected.
  4. Research page: put it wherever REFERENCE.md says Pulse keeps knowledge/decision-rule pages (decisions/ vs another folder), and link it from the board.
  5. Run pyauto-pulse board (online refetch) and check, 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 check passes 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

  1. Validate the producer's new fields.
    • Fields: cpus_per_eval, peak_rss_gb, projected_node_throughput with basis, parallel_efficiency, its source and bound_by.
    • These are additive to profiling-summary@3, unless the producer task found that a version bump is needed.
  2. 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.
  3. 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 W operator 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

  1. Jammy2211 commented on Oct 25, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #77 (db5e7c0) on human /prm ("Ship and prm", Heart YELLOW acknowledged), with lint and Dashboard Refresh green.

    • profiling-summary@3 validates resources and projected_node_throughput. They're additive, so no version bump.
    • The setup browser has a per-call / per-node View selector, defaulting to per-call. Projected values carry a badge and a tooltip.
    • The board gains a projected-throughput column.
    • New knowledge page: knowledge/cpu_parallel_vs_gpu_batched.md.
    • Lens refetched: 78 throughput blocks (50 projected).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions