port-evals-to-hub
Port PwC evals to Hub leaderboards
The Hub's evaluation results feature builds a leaderboard on each official benchmark dataset from .eval_results/*.yaml files in model repos, including files in open PRs. This skill finds PwC results that belong on those leaderboards, verifies each one against its source, and opens one PR per model repo that a maintainer can review and merge in a minute.
A PR is only worth opening if the reviewer can see the result on the leaderboard and find the number at the cited source. Most of the rules below exist because one of those two failed.
Scripts
All scripts live in .agents/skills/port-evals-to-hub/scripts/ and run from the repository root. Write scripts guard their side effects with --apply; without it they only print.
| Script | Purpose |
|---|---|
hub_leaderboard.py |
Library: leaderboard views, predicted and live ranks, view links, exact benchmark names, eval.yaml task ids, org vs personal account, benchmarks already declared on a repo. |
find_candidates.py OUT.csv |
Read-only DB query. Lists PwC evals with an hf_model_url on the mapped leaderboards, with status candidate, on_board, already_declared, personal_account, discussions_disabled, or repo_missing; candidates from major labs first, newest models first. |
open_eval_prs.py SPEC.json [--apply] |
Checks every result in a spec, prints the PRs, and with --apply opens them and appends them to the registry. |
sweep_eval_prs.py [--apply] |
Re-checks every registered PR: repoints links to a view where the result is visible, removes invisible results, closes PRs left with none. |
Run find_candidates.py with uv run --env-file backend/keys.env python …; the Hub-only scripts need just uv run python …. The two use different tokens: the HF_TOKEN in keys.env can read gated eval.yaml files (GPQA) but cannot open PRs, while the default hf token can write but may lack access to the gated file. If a gated benchmark is skipped with "task_id … not in eval.yaml", check it with --env-file, open the PR without it, then commit that benchmark's file to refs/pr/<num>. The registry defaults to reports/hf-eval-results-prs.json (local, not committed).