Leaderboard Refresh Runbook¶
One-command workflow for keeping all four ParticleGAN Forge leaderboard surfaces synchronized:
| Surface | Location | Source of truth |
|---|---|---|
| GitHub Markdown Leaderboard | reports/forge/technique-inventory.md & reports/forge/families/ |
configs/forge/selections/family-current-v1.json + reports/forge/technique-evidence/manifest.json |
| Hugging Face Dataset | HyperGAN/particlegan-forge-evidence (data/leaderboard.json, Parquet tables, GIFs) |
Exported by python -m experiments.forge publish --inventory |
| Hugging Face Static Space | HyperGAN/particlegan-leaderboard |
Static frontend in ops/hf_space/ fetching data/leaderboard.json from the HF Dataset |
| GitHub Pages Research Portal | https://hypergan.github.io/ParticleGAN/ |
Auto-built on merge to develop by .github/workflows/pages.yml via scripts/build_docs_site.py |
All four surfaces are orchestrated by ops/refresh_leaderboard.py.
Quick Start (1-Command Refresh)¶
1. Audit what is stale or missing (offline, ~2 s)¶
This checks:
- Git branch,
HEAD, and whether the working tree is clean. - Whether newer candidates (e.g.
unified-v15,axiom-v5) exist beyond the current pins inconfigs/forge/selections/family-current-v1.json. - Whether any 16-task Occam-complete candidate is missing an uncontended NVML energy benchmark study (needed for the Cost vs. Pass-Rate Pareto Frontier).
- Whether
reports/forge/publications/inventory-latest.jsonis behindHEAD. - Whether staged actual-training GIFs are waiting to upload to Hugging Face.
- Whether the standing
develop -> masterPR is open and links totechnique-inventory.md.
2. Local dry-run rebuild & validation (zero network uploads)¶
Runs, in order:
python -m experiments.forge compile --summaries-onlypython reports/forge/regenerate_technique_inventory.py --refresh-publicationpython -m experiments.forge.experiment_docspython scripts/build_docs_site.py --skip-mkdocs(add--check-mkdocsto runmkdocs build --strictlocally)python scripts/check_repo_bloat.pyandpython scripts/check_lint.pypython -m experiments.forge publish --inventory --dry-runpython ops/hf_space/deploy.py --dry-run
Preview the exact command plan without executing anything via --dry-run.
3. Publish to Hugging Face (Dataset + Static Space) and verify live¶
This runs all local generation/validation steps, then:
- Uploads staged actual-training GIFs when
--upload-media,--collect-local-media, or--ingest-mediais passed. - Publishes
data/leaderboard.json,data/*.parquet, and the Dataset Card toHyperGAN/particlegan-forge-evidence, updatingreports/forge/publications/inventory-latest.json. - Deploys
ops/hf_space/toHyperGAN/particlegan-leaderboard. - Runs live HTTP + payload verification across HF Dataset, HF Space, GitHub Pages, and the
develop -> masterPR.
4. Push, PR, merge to develop, and verify GitHub Pages¶
GitHub Pages automatically rebuilds and deploys whenever a PR is merged into develop:
git add -A
git commit -m "forge: refresh leaderboard reports and HF publication receipt"
git push -u origin HEAD
gh pr create --base develop --fill
# After CI passes & PR merges to develop:
python ops/refresh_leaderboard.py verify --watch-pages
Important
Always keep an open develop -> master PR whose description links to
https://github.com/HyperGAN/ParticleGAN/blob/develop/reports/forge/technique-inventory.md.
verify checks this automatically.
Updating Specific Surfaces¶
A. Updating the Energy & J-to-PASS Pareto Frontier¶
The Cost vs. Pass-Rate Pareto Frontier (on both the HF Space and GitHub Pages) pairs:
- Y-axis: 16-task
r4-occam-ablation-v1Occam pass rate (occam_pass / occam_executed, excludingINCOMPLETE/TIMEOUTtasks from pass credit). - X-axis: Uncontended NVML
grid100J-to-PASS,ring16J-to-PASS,dcgan_performance_r256J/step, ordcgan_performance_r256ms/step.
Wait until all GPUs are idle (0% util), then run:
python ops/refresh_leaderboard.py energy \
--ideas axiom-v5 unified-v15 \
--output rtx-a6000-new-candidates-energy-benchmark.json
energy automatically:
- Refuses to run if any GPU is busy (unless
--allow-busyis passed, which tagscontended: trueso contended numbers never pollute clean Pareto cohorts). - Runs
experiments/law4_optimizer_profiler.py(--mode energy-benchmark) and saves raw logs under gitignoredruns/forge/. - Attaches
family_id,source_commit,contended, and the matching committed 16-taskoccam_receipt_ids(orofficial_forge_readout) intoreports/forge/studies/<output>.json.
Then run python ops/refresh_leaderboard.py sync --publish and merge into develop.
B. Promoting a New Candidate in technique-inventory.md¶
reports/forge/technique-inventory.md and reports/forge/families/ display the exact whole-row cohorts pinned in configs/forge/selections/family-current-v1.json.
Note
Unrelated edits do not invalidate experiments: Pure post-run reporting, docs, Hugging Face
publishing, media export, and Colab helper scripts (experiments/forge/NON_SCIENTIFIC_SOURCE_PATHS)
are excluded from the scientific source_digest (enforced by
tests/test_forge_sources_isolation.py). If an older
run was recorded before that split (or across a multi-GPU commit), pass --source-snapshot,
--study-commit, and --cuda-model to promote to cryptographically verify every recorded file
hash against the exact frozen snapshot without re-running GPUs.
- Run ordinary screening from a clean commit on
develop:
git status --short # must be empty
CLEAN_SHA=$(git rev-parse HEAD)
python -m experiments.forge run unified-v15 --study unified-v15-disc-stab-rtx-study --gpus 0,1
python -m experiments.forge run axiom-v5 --study axiom-v5-disc-stab-rtx-study --gpus 0,1
- Preview the promotion without modifying tracked files:
python ops/refresh_leaderboard.py promote \
--source-commit "$CLEAN_SHA" \
--family unified=unified-v15 \
--family axiom=axiom-v5 \
--dry-run
- Apply the promotion:
python ops/refresh_leaderboard.py promote \
--source-commit "$CLEAN_SHA" \
--family unified=unified-v15 \
--family axiom=axiom-v5
promote enforces all Forge provenance rules automatically:
- Verifies hydrated receipts at $CLEAN_SHA match the exact Git blobs at $CLEAN_SHA.
- Archives the prior configs/forge/selections/family-current-v1.json byte-for-byte into configs/forge/selections/history/family-current-<sha256>.json.
- Writes verified family_row_pin(...) entries (default_adoption: false, selection_kind: "current_measurement").
- Registers the new candidate(s) in configs/forge/trainer-families.json and reports/forge/technique-evidence/manifest.json.
- Regenerates technique-inventory.md, technique-inventory.json, and reports/forge/families/*.md.
- Update narrative docs & pinned tests (if needed):
- Review
configs/forge/family-documentation/so descriptions and honest failure modes match the promoted candidate. - Run
pytest -q tests/test_forge_hf_publish.py tests/test_forge_trainer_families.py tests/test_forge_current_technique_inventory.py tests/test_docs_site_build.py tests/test_hf_space_deploy.pyand update any tests that explicitly pinned the prior candidate ID. - Finish with
python ops/refresh_leaderboard.py sync --publishand merge intodevelop.
C. Refreshing Actual-Training GIFs¶
GIFs are never committed to Git; only the compact manifest reports/forge/leaderboard-media-index.json is tracked, while binary .gif files live on Hugging Face under media/forge/leaderboard/.
# Export GIFs from local selected-cohort attempts, update index, and upload to HF:
python ops/refresh_leaderboard.py sync --collect-local-media --publish
# Or ingest externally rendered GIF bundles (e.g., from Colab):
python ops/refresh_leaderboard.py sync --ingest-media /path/to/rendered_gifs --publish
Troubleshooting¶
| Symptom | Cause | Fix |
|---|---|---|
Receipts recorded at <SHA> do not match the clean Git tree |
The Forge study ran while tracked files were modified locally. | Commit all changes (git status --short empty), re-run the Forge study from that clean commit, and pass that exact SHA to promote. |
Refusing uncontended energy benchmark while GPU(s) are busy |
Another process is using a GPU (util > 5%). |
Wait for GPUs to go idle (nvidia-smi), or pass --allow-busy only for explicitly tagged contended diagnostics. |
Candidate appears in energy.parquet but is missing from the Pareto chart |
Candidate does not yet have all 16 r4-occam-ablation-v1 tasks in a single (candidate_id, source_commit, source_digest, gpu) cohort. |
Run the complete r4-occam-ablation-v1 view on that GPU (or link the official 16-task occam_receipt_ids in the study JSON). |
| GitHub Pages build fails in CI but worked locally | .github/workflows/pages.yml builds without PyTorch using build_leaderboard_json_stdlib in scripts/build_docs_site.py. |
Test the PyTorch-free path locally: python scripts/build_docs_site.py --stdlib-leaderboard --strict. |
scripts/check_repo_bloat.py fails |
A file > 500 KB or a raw log/GIF entered reports/. |
Keep raw logs, traces, checkpoints, and GIFs under gitignored runs/forge/ or upload media to Hugging Face. |