Skip to content

Align Simple cluster profiling with the reviewed gallery model - #537

Open
Jammy2211 wants to merge 7 commits into
mainfrom
feature/simple-cluster-profiling
Open

Jammy2211 wants to merge 7 commits into
mainfrom
feature/simple-cluster-profiling

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Simple cluster CPU profiling

The simulator and both likelihoods now use the gallery's velocity-dispersion dPIE model, with two main galaxies, ten scaling members and an NFW halo. All five point_0 observations at z = 1 and both point_1 observations at z = 2 match the pinned gallery catalogue exactly, including their 0.005″ uncertainties. At the fitted prior medians the back-traced coordinates agree exactly on both source planes for the seven observations and 256 additional test rays.

Likelihood First call after compile (ms) Warm median (ms) Warm p10–p90 (ms) Absolute JAX–NumPy log L difference
Source plane 2.67 0.518 0.467–0.594 4.58e-09
Image plane 13.66 8.918 8.271–10.401 1.75e-10

Times are per likelihood evaluation over both families on the local i9-10885H CPU using JAX FP64. Both source centres are solved analytically. The warm median uses five warm-ups and 200 synchronized calls. The earlier three-plus-three b0 measurements use a different catalogue and parameter vector and are archived separately.

Image recovery

The standard image-plane solver starts at 1″ per pixel on a 100 × 100 grid. It returns four predictions for the five point_0 observations and two for point_1. The second point_0 observation at (y, x) = (10.362″, 8.143″) lies 2.764″ from its nearest prediction. At the same solved source centre, field size and 0.001″ refinement precision, 0.5″ also misses it. Both 0.25″ and 0.2″ starting grids recover it, at separations of 0.00745″ and 0.00672″ respectively. The standard-grid image-plane time is diagnostic because it measures an incomplete solve.

The cache guard validates the scaling catalogue with the consuming reader and checks the three inputs against the pinned fixture before reusing a dataset. It preserves a mismatched cache and explains how to regenerate it. The runtime records observed and predicted family sizes for the image-plane fit.

Reference fixture and archived six-image runs · Pinned gallery inputs

Closes #536. Follows #445 and #532.

Both runtime and likelihood breakdown entry points ran on the full seven-image fixture. The breakdowns reproduce the headline likelihood in each plane. All 119 focused regression tests passed, along with Ruff, dashboard regeneration, the independent Pulse contract, parity, wiki and results-layout checks. All 1,019 pre-existing setup shards retain the same evidence after removing the shared generation timestamp and producer revision.

@Jammy2211 Jammy2211 changed the title Validate Simple cluster caches and record both CPU likelihood timings Align Simple cluster profiling with the reviewed gallery model Nov 25, 2026

This branch has not been deployed

No deployments
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.

Profile the Simple cluster on CPU and validate its member catalogue

1 participant