From 804df1e66fa0b0992396af978d0652f841059165 Mon Sep 17 00:00:00 2001 From: Niels Rogge Date: Mon, 23 Nov 2026 10:49:36 +0000 Subject: [PATCH] Sync the RSI benchmark leaderboards on auto-research and move FrontierCS 2 there Three new hourly jobs on the shared live-leaderboard engine keep the recursive-self-improvement benchmarks on task auto-research equal to their official boards: - sync_frontier_rsi (:19) reads the window.FRSI JSON in frontier-rsi.org's data.js and ranks models as the site does (mean over 27 tasks of avg@4, as a percentage), with harness and effort. Fails when the four categories or the 27-task count change, on an unreviewed harness, or a model run in two setups. - sync_rsi_inference (:29) reads window.RSI_LEADERBOARD in Apple's ml-rsi-inference-bench docs/leaderboard.html and publishes three boards: the joint Bradley-Terry Elo rating, Model Support pass@1 and Optimization geometric-mean speed-up. Incomplete rows are skipped. Fails when the schema, rating method, 37-task release or track task counts change. - sync_rsi_infra (:44) parses the RSI-Infra Bench leaderboard table: the ECI-style score anchored at Claude Opus 5.5 = 40 and Kimi K3.1 Pro = 10, with harness and per-task speed-ups. Notes the "suspected nerf" mark and models judged on other machines. Fails when the tasks or anchors change. Every current model on the three boards maps to a reviewed catalog paper; new ones auto-match or become release-radar signals. All three jobs join the admin dashboard's leaderboard-sync group. The FrontierCS 2 sync now targets auto-research instead of coding-agents; the catalog rows move with it at deploy time. Co-Authored-By: Claude Opus 5.5 --- .../pwc-cron-health/references/job-probes.md | 17 +- .github/workflows/cron-sync-frontier-rsi.yml | 49 + .github/workflows/cron-sync-rsi-inference.yml | 49 + .github/workflows/cron-sync-rsi-infra.yml | 49 + .github/workflows/scripts/README.md | 35 +- .../scripts/hourly/sync_frontier_rsi.py | 6 + .../scripts/hourly/sync_rsi_inference.py | 13 + .../scripts/hourly/sync_rsi_infra.py | 6 + backend/services/autonomous_cron_operator.py | 17 + backend/services/carbon_board_syncs.py | 4 + backend/services/cron_registry.py | 112 + backend/services/frontier_rsi_sync_service.py | 199 ++ backend/services/frontiercs_2_sync_service.py | 2 +- .../services/rsi_inference_sync_service.py | 290 ++ backend/services/rsi_infra_sync_service.py | 249 ++ .../fixtures/cron_effective_contracts.json | 3 + backend/tests/cron/test_registry_inventory.py | 10 +- .../tests/deployment/test_cron_environment.py | 3 + .../evaluation/fixtures/frontier_rsi_data.js | 2691 +++++++++++++++++ .../fixtures/rsi_inference_leaderboard.html | 3 + .../fixtures/rsi_infra_leaderboard.html | 1 + .../evaluation/test_carbon_board_syncs.py | 4 + .../evaluation/test_frontier_rsi_sync.py | 217 ++ .../evaluation/test_frontiercs_2_sync.py | 4 +- .../evaluation/test_rsi_inference_sync.py | 224 ++ .../tests/evaluation/test_rsi_infra_sync.py | 217 ++ deploy/cron_launcher.py | 28 + deploy/cron_schedules.py | 15 + .../cron/pwc-cron-sync-frontier-rsi.service | 13 + .../cron/pwc-cron-sync-frontier-rsi.timer | 12 + .../cron/pwc-cron-sync-rsi-inference.service | 13 + .../cron/pwc-cron-sync-rsi-inference.timer | 12 + .../cron/pwc-cron-sync-rsi-infra.service | 13 + .../cron/pwc-cron-sync-rsi-infra.timer | 12 + 34 files changed, 4585 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/cron-sync-frontier-rsi.yml create mode 100644 .github/workflows/cron-sync-rsi-inference.yml create mode 100644 .github/workflows/cron-sync-rsi-infra.yml create mode 100644 .github/workflows/scripts/hourly/sync_frontier_rsi.py create mode 100644 .github/workflows/scripts/hourly/sync_rsi_inference.py create mode 100644 .github/workflows/scripts/hourly/sync_rsi_infra.py create mode 100644 backend/services/frontier_rsi_sync_service.py create mode 100644 backend/services/rsi_inference_sync_service.py create mode 100644 backend/services/rsi_infra_sync_service.py create mode 100644 backend/tests/evaluation/fixtures/frontier_rsi_data.js create mode 100644 backend/tests/evaluation/fixtures/rsi_inference_leaderboard.html create mode 100644 backend/tests/evaluation/fixtures/rsi_infra_leaderboard.html create mode 100644 backend/tests/evaluation/test_frontier_rsi_sync.py create mode 100644 backend/tests/evaluation/test_rsi_inference_sync.py create mode 100644 backend/tests/evaluation/test_rsi_infra_sync.py create mode 100644 deploy/systemd/cron/pwc-cron-sync-frontier-rsi.service create mode 100644 deploy/systemd/cron/pwc-cron-sync-frontier-rsi.timer create mode 100644 deploy/systemd/cron/pwc-cron-sync-rsi-inference.service create mode 100644 deploy/systemd/cron/pwc-cron-sync-rsi-inference.timer create mode 100644 deploy/systemd/cron/pwc-cron-sync-rsi-infra.service create mode 100644 deploy/systemd/cron/pwc-cron-sync-rsi-infra.timer diff --git a/.agents/skills/pwc-cron-health/references/job-probes.md b/.agents/skills/pwc-cron-health/references/job-probes.md index 8cf8da35c..fd74dc077 100644 --- a/.agents/skills/pwc-cron-health/references/job-probes.md +++ b/.agents/skills/pwc-cron-health/references/job-probes.md @@ -139,6 +139,21 @@ For every managed leaderboard sync, fetch the current upstream source read-only - **Contract:** `rsi-exam` on task `auto-research`; Normalized Score (0–1, four decimals) of every row on the Full board (release RSI-Exam 0.1, 88 tasks) at https://rsi-exam.ai/, harness per row (Claude Code, Codex, Antigravity, Grok, Kimi Code, Qwen Code, Muse Code); typically 10–100 rows (21 on 2026-11-16, 20 on catalog papers). - **Proof:** Compare managed rows' order and values with the Full tab; confirm `sync_rsi_exam_unreviewed` names become radar signals or get an identity in `rsi_exam_sync_service.py`, `missing_papers` is empty, and `missing_upstream` rows were investigated; a failure naming the release or task count means RSI-Exam rescaled the board, which needs a reviewer decision before bumping `RELEASE`/`FULL_TASKS`, not a parser patch. An unreviewed harness label needs a `HARNESSES` entry. +## `sync_frontier_rsi` + +- **Contract:** `frontier-rsi` on task `auto-research`; Score (%) 0–100 to two decimals: the mean over 27 tasks of each model's avg@4, recomputed from the `window.FRSI` JSON in https://frontier-rsi.org/data.js exactly as the site's leaderboard does; harness per row (Claude Code, Codex, Antigravity CLI, Grok Build, Muse Code, mini-SWE-agent); typically 5–100 rows (13 on 2026-11-23, all reviewed). +- **Proof:** Compare managed rows' order and values with the site's Leaderboard section; confirm `sync_frontier_rsi_unreviewed` names become radar signals or get an identity in `frontier_rsi_sync_service.py`, `missing_papers` is empty, and `missing_upstream` rows were investigated; a failure naming the categories or task count means FrontierRSI changed its task set, which needs a reviewer decision before bumping `CATEGORIES`/`TASK_COUNT`, not a parser patch. + +## `sync_rsi_inference` + +- **Contract:** three benchmarks on task `auto-research` from the `window.RSI_LEADERBOARD` object in `docs/leaderboard.html` of `apple-aiml-research/ml-rsi-inference-bench`: `rsi-inference-bench` (Elo, joint rating), `rsi-inference-bench-model-support` (Pass@1 0–100) and `rsi-inference-bench-optimization` (Speedup); no harness; incomplete rows skipped; typically 5–100 rows per board (15 on 2026-11-23, all reviewed). +- **Proof:** Compare managed rows with the rendered leaderboard (htmlpreview link); confirm `sync_rsi_inference_unreviewed` names become radar signals or get an identity in `rsi_inference_sync_service.py`, and `missing_papers` is empty; a failure naming the schema, rating method, release or track task counts means the board was rescaled, which needs a reviewer decision, not a parser patch. + +## `sync_rsi_infra` + +- **Contract:** `rsi-infra-bench` on task `auto-research`; Score (ECI-style, anchored Claude Opus 5.5 = 40, Kimi K3.1 Pro = 10, two decimals) from the table on https://ai4ai-for-anything.github.io/blog/rsi-infra-bench/leaderboard/index.html; harness per row (Claude Code, Codex, Antigravity CLI, Qwen Code, DeepSeek Harness); per-task speed-ups in the methodology; typically 5–100 rows (16 on 2026-11-23, all reviewed). +- **Proof:** Compare managed rows' order and values with the table; confirm `sync_rsi_infra_unreviewed` names become radar signals or get an identity in `rsi_infra_sync_service.py`, `missing_papers` is empty; scores are refit on every update, so small shifts are expected; a failure naming the tasks or anchors needs a reviewer decision, not a parser patch. + ## `sync_jevbench` - **Contract:** `jevbench` on task `decision-making`; Composite Score 0–100 (two decimals) of every ranked row on Benchmark Heaven's official API board (`api_board_rank` set, method v1.7), from https://benchmarkheaven.com/api/jevbench/latest; ranks match https://benchmarkheaven.com/jev-models/api; typically 20–300 ranked API rows (48 on 2026-11-12, 6 on catalog papers). @@ -151,7 +166,7 @@ For every managed leaderboard sync, fetch the current upstream source read-only ## `sync_frontiercs_2` -- **Contract:** `frontiercs-2` on task `coding-agents`; Pass Rate (%) 0–100 (best metric) and FCI (unbounded, Kimi K2.7 = 0); the `MODELS`/`PASS`/`ECI` constants in https://frontier-cs.org/assets/js/fcs2-data.js behind https://frontier-cs.org/#leaderboard; typically 8–200 entries, one per model and harness (14 on 2026-10-26, all reviewed). +- **Contract:** `frontiercs-2` on task `auto-research` (moved from `coding-agents` on 2026-11-23); Pass Rate (%) 0–100 (best metric) and FCI (unbounded, Kimi K2.7 = 0); the `MODELS`/`PASS`/`ECI` constants in https://frontier-cs.org/assets/js/fcs2-data.js behind https://frontier-cs.org/#leaderboard; typically 8–200 entries, one per model and harness (14 on 2026-10-26, all reviewed). - **Proof:** Diff the data file against managed rows (model, harness, pass rate, FCI); confirm `frontiercs_2_unreviewed` names get an identity (index the model's paper first), `missing_papers` is empty, and every `frontiercs_2_deleted` row really left the upstream board (the sync deletes managed rows whose model and harness are no longer listed); verify ranks on Pass Rate. ## `sync_vals_index` diff --git a/.github/workflows/cron-sync-frontier-rsi.yml b/.github/workflows/cron-sync-frontier-rsi.yml new file mode 100644 index 000000000..dc39ab2c8 --- /dev/null +++ b/.github/workflows/cron-sync-frontier-rsi.yml @@ -0,0 +1,49 @@ +name: Cron - Sync FrontierRSI + +on: + workflow_dispatch: {} + +concurrency: + group: cron-sync-frontier-rsi + cancel-in-progress: false + +permissions: {} + +jobs: + run: + environment: vps-operations + permissions: {} + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Connect to Tailscale + uses: tailscale/github-action@064b10558093f38325e838ddea35486bdc6b1d5c # v4.4.0 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:pwc-ci + - name: Load SSH key into agent + uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0 + with: + ssh-private-key: ${{ secrets.VPS_SSH_PRIVATE_KEY }} + - name: Add VPS to known_hosts + env: + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + mkdir -p ~/.ssh + chmod 700 ~/.ssh + if [ -z "$VPS_HOST" ] || [[ "$VPS_HOST" == *"://"* || "$VPS_HOST" == *"@"* || "$VPS_HOST" == *"/"* || "$VPS_HOST" =~ [[:space:]] ]]; then + echo "VPS_HOST must be a bare hostname or IP address." + exit 1 + fi + timeout 10 bash -c "cat < /dev/null > /dev/tcp/$VPS_HOST/22" + ssh-keyscan -T 10 -H "$VPS_HOST" >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts + - name: Refresh FrontierRSI evaluations on VPS + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + ssh -o StrictHostKeyChecking=yes \ + "${VPS_USER}@${VPS_HOST}" \ + 'if sudo /usr/local/sbin/pwc-cron status | grep -q '\''"sync_frontier_rsi"'\''; then sudo /usr/local/sbin/pwc-cron sync_frontier_rsi; else echo "sync_frontier_rsi is not activated in the production CRON allowlist"; fi' diff --git a/.github/workflows/cron-sync-rsi-inference.yml b/.github/workflows/cron-sync-rsi-inference.yml new file mode 100644 index 000000000..79430a8b8 --- /dev/null +++ b/.github/workflows/cron-sync-rsi-inference.yml @@ -0,0 +1,49 @@ +name: Cron - Sync RSI-Inference Bench + +on: + workflow_dispatch: {} + +concurrency: + group: cron-sync-rsi-inference + cancel-in-progress: false + +permissions: {} + +jobs: + run: + environment: vps-operations + permissions: {} + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Connect to Tailscale + uses: tailscale/github-action@064b10558093f38325e838ddea35486bdc6b1d5c # v4.4.0 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:pwc-ci + - name: Load SSH key into agent + uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0 + with: + ssh-private-key: ${{ secrets.VPS_SSH_PRIVATE_KEY }} + - name: Add VPS to known_hosts + env: + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + mkdir -p ~/.ssh + chmod 700 ~/.ssh + if [ -z "$VPS_HOST" ] || [[ "$VPS_HOST" == *"://"* || "$VPS_HOST" == *"@"* || "$VPS_HOST" == *"/"* || "$VPS_HOST" =~ [[:space:]] ]]; then + echo "VPS_HOST must be a bare hostname or IP address." + exit 1 + fi + timeout 10 bash -c "cat < /dev/null > /dev/tcp/$VPS_HOST/22" + ssh-keyscan -T 10 -H "$VPS_HOST" >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts + - name: Refresh RSI-Inference Bench evaluations on VPS + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + ssh -o StrictHostKeyChecking=yes \ + "${VPS_USER}@${VPS_HOST}" \ + 'if sudo /usr/local/sbin/pwc-cron status | grep -q '\''"sync_rsi_inference"'\''; then sudo /usr/local/sbin/pwc-cron sync_rsi_inference; else echo "sync_rsi_inference is not activated in the production CRON allowlist"; fi' diff --git a/.github/workflows/cron-sync-rsi-infra.yml b/.github/workflows/cron-sync-rsi-infra.yml new file mode 100644 index 000000000..c6c57adda --- /dev/null +++ b/.github/workflows/cron-sync-rsi-infra.yml @@ -0,0 +1,49 @@ +name: Cron - Sync RSI-Infra Bench + +on: + workflow_dispatch: {} + +concurrency: + group: cron-sync-rsi-infra + cancel-in-progress: false + +permissions: {} + +jobs: + run: + environment: vps-operations + permissions: {} + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Connect to Tailscale + uses: tailscale/github-action@064b10558093f38325e838ddea35486bdc6b1d5c # v4.4.0 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:pwc-ci + - name: Load SSH key into agent + uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0 + with: + ssh-private-key: ${{ secrets.VPS_SSH_PRIVATE_KEY }} + - name: Add VPS to known_hosts + env: + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + mkdir -p ~/.ssh + chmod 700 ~/.ssh + if [ -z "$VPS_HOST" ] || [[ "$VPS_HOST" == *"://"* || "$VPS_HOST" == *"@"* || "$VPS_HOST" == *"/"* || "$VPS_HOST" =~ [[:space:]] ]]; then + echo "VPS_HOST must be a bare hostname or IP address." + exit 1 + fi + timeout 10 bash -c "cat < /dev/null > /dev/tcp/$VPS_HOST/22" + ssh-keyscan -T 10 -H "$VPS_HOST" >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts + - name: Refresh RSI-Infra Bench evaluations on VPS + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + run: | + ssh -o StrictHostKeyChecking=yes \ + "${VPS_USER}@${VPS_HOST}" \ + 'if sudo /usr/local/sbin/pwc-cron status | grep -q '\''"sync_rsi_infra"'\''; then sudo /usr/local/sbin/pwc-cron sync_rsi_infra; else echo "sync_rsi_infra is not activated in the production CRON allowlist"; fi' diff --git a/.github/workflows/scripts/README.md b/.github/workflows/scripts/README.md index d9e724531..a5ba520d5 100644 --- a/.github/workflows/scripts/README.md +++ b/.github/workflows/scripts/README.md @@ -54,6 +54,9 @@ Generated from `deploy/cron_schedules.py`; update this table when you change it. | `pwc-cron-sync-jevbench.timer` | `*-*-* *:37:00` | `sync_jevbench` | `.github/workflows/scripts/hourly/sync_jevbench.py` | | `pwc-cron-sync-sle.timer` | `*-*-* *:41:00` | `sync_sle` | `.github/workflows/scripts/hourly/sync_sle.py` | | `pwc-cron-sync-rsi-exam.timer` | `*-*-* *:49:00` | `sync_rsi_exam` | `.github/workflows/scripts/hourly/sync_rsi_exam.py` | +| `pwc-cron-sync-frontier-rsi.timer` | `*-*-* *:19:00` | `sync_frontier_rsi` | `.github/workflows/scripts/hourly/sync_frontier_rsi.py` | +| `pwc-cron-sync-rsi-inference.timer` | `*-*-* *:29:00` | `sync_rsi_inference` | `.github/workflows/scripts/hourly/sync_rsi_inference.py` | +| `pwc-cron-sync-rsi-infra.timer` | `*-*-* *:44:00` | `sync_rsi_infra` | `.github/workflows/scripts/hourly/sync_rsi_infra.py` | | `pwc-cron-sync-frontiercs-2.timer` | `*-*-* *:43:00` | `sync_frontiercs_2` | `.github/workflows/scripts/hourly/sync_frontiercs_2.py` | | `pwc-cron-sync-vals-index.timer` | `*-*-* *:03:00` | `sync_vals_index` | `.github/workflows/scripts/hourly/sync_vals_index.py` | | `pwc-cron-sync-swe-sweep.timer` | `*-*-* *:08:00` | `sync_swe_sweep` | `.github/workflows/scripts/hourly/sync_swe_sweep.py` | @@ -473,7 +476,7 @@ off the leaderboard are reported, never deleted. `sync_frontiercs_2.py` reads the `MODELS`, `PASS`, `ECI`, and `UPDATED` constants from https://frontier-cs.org/assets/js/fcs2-data.js (the https://frontier-cs.org/#leaderboard page renders from them client-side) into -the `frontiercs-2` benchmark on task `coding-agents`: Pass Rate (percent of the +the `frontiercs-2` benchmark on task `auto-research`: Pass Rate (percent of the 48 tasks whose run beats the human reference, checked against the pass count) and FCI (FrontierCS Capabilities Index, refitted upstream with Kimi K2.7 at 0). It fails on any layout change or an entry count outside 8–200. Exact model @@ -574,6 +577,36 @@ board covers other than 88 tasks, on an unreviewed harness label, broken ranks, a score out of rank order, or a board outside 10–100 rows. Models without a catalog paper become release-radar signals. +`sync_frontier_rsi.py` keeps the `frontier-rsi` benchmark on task +`auto-research` equal to the leaderboard on https://frontier-rsi.org/ +(Abundant AI). It reads the `window.FRSI` JSON in `data.js` and ranks models as +the site does: the mean over all 27 tasks of each model's avg@4 (mean reward +of four trials), published as Score in percent with the harness (Claude Code, +Codex, Antigravity CLI, ...) and reasoning effort. The job fails when the four +categories or the 27-task count change, on an unreviewed harness label, a model +run in two setups, or a board outside 5–100 rows. + +`sync_rsi_inference.py` keeps three benchmarks on task `auto-research` equal to +Apple's RSI-Inference Bench leaderboard (`docs/leaderboard.html` in +`apple-aiml-research/ml-rsi-inference-bench`, read from +raw.githubusercontent.com): `rsi-inference-bench` (joint Bradley-Terry rating +on the Elo scale, metric Elo), `rsi-inference-bench-model-support` (Day-0 +Model Support pass@1 in percent) and `rsi-inference-bench-optimization` +(geometric-mean Speedup over the optimization and regression tasks). Rows the +board marks incomplete are skipped. The job fails when the data schema, rating +method (`weighted-bt-elo-v2`), the 37-task release or the per-track task counts +change, on broken ranks or scores out of rank order. + +`sync_rsi_infra.py` keeps the `rsi-infra-bench` benchmark on task +`auto-research` equal to the RSI-Infra Bench leaderboard table at +https://ai4ai-for-anything.github.io/blog/rsi-infra-bench/leaderboard/: the +ECI-style overall Score (anchored at Claude Opus 5.5 = 40 and Kimi K3.1 Pro = +10) with the harness, and the eight per-task speed-ups in the methodology. +Rows the board marks (GPT-6 Astra's "suspected nerf") or judged on other +machines keep that note. The job fails when the eight tasks or the anchors +change, on an unreviewed harness, broken ranks, a score out of rank order, or a +board outside 5–100 rows. + `sync_physics_iq_verified.py` parses the Physics-IQ Verified table in the official `google-deepmind/physics-IQ-benchmark` README (the physics-iq-verified.anates.ai site has no JSON endpoint) and fails on any diff --git a/.github/workflows/scripts/hourly/sync_frontier_rsi.py b/.github/workflows/scripts/hourly/sync_frontier_rsi.py new file mode 100644 index 000000000..b38d64cd9 --- /dev/null +++ b/.github/workflows/scripts/hourly/sync_frontier_rsi.py @@ -0,0 +1,6 @@ +"""Refresh FrontierRSI evaluations from the official frontier-rsi.org data.""" + +from scripts.utils.live_leaderboard_job import main + +if __name__ == "__main__": + raise SystemExit(main("sync_frontier_rsi", __doc__)) diff --git a/.github/workflows/scripts/hourly/sync_rsi_inference.py b/.github/workflows/scripts/hourly/sync_rsi_inference.py new file mode 100644 index 000000000..e4779b36d --- /dev/null +++ b/.github/workflows/scripts/hourly/sync_rsi_inference.py @@ -0,0 +1,13 @@ +"""Refresh RSI-Inference Bench evaluations from the official leaderboard.""" + +from backend.services.rsi_inference_sync_service import fetch_rsi_inference_boards +from scripts.utils.live_leaderboard_job import LiveLeaderboardJob, main + + +class SyncRsiInferenceJob(LiveLeaderboardJob): + def fetch(self): + return fetch_rsi_inference_boards() + + +if __name__ == "__main__": + raise SystemExit(main("sync_rsi_inference", __doc__, SyncRsiInferenceJob)) diff --git a/.github/workflows/scripts/hourly/sync_rsi_infra.py b/.github/workflows/scripts/hourly/sync_rsi_infra.py new file mode 100644 index 000000000..34d1cdb27 --- /dev/null +++ b/.github/workflows/scripts/hourly/sync_rsi_infra.py @@ -0,0 +1,6 @@ +"""Refresh RSI-Infra Bench evaluations from the official leaderboard table.""" + +from scripts.utils.live_leaderboard_job import main + +if __name__ == "__main__": + raise SystemExit(main("sync_rsi_infra", __doc__)) diff --git a/backend/services/autonomous_cron_operator.py b/backend/services/autonomous_cron_operator.py index 2c608fd5a..46b43412e 100644 --- a/backend/services/autonomous_cron_operator.py +++ b/backend/services/autonomous_cron_operator.py @@ -125,6 +125,20 @@ "backend/services/carbon_board_syncs.py", "backend/services/live_leaderboard_sync.py", ), + "sync_frontier_rsi": ( + "backend/services/frontier_rsi_sync_service.py", + "backend/services/carbon_board_syncs.py", + "backend/services/live_leaderboard_sync.py", + ), + "sync_rsi_inference": ( + "backend/services/rsi_inference_sync_service.py", + "backend/services/live_leaderboard_sync.py", + ), + "sync_rsi_infra": ( + "backend/services/rsi_infra_sync_service.py", + "backend/services/carbon_board_syncs.py", + "backend/services/live_leaderboard_sync.py", + ), "sync_vals_index": ( "backend/services/carbon_board_syncs.py", "backend/services/live_leaderboard_sync.py", @@ -285,6 +299,9 @@ "sync_jevbench": ("backend/tests/evaluation/test_jevbench_sync.py",), "sync_sle": ("backend/tests/evaluation/test_sle_sync.py",), "sync_rsi_exam": ("backend/tests/evaluation/test_rsi_exam_sync.py",), + "sync_frontier_rsi": ("backend/tests/evaluation/test_frontier_rsi_sync.py",), + "sync_rsi_inference": ("backend/tests/evaluation/test_rsi_inference_sync.py",), + "sync_rsi_infra": ("backend/tests/evaluation/test_rsi_infra_sync.py",), "sync_vals_index": ("backend/tests/evaluation/test_carbon_board_syncs.py",), "sync_swe_sweep": ("backend/tests/evaluation/test_carbon_board_syncs.py",), "sync_vending_bench_2": ("backend/tests/evaluation/test_carbon_board_syncs.py",), diff --git a/backend/services/carbon_board_syncs.py b/backend/services/carbon_board_syncs.py index 1213c3c47..a43cb5011 100644 --- a/backend/services/carbon_board_syncs.py +++ b/backend/services/carbon_board_syncs.py @@ -20,8 +20,10 @@ import httpx from bs4 import BeautifulSoup +from backend.services import frontier_rsi_sync_service as frontier_rsi from backend.services import jevbench_sync_service as jevbench from backend.services import rsi_exam_sync_service as rsi_exam +from backend.services import rsi_infra_sync_service as rsi_infra from backend.services import surge_chartography_sync_service as surge_chartography from backend.services import swe_marathon_sync_service as swe_marathon from backend.services import vals_finance_agent_sync_service as vals_finance_agent @@ -788,4 +790,6 @@ def _fetching( "sync_swe_marathon": BoardSync(swe_marathon.BOARD, swe_marathon.fetch_swe_marathon), "sync_jevbench": BoardSync(jevbench.BOARD, jevbench.fetch_jevbench), "sync_rsi_exam": BoardSync(rsi_exam.BOARD, rsi_exam.fetch_rsi_exam), + "sync_frontier_rsi": BoardSync(frontier_rsi.BOARD, frontier_rsi.fetch_frontier_rsi), + "sync_rsi_infra": BoardSync(rsi_infra.BOARD, rsi_infra.fetch_rsi_infra), } diff --git a/backend/services/cron_registry.py b/backend/services/cron_registry.py index 4a7897b50..36293e245 100644 --- a/backend/services/cron_registry.py +++ b/backend/services/cron_registry.py @@ -1486,6 +1486,118 @@ def validate_cron_jobs(jobs: Sequence[CronJobDefinition]) -> None: workflow_jobs=("run",), dashboard_group="leaderboard_sync", ), + CronJobDefinition( + id="sync_frontier_rsi", + scheduler="systemd", + schedule_policies=(SchedulePolicy.fixed(60, offset_minutes=19),), + schedule_grace_minutes=20, + systemd_timer="pwc-cron-sync-frontier-rsi.timer", + systemd_service="pwc-cron-sync-frontier-rsi.service", + systemd_extra_units=(), + output_evaluator="generic", + display_name="Sync FrontierRSI Leaderboard", + category="hourly", + schedule="19 * * * * (hourly)", + script_path="hourly/sync_frontier_rsi.py", + log_name="sync_frontier_rsi", + process_patterns=("scripts.hourly.sync_frontier_rsi",), + lock_file=( + "/var/lib/paperswithcode/production/cron-locks/sync_frontier_rsi.lock" + ), + expected_runtime_minutes=5, + stale_after_minutes=150, + critical=False, + healthy_no_work_allowed=False, + db_freshness_query=""" + SELECT max(e.updated_at) AS last_write, + count(*) FILTER ( + WHERE e.updated_at > now() - interval '2 hours 30 minutes' + ) AS recent_writes, + count(*) AS matched_evaluations + FROM evaluations e + JOIN datasets d ON d.id = e.dataset_id + WHERE d.slug = 'frontier-rsi' + AND e.methodology LIKE + 'Managed by the Papers with Code FrontierRSI%' + """, + workflow_file="cron-sync-frontier-rsi.yml", + workflow_jobs=("run",), + dashboard_group="leaderboard_sync", + ), + CronJobDefinition( + id="sync_rsi_inference", + scheduler="systemd", + schedule_policies=(SchedulePolicy.fixed(60, offset_minutes=29),), + schedule_grace_minutes=20, + systemd_timer="pwc-cron-sync-rsi-inference.timer", + systemd_service="pwc-cron-sync-rsi-inference.service", + systemd_extra_units=(), + output_evaluator="generic", + display_name="Sync RSI-Inference Bench Leaderboards", + category="hourly", + schedule="29 * * * * (hourly)", + script_path="hourly/sync_rsi_inference.py", + log_name="sync_rsi_inference", + process_patterns=("scripts.hourly.sync_rsi_inference",), + lock_file=( + "/var/lib/paperswithcode/production/cron-locks/sync_rsi_inference.lock" + ), + expected_runtime_minutes=5, + stale_after_minutes=150, + critical=False, + healthy_no_work_allowed=False, + db_freshness_query=""" + SELECT max(e.updated_at) AS last_write, + count(*) FILTER ( + WHERE e.updated_at > now() - interval '2 hours 30 minutes' + ) AS recent_writes, + count(*) AS matched_evaluations + FROM evaluations e + JOIN datasets d ON d.id = e.dataset_id + WHERE d.slug IN ('rsi-inference-bench', 'rsi-inference-bench-model-support', 'rsi-inference-bench-optimization') + AND e.methodology LIKE + 'Managed by the Papers with Code RSI-Inference Bench%' + """, + workflow_file="cron-sync-rsi-inference.yml", + workflow_jobs=("run",), + dashboard_group="leaderboard_sync", + ), + CronJobDefinition( + id="sync_rsi_infra", + scheduler="systemd", + schedule_policies=(SchedulePolicy.fixed(60, offset_minutes=44),), + schedule_grace_minutes=20, + systemd_timer="pwc-cron-sync-rsi-infra.timer", + systemd_service="pwc-cron-sync-rsi-infra.service", + systemd_extra_units=(), + output_evaluator="generic", + display_name="Sync RSI-Infra Bench Leaderboard", + category="hourly", + schedule="44 * * * * (hourly)", + script_path="hourly/sync_rsi_infra.py", + log_name="sync_rsi_infra", + process_patterns=("scripts.hourly.sync_rsi_infra",), + lock_file=("/var/lib/paperswithcode/production/cron-locks/sync_rsi_infra.lock"), + expected_runtime_minutes=5, + stale_after_minutes=150, + critical=False, + healthy_no_work_allowed=False, + db_freshness_query=""" + SELECT max(e.updated_at) AS last_write, + count(*) FILTER ( + WHERE e.updated_at > now() - interval '2 hours 30 minutes' + ) AS recent_writes, + count(*) AS matched_evaluations + FROM evaluations e + JOIN datasets d ON d.id = e.dataset_id + WHERE d.slug = 'rsi-infra-bench' + AND e.methodology LIKE + 'Managed by the Papers with Code RSI-Infra Bench%' + """, + workflow_file="cron-sync-rsi-infra.yml", + workflow_jobs=("run",), + dashboard_group="leaderboard_sync", + ), CronJobDefinition( id="sync_frontiercs_2", scheduler="systemd", diff --git a/backend/services/frontier_rsi_sync_service.py b/backend/services/frontier_rsi_sync_service.py new file mode 100644 index 000000000..152f333a4 --- /dev/null +++ b/backend/services/frontier_rsi_sync_service.py @@ -0,0 +1,199 @@ +"""Live board for the official FrontierRSI leaderboard. + +https://frontier-rsi.org/ (Abundant AI) renders its leaderboard client-side +from a plain-data ``window.FRSI = {...}`` object in ``data.js``. Each task +lists every model's four trial rewards and their mean (avg@4); the site ranks +a model by the mean of its avg@4 over all tasks, so every task counts equally. +The PwC ``frontier-rsi`` benchmark mirrors that overall score as a percentage. +Scores are only comparable on one task set, so the parser fails when the +category list or the task count changes. +""" + +from __future__ import annotations + +import json +from decimal import ROUND_HALF_UP, Decimal + +import httpx + +from backend.services.leaderboard_sync_catalog import ModelIdentity +from backend.services.live_leaderboard_sync import ( + LeaderboardEntry, + LiveLeaderboard, + check_entry_count, + fetch_text, +) + +FRONTIER_RSI_URL = "https://frontier-rsi.org/" +FRONTIER_RSI_DATA_URL = "https://frontier-rsi.org/data.js" +TASK_SLUG = "auto-research" +DATASET_SLUG = "frontier-rsi" +METRIC_NAME = "Score" +CATEGORIES = ("pretrain", "posttrain", "inference", "kernels") +TASK_COUNT = 27 +MIN_EXPECTED_ENTRIES = 5 +MAX_EXPECTED_ENTRIES = 100 +MIN_SELECTED_ENTRIES = 5 + +HARNESSES = { + "Antigravity CLI": "Antigravity CLI", + "Claude Code": "Claude Code", + "Codex": "Codex", + "Grok Build": "Grok Build", + "Muse Code": "Muse Code", + "mini-swe-agent": "mini-SWE-agent", +} + +MODEL_IDENTITIES: dict[str, ModelIdentity] = { + "Gemini 4 Neon": ModelIdentity( + "Gemini 4 Neon", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/introducing-gemini-4-neon/" + ), + ), + "Claude Fable 5.2": ModelIdentity( + "Claude Fable 5.2", + source_url="https://www.anthropic.com/claude-fable-and-mythos-5-2", + ), + "Claude Opus 5.5": ModelIdentity( + "Claude Opus 5.5", source_url="https://www.anthropic.com/claude-opus-5-5" + ), + "GPT-6.2 Astra": ModelIdentity( + "GPT-6.2 Astra", + source_url="https://openai.com/index/introducing-gpt-6-2-astra-sol/", + ), + "GPT-6.2 Sol": ModelIdentity( + "GPT-6.2 Sol", + source_url="https://openai.com/index/introducing-gpt-6-2-astra-sol/", + ), + "Gemini 4 Carbon": ModelIdentity( + "Gemini 4 Carbon", + source_url=( + "https://deepmind.google/blog/gemini-4-carbon-our-next-frontier-model/" + ), + ), + "Gemini 4 Argon": ModelIdentity( + "Gemini 4 Argon", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/gemini-4-argon/" + ), + ), + "GPT-6.1 Sol": ModelIdentity( + "GPT-6.1 Sol", source_url="https://openai.com/index/introducing-gpt-6-1-sol/" + ), + "GPT-6 Astra": ModelIdentity( + "GPT-6 Astra", source_url="https://openai.com/index/gpt-6-astra/" + ), + "Kimi K3.1 Pro": ModelIdentity( + "Kimi K3.1 Pro", + source_url="https://www.kimi.com/blog/kimi-k3-1-pro", + is_open=True, + ), + "Muse Wonder 1.0": ModelIdentity( + "Muse Wonder 1.0", source_url="https://research.meta.ai/blog/muse-wonder" + ), + "Grok 4.7": ModelIdentity("Grok 4.7", source_url="https://x.ai/news/grok-4-7"), + "Inkling 2 Small": ModelIdentity( + "Inkling-2-Small", + source_url="https://thinkingmachines.ai/news/inkling-2-small", + is_open=True, + ), +} + +_DATA_ROOT = "window.FRSI" + + +def parse_frontier_rsi(text: str) -> list[LeaderboardEntry]: + """Rank models as the site does, failing on any task-set or layout change.""" + start = text.find(_DATA_ROOT) + if start < 0: + raise ValueError("FrontierRSI data.js no longer defines window.FRSI") + try: + data, _ = json.JSONDecoder().raw_decode(text, text.index("{", start)) + except json.JSONDecodeError as exc: + raise ValueError("FrontierRSI data is not JSON") from exc + categories = tuple(category["id"] for category in data.get("categories", [])) + if categories != CATEGORIES: + raise ValueError(f"FrontierRSI categories changed: {categories}") + tasks = data.get("tasks") or [] + if len(tasks) != TASK_COUNT: + raise ValueError(f"FrontierRSI lists {len(tasks)} tasks; expected {TASK_COUNT}") + + totals: dict[str, Decimal] = {} + setups: dict[str, tuple[str, str]] = {} + for task in tasks: + if task.get("category") not in CATEGORIES: + raise ValueError(f"FrontierRSI task {task.get('id')!r} has no category") + seen: set[str] = set() + for result in task.get("models") or []: + name = result.get("model") + if not (isinstance(name, str) and name and len(name) <= 200): + raise ValueError(f"FrontierRSI task {task.get('id')!r} has no model") + if name in seen: + raise ValueError(f"FrontierRSI task {task['id']!r} lists {name} twice") + seen.add(name) + harness = HARNESSES.get(result.get("harness")) + effort = result.get("effort") + if harness is None or not effort: + raise ValueError( + f"FrontierRSI harness {result.get('harness')!r} is not " + f"reviewed: {name}" + ) + if setups.setdefault(name, (harness, effort)) != (harness, effort): + raise ValueError(f"FrontierRSI runs {name} in two setups") + if result.get("avg") is None: + continue + value = Decimal(str(result["avg"])) + if not 0 <= value <= 1: + raise ValueError(f"FrontierRSI avg@4 is out of range: {name}") + totals[name] = totals.get(name, Decimal(0)) + value + + ranked = sorted(totals.items(), key=lambda item: item[1], reverse=True) + entries: list[LeaderboardEntry] = [] + for rank, (name, total) in enumerate(ranked, start=1): + score = (total * 100 / TASK_COUNT).quantize( + Decimal("0.01"), rounding=ROUND_HALF_UP + ) + harness, effort = setups[name] + lab = (data.get("models") or {}).get(name, {}).get("lab", "") + entries.append( + LeaderboardEntry( + name, + score, + f"rank {rank} of {len(ranked)}, score {score}% (avg@4 over " + f"{TASK_COUNT} tasks), run in {harness} at {effort} effort", + harness=harness, + lab=lab, + ) + ) + check_entry_count( + entries, "FrontierRSI leaderboard", MIN_EXPECTED_ENTRIES, MAX_EXPECTED_ENTRIES + ) + return entries + + +def fetch_frontier_rsi(client: httpx.Client | None = None) -> list[LeaderboardEntry]: + return parse_frontier_rsi(fetch_text(FRONTIER_RSI_DATA_URL, client)) + + +BOARD = LiveLeaderboard( + source="FrontierRSI", + provider="frontier-rsi", + url=FRONTIER_RSI_URL, + task_slug=TASK_SLUG, + dataset_slug=DATASET_SLUG, + metric=METRIC_NAME, + identities=MODEL_IDENTITIES, + min_selected=MIN_SELECTED_ENTRIES, + protocol=( + f"FrontierRSI overall score: equal-weight mean over {TASK_COUNT} " + "AI-research tasks (pre-training, post-training and harness, " + "inference and serving, kernels) of each model's avg@4, the mean " + "reward of four independent trials; a trial's reward is calibrated " + "against the best valid model trial from an initial run, with partial " + "credit within 10% of it and 0 for a failed correctness, accuracy or " + "resource check." + ), +) diff --git a/backend/services/frontiercs_2_sync_service.py b/backend/services/frontiercs_2_sync_service.py index e11262295..79d518dd4 100644 --- a/backend/services/frontiercs_2_sync_service.py +++ b/backend/services/frontiercs_2_sync_service.py @@ -31,7 +31,7 @@ FRONTIERCS_2_URL = "https://frontier-cs.org/#leaderboard" FRONTIERCS_2_DATA_URL = "https://frontier-cs.org/assets/js/fcs2-data.js" -TASK_SLUG = "coding-agents" +TASK_SLUG = "auto-research" DATASET_SLUG = "frontiercs-2" PASS_RATE = "Pass Rate" FCI = "FCI" diff --git a/backend/services/rsi_inference_sync_service.py b/backend/services/rsi_inference_sync_service.py new file mode 100644 index 000000000..5e146d180 --- /dev/null +++ b/backend/services/rsi_inference_sync_service.py @@ -0,0 +1,290 @@ +"""Live boards for the official RSI-Inference Bench leaderboard. + +Apple's RSI-Inference Bench publishes its leaderboard as +``docs/leaderboard.html`` in the ``apple-aiml-research/ml-rsi-inference-bench`` +repository; the page renders from a plain-data ``window.RSI_LEADERBOARD`` +object. Three PwC benchmarks on ``auto-research`` mirror it: the joint +category-weighted Bradley-Terry rating on the Elo scale, the Day-0 Model +Support track (pass@1) and the Inference Optimization and Regression Fix +track (geometric-mean speed-up). Ratings are only comparable within one +rating method and task release, so the parser fails when either changes. +A row the board marks incomplete is provisional and skipped. +""" + +from __future__ import annotations + +from decimal import Decimal +from typing import Any + +import httpx + +from backend.services.leaderboard_model_matching_service import family_lab +from backend.services.leaderboard_sync_catalog import ModelIdentity +from backend.services.live_leaderboard_sync import ( + LeaderboardEntry, + LiveLeaderboard, + check_entry_count, + fetch_text, + js_literal, +) + +RSI_INFERENCE_URL = ( + "https://htmlpreview.github.io/?https://github.com/apple-aiml-research/" + "ml-rsi-inference-bench/blob/main/docs/leaderboard.html" +) +RSI_INFERENCE_DATA_URL = ( + "https://raw.githubusercontent.com/apple-aiml-research/" + "ml-rsi-inference-bench/main/docs/leaderboard.html" +) +TASK_SLUG = "auto-research" +SCHEMA = "rsi-inference-leaderboard/1" +RATING_METHOD = "weighted-bt-elo-v2" +RELEASE_TASKS = 37 +TRACK_TASKS = {"model_support": 10, "optimization": 27} +MIN_EXPECTED_ENTRIES = 5 +MAX_EXPECTED_ENTRIES = 100 +MIN_SELECTED_ENTRIES = 5 + +_NAME_LABS = { + "Fable-": "Anthropic", + "Opus-": "Anthropic", + "Sonnet-": "Anthropic", +} + +MODEL_IDENTITIES: dict[str, ModelIdentity] = { + "Sonnet-5.5": ModelIdentity( + "Claude Sonnet 5.5", source_url="https://www.anthropic.com/claude-sonnet-5-5" + ), + "Opus-5.5": ModelIdentity( + "Claude Opus 5.5", source_url="https://www.anthropic.com/claude-opus-5-5" + ), + "Fable-5.1": ModelIdentity( + "Claude Fable 5.1", + source_url="https://www.anthropic.com/claude-fable-and-mythos-5-1", + ), + "Opus-5": ModelIdentity( + "Claude Opus 5", source_url="https://www.anthropic.com/news/claude-opus-5" + ), + "Opus-4.8": ModelIdentity( + "Claude Opus 4.8", source_url="https://www.anthropic.com/news/claude-opus-4-8" + ), + "GPT-6.1-Sol": ModelIdentity( + "GPT-6.1 Sol", source_url="https://openai.com/index/introducing-gpt-6-1-sol/" + ), + "GPT-6-Astra": ModelIdentity( + "GPT-6 Astra", source_url="https://openai.com/index/gpt-6-astra/" + ), + "GPT-6-Sol": ModelIdentity( + "GPT-6 Sol", + source_url="https://openai.com/index/introducing-gpt-6-sol-and-luna/", + ), + "Gemini-4-Argon": ModelIdentity( + "Gemini 4 Argon", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/gemini-4-argon/" + ), + ), + "Gemini-3.8-Flash": ModelIdentity( + "Gemini 3.8 Flash", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/3-8-flash-and-3-8-flash-cyber/" + ), + ), + "Gemini-3.7-Flash": ModelIdentity( + "Gemini 3.7 Flash", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/introducing-gemini-3-7-flash/" + ), + ), + "DeepSeek-V4.1-Flash-1017": ModelIdentity( + "DeepSeek-V4.1-Flash-1017", arxiv_id="2609.19969", is_open=True + ), + "DeepSeek-V4.1-Flash": ModelIdentity( + "DeepSeek-V4.1-Flash", arxiv_id="2609.19969", is_open=True + ), + "MiniMax-M3.1-Flash": ModelIdentity( + "MiniMax-M3.1-Flash", + source_url="https://www.minimax.io/blog/minimax-m31f", + is_open=True, + ), + "GLM-5.3": ModelIdentity( + "GLM-5.3", + source_url="https://z.ai/blog/glm-5.3", + is_open=True, + hf_model_url="https://huggingface.co/zai-org/GLM-5.3", + ), +} + +_PROTOCOL_HEAD = ( + f"RSI-Inference Bench ({RELEASE_TASKS} tasks on vLLM and SGLang, H100 and " + "B200, 8-hour agent budget, offline)" +) + +RATING_BOARD = LiveLeaderboard( + source="RSI-Inference Bench", + provider="rsi-inference-bench", + url=RSI_INFERENCE_URL, + task_slug=TASK_SLUG, + dataset_slug="rsi-inference-bench", + metric="Elo", + identities=MODEL_IDENTITIES, + min_selected=MIN_SELECTED_ENTRIES, + protocol=( + f"{_PROTOCOL_HEAD} joint rating: category-weighted Bradley-Terry " + "rating on the Elo scale (mean 1500) over pairwise task comparisons, " + "weighting model support 0.25, throughput optimization 0.5 and " + "regression fixes 0.25." + ), +) +MODEL_SUPPORT_BOARD = LiveLeaderboard( + source="RSI-Inference Bench Model Support", + provider="rsi-inference-bench", + url=RSI_INFERENCE_URL, + task_slug=TASK_SLUG, + dataset_slug="rsi-inference-bench-model-support", + metric="Pass@1", + identities=MODEL_IDENTITIES, + min_selected=MIN_SELECTED_ENTRIES, + protocol=( + f"{_PROTOCOL_HEAD} Day-0 Model Support track: pass@1 in percent over " + f"{TRACK_TASKS['model_support']} tasks, full passes over attempts " + "averaged over tasks, where a partial pass counts as a failure; the " + "board breaks ties by the share of hidden tests passed." + ), +) +OPTIMIZATION_BOARD = LiveLeaderboard( + source="RSI-Inference Bench Optimization", + provider="rsi-inference-bench", + url=RSI_INFERENCE_URL, + task_slug=TASK_SLUG, + dataset_slug="rsi-inference-bench-optimization", + metric="Speedup", + identities=MODEL_IDENTITIES, + min_selected=MIN_SELECTED_ENTRIES, + protocol=( + f"{_PROTOCOL_HEAD} Inference Optimization and Regression Fix track: " + f"geometric mean over {TRACK_TASKS['optimization']} tasks (20 " + "throughput optimization, 7 regression) of the speed-up against each " + "task's baseline; a result failing its correctness check counts as " + "1.00x." + ), +) +BOARDS = (RATING_BOARD, MODEL_SUPPORT_BOARD, OPTIMIZATION_BOARD) + +_DATA_ROOT = "window.RSI_LEADERBOARD" + + +def _lab(name: str) -> str: + return next( + (lab for prefix, lab in _NAME_LABS.items() if name.startswith(prefix)), + family_lab(name), + ) + + +def _check_release(data: dict[str, Any]) -> None: + if data.get("schema") != SCHEMA: + raise ValueError(f"RSI-Inference schema changed: {data.get('schema')!r}") + method = (data.get("rating") or {}).get("method") + if method != RATING_METHOD: + raise ValueError(f"RSI-Inference rating method changed: {method!r}") + tasks = (data.get("release") or {}).get("tasks") + if tasks != RELEASE_TASKS: + raise ValueError(f"RSI-Inference release has {tasks} tasks; expected 37") + released = { + track.get("id"): track.get("tasks_released") for track in data.get("tracks", []) + } + if released != TRACK_TASKS: + raise ValueError(f"RSI-Inference tracks changed: {released}") + + +def _entries( + rows: list[dict[str, Any]], + what: str, + score: str, + scale: Decimal, + describe: str, +) -> list[LeaderboardEntry]: + entries: list[LeaderboardEntry] = [] + names: set[str] = set() + previous: Decimal | None = None + for position, row in enumerate(rows, start=1): + name = row.get("agent") + if not (isinstance(name, str) and name and len(name) <= 200): + raise ValueError(f"RSI-Inference {what} row {position} has no agent") + if name in names: + raise ValueError(f"RSI-Inference {what} lists {name} twice") + names.add(name) + raw = row.get(score) + if not isinstance(raw, (int, float)) or isinstance(raw, bool): + raise ValueError(f"RSI-Inference {what} {score} is malformed: {name}") + listed = Decimal(str(raw)) + if previous is not None and listed > previous: + raise ValueError(f"RSI-Inference {what} is out of rank order: {name}") + previous = listed + if not row.get("complete"): + continue + entries.append( + LeaderboardEntry( + name, + (listed * scale).normalize(), + f"rank {row.get('rank')} of {len(rows)} on the {what}, " + f"{describe} {listed}", + lab=_lab(name), + ) + ) + check_entry_count( + entries, f"RSI-Inference {what}", MIN_EXPECTED_ENTRIES, MAX_EXPECTED_ENTRIES + ) + return entries + + +def parse_rsi_inference( + text: str, +) -> list[tuple[LiveLeaderboard, list[LeaderboardEntry]]]: + """Parse the three boards, failing on any rating, release or layout change.""" + start = text.find(_DATA_ROOT) + if start < 0: + raise ValueError("RSI-Inference page no longer defines RSI_LEADERBOARD") + data = js_literal(text, text.index("{", start), "RSI-Inference leaderboard") + _check_release(data) + joint = data.get("joint") or [] + for position, row in enumerate(joint, start=1): + if row.get("rank") != position: + raise ValueError( + f"RSI-Inference joint rank {row.get('rank')!r} at row {position}" + ) + return [ + ( + RATING_BOARD, + _entries(joint, "joint board", "rating", Decimal(1), "rating"), + ), + ( + MODEL_SUPPORT_BOARD, + _entries( + data.get("model_support") or [], + "Model Support track", + "pass_at_1", + Decimal(100), + "pass@1", + ), + ), + ( + OPTIMIZATION_BOARD, + _entries( + data.get("optimization") or [], + "Optimization track", + "speedup", + Decimal(1), + "geometric-mean speed-up", + ), + ), + ] + + +def fetch_rsi_inference_boards( + client: httpx.Client | None = None, +) -> list[tuple[LiveLeaderboard, list[LeaderboardEntry]]]: + return parse_rsi_inference(fetch_text(RSI_INFERENCE_DATA_URL, client)) diff --git a/backend/services/rsi_infra_sync_service.py b/backend/services/rsi_infra_sync_service.py new file mode 100644 index 000000000..08f96407a --- /dev/null +++ b/backend/services/rsi_infra_sync_service.py @@ -0,0 +1,249 @@ +"""Live board for the official RSI-Infra Bench leaderboard. + +RSI-Infra Bench (AI4AI for Anything) measures how far a coding agent speeds up +real training code in a 10-hour budget without changing training results. Its +leaderboard page renders a static HTML table: each model, its harness, the +overall score and its speed-up on each of the eight tasks. The overall score +is an ECI-style fit over per-task log-speedup scores anchored at Claude Opus +5.5 = 40 and Kimi K3.1 Pro = 10, so the parser fails when the task set or the +anchors change. +""" + +from __future__ import annotations + +import html +import re +from decimal import Decimal + +import httpx + +from backend.services.leaderboard_model_matching_service import family_lab +from backend.services.leaderboard_sync_catalog import ModelIdentity +from backend.services.live_leaderboard_sync import ( + LeaderboardEntry, + LiveLeaderboard, + check_entry_count, + fetch_text, +) + +RSI_INFRA_URL = ( + "https://ai4ai-for-anything.github.io/blog/rsi-infra-bench/leaderboard/index.html" +) +TASK_SLUG = "auto-research" +DATASET_SLUG = "rsi-infra-bench" +METRIC_NAME = "Score" +TASKS = ( + "LLaVA", + "YOCO", + "NanoChat", + "BAGEL SFT", + "R3", + "3DGS", + "Slime GRPO", + "Slime OPD", +) +ANCHORS = {"Claude Opus 5.5": Decimal("40.00"), "Kimi k3.1-pro": Decimal("10.00")} +MIN_EXPECTED_ENTRIES = 5 +MAX_EXPECTED_ENTRIES = 100 +MIN_SELECTED_ENTRIES = 5 + +HARNESSES = { + "Antigravity CLI": "Antigravity CLI", + "Claude Code": "Claude Code", + "Codex": "Codex", + "DSH": "DeepSeek Harness", + "Qwen Code": "Qwen Code", +} + +MODEL_IDENTITIES: dict[str, ModelIdentity] = { + "Gemini 4 Neon": ModelIdentity( + "Gemini 4 Neon", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/introducing-gemini-4-neon/" + ), + ), + "Claude Opus 5.5": ModelIdentity( + "Claude Opus 5.5", source_url="https://www.anthropic.com/claude-opus-5-5" + ), + "Claude Sonnet 5.5": ModelIdentity( + "Claude Sonnet 5.5", source_url="https://www.anthropic.com/claude-sonnet-5-5" + ), + "Claude Haiku 5.5": ModelIdentity( + "Claude Haiku 5.5", source_url="https://www.anthropic.com/claude-haiku-5-5" + ), + "Gemini 4 Hydrogen": ModelIdentity( + "Gemini 4 Hydrogen", + source_url=( + "https://blog.google/innovation-and-ai/models-and-research/" + "gemini-models/introducing-gemini-4-hydrogen/" + ), + ), + "Gemini 4 Carbon": ModelIdentity( + "Gemini 4 Carbon", + source_url=( + "https://deepmind.google/blog/gemini-4-carbon-our-next-frontier-model/" + ), + ), + "GPT-6.2 Astra": ModelIdentity( + "GPT-6.2 Astra", + source_url="https://openai.com/index/introducing-gpt-6-2-astra-sol/", + ), + "GPT-6.2 Sol": ModelIdentity( + "GPT-6.2 Sol", + source_url="https://openai.com/index/introducing-gpt-6-2-astra-sol/", + ), + "GPT-6 Astra": ModelIdentity( + "GPT-6 Astra", source_url="https://openai.com/index/gpt-6-astra/" + ), + "MiniMax M3.1 Flash": ModelIdentity( + "MiniMax-M3.1-Flash", + source_url="https://www.minimax.io/blog/minimax-m31f", + is_open=True, + ), + "Qwen4-Max": ModelIdentity( + "Qwen4 Max", source_url="https://qwen.ai/blog?id=qwen4-max" + ), + "Step-5 Preview": ModelIdentity( + "Step-5-Preview", + source_url="https://huggingface.co/stepfun-ai/Step-5-Preview", + is_open=True, + ), + "GLM-5.3": ModelIdentity( + "GLM-5.3", + source_url="https://z.ai/blog/glm-5.3", + is_open=True, + hf_model_url="https://huggingface.co/zai-org/GLM-5.3", + ), + "DeepSeek V4.1 Flash-1017": ModelIdentity( + "DeepSeek-V4.1-Flash-1017", arxiv_id="2609.19969", is_open=True + ), + "Kimi k3.1-pro": ModelIdentity( + "Kimi K3.1 Pro", + source_url="https://www.kimi.com/blog/kimi-k3-1-pro", + is_open=True, + ), + "Hy4": ModelIdentity( + "Hy4", + source_url=( + "https://www.tencent.com/tencent-launches-hy4-joining-the-ranks-of-" + "the-worlds-leading-open-source-ai-models/" + ), + is_open=True, + ), +} + +_TABLE = re.compile(r"(.*?)
", re.S) +_HEADER_TASK = re.compile(r".*?([^<]*)") +_ROW = re.compile(r"(.*?)", re.S) +_RANK = re.compile(r"]*>([^<]*)") +_NAME = re.compile(r"([^<]*)") +_NOTE = re.compile(r"([^<]*)") +_HARNESS = re.compile(r"]*>([^<]*)") +_LAB = re.compile(r"([^<·]*)") +_SCORE = re.compile(r"([^<]*)") +_SPEEDUP = re.compile(r"]*>]*>([\d.]+)") +_OTHER_JUDGE = re.compile(r"([^<]*) were judged by the released judge") + + +def _match(pattern: re.Pattern[str], text: str) -> str | None: + found = pattern.search(text) + return html.unescape(found[1]).strip() if found else None + + +def parse_rsi_infra(text: str) -> list[LeaderboardEntry]: + """Parse the leaderboard table, failing on any task, anchor or layout change.""" + if "RSI-Infra Bench" not in text: + raise ValueError("RSI-Infra Bench page no longer names the benchmark") + table = _TABLE.search(text) + if table is None: + raise ValueError("RSI-Infra Bench leaderboard table not found") + tasks = tuple(html.unescape(t) for t in _HEADER_TASK.findall(table[1])) + if tasks != TASKS: + raise ValueError(f"RSI-Infra Bench tasks changed: {tasks}") + other_judge = set(re.split(r",\s*|\s+and\s+", _match(_OTHER_JUDGE, text) or "")) + + rows = _ROW.findall(table[1]) + entries: list[LeaderboardEntry] = [] + previous: Decimal | None = None + for position, row in enumerate(rows, start=1): + rank, name = _match(_RANK, row), _match(_NAME, row) + if rank != str(position): + raise ValueError(f"RSI-Infra Bench rank {rank!r} at row {position}") + if not (name and len(name) <= 200): + raise ValueError(f"RSI-Infra Bench rank {rank} has no name") + harness = HARNESSES.get(_match(_HARNESS, row) or "") + if harness is None: + raise ValueError( + f"RSI-Infra Bench harness {_match(_HARNESS, row)!r} is not " + f"reviewed: {name}" + ) + score = _match(_SCORE, row) + try: + value = Decimal(score or "") + except ArithmeticError as exc: + raise ValueError(f"RSI-Infra Bench score is malformed: {name}") from exc + if not value.is_finite() or value < 0: + raise ValueError(f"RSI-Infra Bench score is out of range: {name}") + if previous is not None and value > previous: + raise ValueError(f"RSI-Infra Bench score is out of rank order: {name}") + previous = value + if name in ANCHORS and value != ANCHORS[name]: + raise ValueError(f"RSI-Infra Bench anchor {name} moved to {value}") + speedups = _SPEEDUP.findall(row) + if len(speedups) != len(TASKS): + raise ValueError( + f"RSI-Infra Bench row for {name} has {len(speedups)} task speed-ups" + ) + notes = [] + if note := _match(_NOTE, row): + notes.append(f"marked {note!r} on the board") + if name in other_judge: + notes.append("judged by the released judge on other 8-GPU Hopper machines") + per_task = ", ".join(f"{task} {x}x" for task, x in zip(TASKS, speedups)) + entries.append( + LeaderboardEntry( + name, + value, + f"rank {rank} of {len(rows)}, score {score}, run in {harness}; " + f"per-task speed-ups {per_task}" + + "".join(f"; {note}" for note in notes), + harness=harness, + lab=_match(_LAB, row) or family_lab(name), + ) + ) + missing = set(ANCHORS) - {entry.name for entry in entries} + if missing: + raise ValueError(f"RSI-Infra Bench anchors missing: {sorted(missing)}") + keys = [(entry.name, entry.harness) for entry in entries] + if duplicates := sorted({str(k) for k in keys if keys.count(k) > 1}): + raise ValueError(f"RSI-Infra Bench lists {duplicates} twice") + check_entry_count( + entries, "RSI-Infra Bench board", MIN_EXPECTED_ENTRIES, MAX_EXPECTED_ENTRIES + ) + return entries + + +def fetch_rsi_infra(client: httpx.Client | None = None) -> list[LeaderboardEntry]: + return parse_rsi_infra(fetch_text(RSI_INFRA_URL, client)) + + +BOARD = LiveLeaderboard( + source="RSI-Infra Bench", + provider="rsi-infra-bench", + url=RSI_INFRA_URL, + task_slug=TASK_SLUG, + dataset_slug=DATASET_SLUG, + metric=METRIC_NAME, + identities=MODEL_IDENTITIES, + min_selected=MIN_SELECTED_ENTRIES, + protocol=( + "RSI-Infra Bench (preview, 8 training-code tasks on 1-4 Hopper GPUs, " + "10-hour budget, one run per model and task): the speed-up is the " + "original per-step time over the agent's, and a result that changes " + "training outcomes counts as 1x; each task scores ln(speed-up) over " + "ln(best speed-up on the task), and the overall score is an ECI-style " + "fit over all task scores anchored at Claude Opus 5.5 = 40 and Kimi " + "K3.1 Pro = 10." + ), +) diff --git a/backend/tests/cron/fixtures/cron_effective_contracts.json b/backend/tests/cron/fixtures/cron_effective_contracts.json index 5cad4b7cb..79e4c1d39 100644 --- a/backend/tests/cron/fixtures/cron_effective_contracts.json +++ b/backend/tests/cron/fixtures/cron_effective_contracts.json @@ -28,6 +28,9 @@ {"id": "sync_jevbench", "scheduler": "systemd", "schedule": "37 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 37, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-jevbench.timer", "systemd_service": "pwc-cron-sync-jevbench.service", "systemd_extra_units": [], "output_evaluator": "generic"}, {"id": "sync_sle", "scheduler": "systemd", "schedule": "41 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 41, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-sle.timer", "systemd_service": "pwc-cron-sync-sle.service", "systemd_extra_units": [], "output_evaluator": "generic"}, {"id": "sync_rsi_exam", "scheduler": "systemd", "schedule": "49 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 49, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-rsi-exam.timer", "systemd_service": "pwc-cron-sync-rsi-exam.service", "systemd_extra_units": [], "output_evaluator": "generic"}, + {"id": "sync_frontier_rsi", "scheduler": "systemd", "schedule": "19 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 19, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-frontier-rsi.timer", "systemd_service": "pwc-cron-sync-frontier-rsi.service", "systemd_extra_units": [], "output_evaluator": "generic"}, + {"id": "sync_rsi_inference", "scheduler": "systemd", "schedule": "29 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 29, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-rsi-inference.timer", "systemd_service": "pwc-cron-sync-rsi-inference.service", "systemd_extra_units": [], "output_evaluator": "generic"}, + {"id": "sync_rsi_infra", "scheduler": "systemd", "schedule": "44 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 44, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-rsi-infra.timer", "systemd_service": "pwc-cron-sync-rsi-infra.service", "systemd_extra_units": [], "output_evaluator": "generic"}, {"id": "sync_frontiercs_2", "scheduler": "systemd", "schedule": "43 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 43, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-frontiercs-2.timer", "systemd_service": "pwc-cron-sync-frontiercs-2.service", "systemd_extra_units": [], "output_evaluator": "generic"}, {"id": "sync_vals_index", "scheduler": "systemd", "schedule": "3 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 3, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-vals-index.timer", "systemd_service": "pwc-cron-sync-vals-index.service", "systemd_extra_units": [], "output_evaluator": "generic"}, {"id": "sync_swe_sweep", "scheduler": "systemd", "schedule": "8 * * * * (hourly)", "schedule_policies": [{"interval_minutes": 60, "kind": "fixed_interval", "minute_of_day": 8, "weekday": null}], "schedule_grace_minutes": 20, "systemd_timer": "pwc-cron-sync-swe-sweep.timer", "systemd_service": "pwc-cron-sync-swe-sweep.service", "systemd_extra_units": [], "output_evaluator": "generic"}, diff --git a/backend/tests/cron/test_registry_inventory.py b/backend/tests/cron/test_registry_inventory.py index 2afa45ef9..5456660ae 100644 --- a/backend/tests/cron/test_registry_inventory.py +++ b/backend/tests/cron/test_registry_inventory.py @@ -27,8 +27,8 @@ def test_registry_covers_workflows_systemd_and_allowlist_exactly(): summary = _dashboard_job_summary( [{"category": job.category, "status": "healthy"} for job in jobs] ) - assert summary["total_jobs"] == 79 - assert summary["scheduled_jobs"] == 78 + assert summary["total_jobs"] == 82 + assert summary["scheduled_jobs"] == 81 assert summary["manual_jobs"] == 1 assert len(by_id) == len(jobs), "duplicate dashboard job IDs" @@ -126,6 +126,9 @@ def test_registry_includes_hf_artifacts_embeddings_and_method_backfills(): assert "sync_jevbench" in job_ids assert "sync_sle" in job_ids assert "sync_rsi_exam" in job_ids + assert "sync_frontier_rsi" in job_ids + assert "sync_rsi_inference" in job_ids + assert "sync_rsi_infra" in job_ids assert "sync_frontiercs_2" in job_ids assert "sync_vals_index" in job_ids assert "sync_swe_sweep" in job_ids @@ -204,6 +207,9 @@ def test_registry_classifies_only_recurring_leaderboard_syncs(): "sync_jevbench", "sync_sle", "sync_rsi_exam", + "sync_frontier_rsi", + "sync_rsi_inference", + "sync_rsi_infra", "sync_frontiercs_2", "sync_vals_index", "sync_swe_sweep", diff --git a/backend/tests/deployment/test_cron_environment.py b/backend/tests/deployment/test_cron_environment.py index 3e385836a..ed6f19f77 100644 --- a/backend/tests/deployment/test_cron_environment.py +++ b/backend/tests/deployment/test_cron_environment.py @@ -362,6 +362,9 @@ def test_cron_status_reports_exact_production_release( assert status["jobs"]["sync_jevbench"]["timeout"] == "30m" assert status["jobs"]["sync_sle"]["timeout"] == "30m" assert status["jobs"]["sync_rsi_exam"]["timeout"] == "30m" + assert status["jobs"]["sync_frontier_rsi"]["timeout"] == "30m" + assert status["jobs"]["sync_rsi_inference"]["timeout"] == "30m" + assert status["jobs"]["sync_rsi_infra"]["timeout"] == "30m" assert status["jobs"]["sync_frontiercs_2"]["timeout"] == "30m" assert status["jobs"]["sync_vals_index"]["timeout"] == "30m" assert status["jobs"]["sync_swe_sweep"]["timeout"] == "30m" diff --git a/backend/tests/evaluation/fixtures/frontier_rsi_data.js b/backend/tests/evaluation/fixtures/frontier_rsi_data.js new file mode 100644 index 000000000..fc4581994 --- /dev/null +++ b/backend/tests/evaluation/fixtures/frontier_rsi_data.js @@ -0,0 +1,2691 @@ +window.FRSI = { + "categories": [ + { + "id": "pretrain", + "name": "Pre-training", + "blurb": "Optimizers, objectives, architectures and training of draft models, scored on held-out loss or latency." + }, + { + "id": "posttrain", + "name": "Post-train and harness", + "blurb": "Design RL data that teaches a small model multi-step coding, or improve the harness around a fixed worker model." + }, + { + "id": "inference", + "name": "Inference and serving", + "blurb": "Scheduling, routing, caching and batching for frozen-model serving, with exact greedy outputs." + }, + { + "id": "kernels", + "name": "Kernels", + "blurb": "Fast, numerically correct H100 kernels for attention, matrix products and sampling." + } + ], + "tasks": [ + { + "id": "model-shape-efficiency", + "category": "pretrain", + "title": "Choose a transformer shape", + "metric": "total decode time (ms)", + "digits": 1, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 522.2626717493768, + "best_model": "Gemini 4 Carbon", + "anchor_raw": 624.815046349795, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.75 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.5132510496750036 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.4620986787113236 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.3969627298434685 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.3952745351020036 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.25 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "language-model-optimizer", + "category": "pretrain", + "title": "Design the optimizer", + "metric": "held-out loss (nats/token)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 4.120259951580749, + "best_model": "Gemini 4 Carbon", + "anchor_raw": 4.125242555379501, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.9497043589777413 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.9058696622572022 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.902130416130454 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.8890803766361502 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.8840433130442248 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.8520787693085853 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.8315243986479492 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.8062325356560447 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.8053704628339657 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.7897980320764878 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.6472314779685914 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.5776499464733382 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.215209950043117 + } + ] + }, + { + "id": "training-objective-design", + "category": "pretrain", + "title": "Design the training objective", + "metric": "held-out loss (nats/token)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 4.2501733916512645, + "best_model": "Claude Opus 5.5", + "anchor_raw": 4.2501733916512645, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.7330354299204378 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6145356595895923 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.472064258479716 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.43210883022515206 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.24525712932717134 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.18580415664602484 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.06466755913751368 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.023682647550291515 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "long-sequence-computation", + "category": "pretrain", + "title": "Speed up long-context attention", + "metric": "full-forward latency (ms)", + "digits": 2, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 13.720738563260682, + "best_model": "Gemini 4 Argon", + "anchor_raw": 13.720738563260682, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "speculative-draft-training", + "category": "pretrain", + "title": "Train a speculative draft model", + "metric": "decode time (ms/token)", + "digits": 2, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 9.130249607180659, + "best_model": "GPT-6.2 Astra", + "anchor_raw": 9.878943214035342, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.8606790314021715 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.7477432711908889 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.27970120877860605 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.21647490563046204 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.20029643278055184 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.06199890750288663 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "pt-multifile-numpy-rl-qwen3-4b", + "category": "posttrain", + "title": "RL data: NumPy bug fixing", + "metric": "hidden projects solved", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.8633, + "best_model": "GPT-6 Astra", + "anchor_raw": 0.6333, + "hours": 8.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.5 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.22394599715774538 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.039594189167850874 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + } + ] + }, + { + "id": "pt-multifile-scipy-rl-qwen3-4b", + "category": "posttrain", + "title": "RL data: SciPy bug fixing", + "metric": "hidden projects solved", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.8333, + "best_model": "Kimi K3.1 Pro", + "anchor_raw": 0.8333, + "hours": 8.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "pt-chained-rl-qwen3-4b", + "category": "posttrain", + "title": "RL data: chained bugs", + "metric": "hidden projects solved", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.4967, + "best_model": "Gemini 4 Argon", + "anchor_raw": 0.4967, + "hours": 8.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.1659452385745923 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.1476746527078721 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.08189047714918467 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "pt-interfaceport-easy-rl-qwen3-4b", + "category": "posttrain", + "title": "RL data: interface porting", + "metric": "hidden projects solved", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.5433, + "best_model": "Claude Opus 5.5", + "anchor_raw": 0.43, + "hours": 8.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.75 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.6726744186046513 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.3255813953488373 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.25 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.25 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "pt-multifile-rl-qwen3-4b", + "category": "posttrain", + "title": "RL data: multi-file bug fixing", + "metric": "hidden projects solved", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.85, + "best_model": "Inkling 2 Small", + "anchor_raw": 0.8267, + "hours": 8.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.3487964194992137 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.2880125801378979 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.25 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.21975928389984273 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.17923672432563215 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.07853513971210851 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.03831498729889945 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.02803314382484577 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.02803314382484577 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "bfcl-harness", + "category": "posttrain", + "title": "Harness: BFCL v4 multi-turn", + "metric": "held-out success", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.75, + "best_model": "Gemini 4 Neon", + "anchor_raw": 0.6666666666666666, + "hours": 4.0, + "gpus": 1, + "gpu_type": "A100-80", + "models": [ + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.49999999999999994 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.09375000000000008 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "swe-bench-harness", + "category": "posttrain", + "title": "Harness: SWE-bench Verified", + "metric": "held-out success", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.75, + "best_model": "Claude Opus 5.5", + "anchor_raw": 0.6666666666666666, + "hours": 4.0, + "gpus": 1, + "gpu_type": "A100-80", + "models": [ + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "webarena-verified-harness", + "category": "posttrain", + "title": "Harness: WebArena-Verified", + "metric": "held-out success", + "digits": 3, + "percent": true, + "suffix": "", + "direction": "maximize", + "best_raw": 0.5, + "best_model": "Claude Opus 5.5", + "anchor_raw": 0.5, + "hours": 4.0, + "gpus": 1, + "gpu_type": "A100-80", + "models": [ + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.041666666666666526 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.04166666666666652 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "bulk-inference", + "category": "inference", + "title": "Bulk inference", + "metric": "throughput (output tokens/s)", + "digits": 0, + "percent": false, + "suffix": "", + "direction": "maximize", + "best_raw": 6640.464162203749, + "best_model": "GPT-6.2 Astra", + "anchor_raw": 4454.419949047416, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.948846962869472 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.9466948422597194 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.75 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.210459457106796 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.11330483383558465 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "cache-aware-replica-routing", + "category": "inference", + "title": "Cache-aware replica routing", + "metric": "speedup over the starter", + "digits": 3, + "percent": false, + "suffix": "\u00d7", + "direction": "maximize", + "best_raw": 1.7306763131373926, + "best_model": "Claude Fable 5.2", + "anchor_raw": 1.716622137413676, + "hours": 0.75, + "gpus": 2, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.7681702092125022 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.4373387144503348 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.41240395800015595 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.34924400754807 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.2605993105264021 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.15760337099909477 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.13639086927219138 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.12573393813871758 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0971883127973893 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.007435451394348464 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "separated-prefill-and-decode", + "category": "inference", + "title": "Disaggregated prefill and decode", + "metric": "stream duration (s)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 3.6879725226500057, + "best_model": "GPT-6.2 Astra", + "anchor_raw": 3.832830198025002, + "hours": 4.0, + "gpus": 2, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.75 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.7223575744111498 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.6345438007867732 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.5373254345033381 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.470974342277277 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.45977956495970823 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.4568524325923775 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.3918592171439625 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.34417828635445347 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.18898253175569527 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "adaptive-prefill-chunking", + "category": "inference", + "title": "Schedule prefill and decode", + "metric": "speedup over the starter", + "digits": 3, + "percent": false, + "suffix": "\u00d7", + "direction": "maximize", + "best_raw": 1.7654725881629019, + "best_model": "GPT-6.2 Sol", + "anchor_raw": 1.6713197051824389, + "hours": 0.75, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.6984104299216042 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.6743830705155283 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5994718011160676 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.5848767481088153 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.5605367640786078 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.547913017740956 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.4537144969272441 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.4134264300453441 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.37123265424675167 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.34760118240549415 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.331402834658783 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.27955159666638146 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.024604146295744596 + } + ] + }, + { + "id": "branch-sharing-generation", + "category": "inference", + "title": "Shared-prompt branch generation", + "metric": "workload time (s)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 1.018688812162577, + "best_model": "Claude Fable 5.2", + "anchor_raw": 1.0614567414500022, + "hours": 4.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6914165525779491 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-parameter-update", + "category": "kernels", + "title": "AdamW parameter update", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 2.9314239025115967, + "best_model": "Kimi K3.1 Pro", + "anchor_raw": 2.9314239025115967, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.8830381944034961 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6387990418764661 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5220697238119693 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.4971040926833487 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.43339185442091915 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.42798831877232935 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.41887579976809014 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.3669041005400203 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.33991094389612686 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.29189326101725377 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.18934924068034897 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.12850802214149942 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.09731490116982272 + } + ] + }, + { + "id": "kernel-masked-attention", + "category": "kernels", + "title": "Block-masked attention, forward and backward", + "metric": "100-case sweep time (ms)", + "digits": 2, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 47.7825927734375, + "best_model": "Gemini 4 Neon", + "anchor_raw": 51.023841857910156, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.9805494245713499 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.9398843520519538 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5579673882146838 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.5325409099588396 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.4601284436414559 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.4313131999969496 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.41397395136245874 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.1932936212029161 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.1642615834481816 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-causal-attention", + "category": "kernels", + "title": "Causal attention, forward and backward", + "metric": "100-case sweep time (ms)", + "digits": 2, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 96.30374145507812, + "best_model": "Gemini 4 Carbon", + "anchor_raw": 96.30374145507812, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.8064066440809446 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.746206464626811 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.6464135831536836 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.21535512065383003 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.20924328615598314 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.06340523249973579 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.053100622337935666 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.03803210384699835 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.027468833193215532 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-independent-matrix-workload", + "category": "kernels", + "title": "Grouped matrix products", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 5.817887783050537, + "best_model": "Gemini 4 Neon", + "anchor_raw": 6.593599796295166, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.9573695699982521 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.662516295998613 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.38785472882453076 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.2701343404267102 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.10545620081775946 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-projected-state-attention", + "category": "kernels", + "title": "Latent-projected attention", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 2.354048013687134, + "best_model": "Claude Opus 5.5", + "anchor_raw": 2.3540799617767334, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-fragmented-state-attention", + "category": "kernels", + "title": "Paged attention", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 0.521888017654419, + "best_model": "GPT-6 Astra", + "anchor_raw": 0.5534399747848511, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.5 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.25 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + }, + { + "id": "kernel-rectangular-matrix-workload", + "category": "kernels", + "title": "Rectangular matrix products", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 3.332672119140625, + "best_model": "GPT-6.1 Sol", + "anchor_raw": 3.3855679035186768, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 1.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.9467904136738182 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.9439405395778523 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.9436005067851279 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.9293091471673336 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.9014709824951245 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.8900721199095697 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.8844149946539113 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.8321839929166701 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.7386101690403469 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.7121118539931511 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6794460476020557 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.6147102052302305 + } + ] + }, + { + "id": "kernel-single-query-attention", + "category": "kernels", + "title": "Single-query decode attention", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 9.045663833618164, + "best_model": "Gemini 4 Carbon", + "anchor_raw": 9.216575622558594, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.7168767616418397 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.6896831424586206 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6892144836449273 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.6393031348429472 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.5311772837707514 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.5110144780573407 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.4931016071554214 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.4849770236375598 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.47749340871746243 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.47252462159622816 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.2806464371893193 + }, + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.26770188777642995 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.17457477432359136 + } + ] + }, + { + "id": "kernel-logit-selection", + "category": "kernels", + "title": "Top-k and top-p sampling", + "metric": "100-case sweep time (ms)", + "digits": 3, + "percent": false, + "suffix": "", + "direction": "minimize", + "best_raw": 1.8384640216827393, + "best_model": "GPT-6.2 Astra", + "anchor_raw": 1.9459840059280396, + "hours": 2.0, + "gpus": 1, + "gpu_type": "H100", + "models": [ + { + "model": "GPT-6.2 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.2898072248651794 + }, + { + "model": "Gemini 4 Carbon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.25 + }, + { + "model": "Gemini 4 Neon", + "harness": "Antigravity CLI", + "effort": "xhigh", + "avg": 0.25 + }, + { + "model": "Claude Fable 5.2", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Claude Opus 5.5", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Kimi K3.1 Pro", + "harness": "Claude Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.1 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6 Astra", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "GPT-6.2 Sol", + "harness": "Codex", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Gemini 4 Argon", + "harness": "Antigravity CLI", + "effort": "high", + "avg": 0.0 + }, + { + "model": "Grok 4.7", + "harness": "Grok Build", + "effort": "xhigh", + "avg": 0.0 + }, + { + "model": "Muse Wonder 1.0", + "harness": "Muse Code", + "effort": "max", + "avg": 0.0 + }, + { + "model": "Inkling 2 Small", + "harness": "mini-swe-agent", + "effort": "max", + "avg": 0.0 + } + ] + } + ], + "models": { + "Claude Fable 5.2": { + "color": "#D62F26", + "lab": "Anthropic", + "release": "2026-11-09" + }, + "Claude Opus 5.5": { + "color": "#F08A12", + "lab": "Anthropic", + "release": "2026-09-22" + }, + "GPT-6.1 Sol": { + "color": "#5FB3E6", + "lab": "OpenAI", + "release": "2026-09-29" + }, + "GPT-6 Astra": { + "color": "#1D4FC4", + "lab": "OpenAI", + "release": "2026-09-04" + }, + "Gemini 4 Carbon": { + "color": "#146B34", + "lab": "Google", + "release": "2026-11-10" + }, + "Gemini 4 Argon": { + "color": "#7FCF5A", + "lab": "Google", + "release": "2026-10-13" + }, + "Kimi K3.1 Pro": { + "color": "#7B3FC4", + "lab": "Moonshot", + "release": "2026-10-23" + }, + "Muse Wonder 1.0": { + "color": "#959595", + "lab": "Meta", + "release": "2026-10-12" + }, + "Grok 4.7": { + "color": "#111111", + "lab": "xAI", + "release": "2026-09-21" + }, + "GPT-6.2 Sol": { + "color": "#2BB3B1", + "lab": "OpenAI", + "release": "2026-11-17" + }, + "GPT-6.2 Astra": { + "color": "#23308F", + "lab": "OpenAI", + "release": "2026-11-17" + }, + "Gemini 4 Neon": { + "color": "#E8C21E", + "lab": "Google", + "release": "2026-11-18" + }, + "Inkling 2 Small": { + "color": "#D9548A", + "lab": "Thinking Machines", + "release": "2026-11-05" + } + }, + "stats": { + "tasks": 27, + "agent_trials": 1404, + "agent_hours": 3753, + "models": 13 + } +}; diff --git a/backend/tests/evaluation/fixtures/rsi_inference_leaderboard.html b/backend/tests/evaluation/fixtures/rsi_inference_leaderboard.html new file mode 100644 index 000000000..7f371e986 --- /dev/null +++ b/backend/tests/evaluation/fixtures/rsi_inference_leaderboard.html @@ -0,0 +1,3 @@ +RSI-Inference Bench leaderboard
+ + diff --git a/backend/tests/evaluation/fixtures/rsi_infra_leaderboard.html b/backend/tests/evaluation/fixtures/rsi_infra_leaderboard.html new file mode 100644 index 000000000..d180d7ef7 --- /dev/null +++ b/backend/tests/evaluation/fixtures/rsi_infra_leaderboard.html @@ -0,0 +1 @@ +Leaderboard · RSI-Infra Bench
#Model · harnessScoreLLaVAYOCONanoChatBAGEL SFTR33DGSSlime GRPOSlime OPD
1Gemini 4 NeonGemini 4 NeonAntigravity CLIGoogle43.223.12×2.30×1.26×2.50×2.19×4.23×2.88×1.95×
2Claude Opus 5.5Opus 5.5Claude CodeAnthropic · 1M40.002.92×2.68×1.20×2.20×2.41×5.82×2.35×1.64×
3Claude Sonnet 5.5Sonnet 5.5Claude CodeAnthropic · 1M36.472.80×2.26×1.21×2.21×1.96×4.44×2.40×1.76×
4Gemini 4 HydrogenGemini 4 HydrogenAntigravity CLIGoogle31.932.97×2.61×1.22×1.97×2.10×3.57×2.20×1.10×
5Gemini 4 CarbonGemini 4 CarbonAntigravity CLIGoogle31.862.99×2.22×1.19×2.14×1.97×3.12×2.19×1.50×
6GPT-6.2 AstraGPT-6.2 AstraCodexOpenAI · 272k28.352.74×2.01×1.17×1.84×1.77×3.58×2.15×1.46×
7GPT-6.2 SolGPT-6.2 SolCodexOpenAI · 272k22.132.59×1.86×1.10×1.86×1.59×2.35×1.85×1.37×
8MiniMax M3.1 FlashMiniMax M3.1 FlashCodexMiniMax · 272k20.702.34×1.59×1.13×1.49×1.62×2.54×1.91×1.40×
9Claude Haiku 5.5Haiku 5.5Claude CodeAnthropic · 1M19.682.46×1.70×1.08×1.60×1.64×2.35×1.85×1.23×
10Qwen4-MaxQwen4-MaxQwen CodeAlibaba · 256k15.272.20×1.57×1.04×1.22×1.57×1.60×2.02×1.40×
11Step-5 PreviewStep-5 PreviewClaude CodeStepFun · 1M14.662.42×1.47×1.08×1.56×1.12×1.59×1.67×1.33×
12GPT-6 AstraGPT-6 Astrasuspected nerfCodexOpenAI · 272k14.491.41×1.79×1.13×1.62×1.47×2.04×1.15×1.30×
13GLM-5.3GLM-5.3Claude CodeZhipu AI · 256k13.761.52×1.60×1.05×1.49×1.45×1.76×1.79×1.46×
14DeepSeek V4.1 Flash-1017DeepSeek V4.1 Flash-1017DSHDeepSeek · 1M13.562.22×1.55×1.06×1.15×1.19×1.71×1.88×1.43×
15Kimi k3.1-proKimi k3.1-proClaude CodeMoonshot AI · 256k10.001.38×1.37×1.03×1.42×1.41×1.68×1.35×1.59×
16Hy4Hy4CodexTencent · 272k3.101.31×1.46×1.04×1.06×1.12×1.51×1.23×1.07×

GPT-6 Astra is marked “suspected nerf”: late in testing it felt different from how it did at the start, so we suspect it has been downgraded.

Qwen4-Max and Hy4 were judged by the released judge (the bench branch), on another set of 8-GPU Hopper machines; the other models by the leaderboard’s own judges.

RSI-Infra Bench · data as of 2026-11-23 17:13 (UTC+8)
diff --git a/backend/tests/evaluation/test_carbon_board_syncs.py b/backend/tests/evaluation/test_carbon_board_syncs.py index f6b7a9a0a..90c0f979e 100644 --- a/backend/tests/evaluation/test_carbon_board_syncs.py +++ b/backend/tests/evaluation/test_carbon_board_syncs.py @@ -382,6 +382,8 @@ def test_every_board_has_identities_and_a_configured_fetcher(): "sync_swe_marathon", "sync_jevbench", "sync_rsi_exam", + "sync_frontier_rsi", + "sync_rsi_infra", } for job, sync in boards.BOARD_SYNCS.items(): assert len(sync.board.identities) >= sync.board.min_selected @@ -391,6 +393,8 @@ def test_every_board_has_identities_and_a_configured_fetcher(): "sync_swe_marathon", "sync_jevbench", "sync_rsi_exam", + "sync_frontier_rsi", + "sync_rsi_infra", ): assert sync.board.identities is IDENTITIES[sync.board.dataset_slug] diff --git a/backend/tests/evaluation/test_frontier_rsi_sync.py b/backend/tests/evaluation/test_frontier_rsi_sync.py new file mode 100644 index 000000000..7702b3937 --- /dev/null +++ b/backend/tests/evaluation/test_frontier_rsi_sync.py @@ -0,0 +1,217 @@ +"""Parsing and sync tests for the official FrontierRSI leaderboard.""" + +from decimal import Decimal +from pathlib import Path + +import httpx +import pytest +from sqlalchemy import BigInteger, create_engine +from sqlalchemy.dialects.postgresql import ARRAY, JSONB, TSVECTOR +from sqlalchemy.ext.compiler import compiles +from sqlalchemy.orm import Session + +from backend.models.database import ( + Base, + Dataset, + Evaluation, + HfArtifact, + Metric, + ModelProviderAlias, + ModelRelease, + ModelReleaseArtifact, + ModelReleaseSignal, + Paper, + PaperHfArtifact, + PaperTask, + Task, + TaskDataset, + TaskDatasetMetric, +) +from backend.services import frontier_rsi_sync_service as service +from backend.services.carbon_board_syncs import BOARD_SYNCS +from backend.services.frontier_rsi_sync_service import ( + BOARD, + FRONTIER_RSI_DATA_URL, + METRIC_NAME, + MODEL_IDENTITIES, + fetch_frontier_rsi, + parse_frontier_rsi, +) +from backend.services.live_leaderboard_sync import LiveLeaderboardSyncService + + +@compiles(BigInteger, "sqlite") +def _compile_bigint_sqlite(_element, _compiler, **_kw): + return "INTEGER" + + +@compiles(ARRAY, "sqlite") +@compiles(JSONB, "sqlite") +@compiles(TSVECTOR, "sqlite") +def _compile_postgres_types_sqlite(_element, _compiler, **_kw): + return "JSON" + + +TASK_ID = 862 +TABLES = [ + Paper.__table__, + Task.__table__, + Dataset.__table__, + Metric.__table__, + TaskDataset.__table__, + TaskDatasetMetric.__table__, + Evaluation.__table__, + PaperTask.__table__, + HfArtifact.__table__, + PaperHfArtifact.__table__, + ModelRelease.__table__, + ModelReleaseArtifact.__table__, + ModelProviderAlias.__table__, + ModelReleaseSignal.__table__, +] + + +def _session(boards, identities) -> Session: + engine = create_engine("sqlite:///:memory:") + Base.metadata.create_all(engine, tables=TABLES) + session = Session(engine) + session.add(Task(id=TASK_ID, name="Auto-Research", slug="auto-research")) + metrics: dict[str, int] = {} + for offset, board in enumerate(boards): + dataset_id = 9100 + offset + session.add(Dataset(id=dataset_id, name=board.source, slug=board.dataset_slug)) + if board.metric not in metrics: + metrics[board.metric] = 500 + len(metrics) + session.add( + Metric( + id=metrics[board.metric], + name=board.metric, + direction="higher_is_better", + ) + ) + session.add( + TaskDataset(task_id=TASK_ID, dataset_id=dataset_id, supports_harness=True) + ) + session.add( + TaskDatasetMetric( + task_id=TASK_ID, dataset_id=dataset_id, metric_id=metrics[board.metric] + ) + ) + for index, key in enumerate(sorted({i.paper_key for i in identities.values()})): + arxiv = not key.startswith("https://") + session.add( + Paper( + id=1000 + index, + title=key, + arxiv_id=key if arxiv else None, + source="arxiv" if arxiv else "external", + source_url=None if arxiv else key, + version="v1", + is_latest_version=True, + ) + ) + session.commit() + return session + + +def _rows(session: Session, slug: str) -> dict[str, Evaluation]: + dataset = session.query(Dataset).filter(Dataset.slug == slug).one() + return { + row.model_name: row + for row in session.query(Evaluation) + .filter(Evaluation.dataset_id == dataset.id) + .all() + } + + +def _replace(old: str, new: str, text: str) -> str: + assert old in text + return text.replace(old, new, 1) + + +FIXTURE_TEXT = (Path(__file__).parent / "fixtures" / "frontier_rsi_data.js").read_text() + + +def test_parse_ranks_models_like_the_site(): + entries = parse_frontier_rsi(FIXTURE_TEXT) + assert len(entries) == 13 + first = entries[0] + assert (first.name, first.value, first.harness, first.lab) == ( + "Gemini 4 Neon", + Decimal("35.22"), + "Antigravity CLI", + "Google", + ) + assert first.detail == ( + "rank 1 of 13, score 35.22% (avg@4 over 27 tasks), run in Antigravity " + "CLI at xhigh effort" + ) + by_name = {entry.name: entry for entry in entries} + assert by_name["Claude Opus 5.5"].value == Decimal("32.63") + assert by_name["Inkling 2 Small"].harness == "mini-SWE-agent" + assert set(by_name) == set(MODEL_IDENTITIES) + values = [entry.value for entry in entries] + assert values == sorted(values, reverse=True) + + +def test_fetch_reads_data_js(): + def handler(request): + assert str(request.url) == FRONTIER_RSI_DATA_URL + return httpx.Response(200, text=FIXTURE_TEXT) + + client = httpx.Client(transport=httpx.MockTransport(handler)) + assert fetch_frontier_rsi(client) == parse_frontier_rsi(FIXTURE_TEXT) + assert BOARD_SYNCS["sync_frontier_rsi"].board is BOARD + + +@pytest.mark.parametrize( + ("text", "message"), + [ + ("", "no longer defines"), + (_replace('"id": "kernels"', '"id": "agents"', FIXTURE_TEXT), "categories"), + ( + _replace('"category": "pretrain"', '"category": "agents"', FIXTURE_TEXT), + "no category", + ), + ( + _replace('"harness": "Codex"', '"harness": "OpenHands"', FIXTURE_TEXT), + "not reviewed", + ), + (_replace('"effort": "max"', '"effort": "high"', FIXTURE_TEXT), "two setups"), + (_replace('"avg": 0.75', '"avg": 1.75', FIXTURE_TEXT), "out of range"), + ( + _replace( + '"model": "Gemini 4 Neon"', '"model": "GPT-6.2 Sol"', FIXTURE_TEXT + ), + "twice", + ), + ], + ids=lambda value: value if len(value) < 40 else "", +) +def test_parser_fails_loudly_on_task_set_or_layout_changes(text, message): + with pytest.raises(ValueError, match=message): + parse_frontier_rsi(text) + + +def test_parser_pins_the_task_count(monkeypatch): + monkeypatch.setattr(service, "TASK_COUNT", 28) + with pytest.raises(ValueError, match="lists 27 tasks"): + parse_frontier_rsi(FIXTURE_TEXT) + + +def test_first_run_publishes_every_reviewed_row(): + session = _session([BOARD], MODEL_IDENTITIES) + stats = LiveLeaderboardSyncService(session, BOARD).sync( + parse_frontier_rsi(FIXTURE_TEXT) + ) + assert (stats.fetched, stats.created, stats.unreviewed) == (13, 13, []) + rows = _rows(session, BOARD.dataset_slug) + assert rows["Gemini 4 Neon"].best_rank == 1 + assert rows["Gemini 4 Neon"].metrics == {METRIC_NAME: 35.22} + assert rows["Inkling-2-Small"].is_open + assert rows["GPT-6.2 Sol"].paper_id == rows["GPT-6.2 Astra"].paper_id + assert BOARD.managed_head.match(rows["Claude Opus 5.5"].methodology) + again = LiveLeaderboardSyncService(session, BOARD).sync( + parse_frontier_rsi(FIXTURE_TEXT) + ) + assert (again.created, again.changed, again.adopted) == (0, 0, 0) diff --git a/backend/tests/evaluation/test_frontiercs_2_sync.py b/backend/tests/evaluation/test_frontiercs_2_sync.py index d2adfb9f9..85c1b5d7c 100644 --- a/backend/tests/evaluation/test_frontiercs_2_sync.py +++ b/backend/tests/evaluation/test_frontiercs_2_sync.py @@ -61,7 +61,7 @@ def _compile_postgres_types_sqlite(_element, _compiler, **_kw): SOURCE_PATH = Path(__file__).parent / "fixtures" / "frontiercs_2_data.js" SOURCE = SOURCE_PATH.read_text() -TASK_ID = 15 +TASK_ID = 862 DATASET_ID = 3096 @@ -95,7 +95,7 @@ def _session() -> Session: ], ) session = Session(engine) - session.add(Task(id=TASK_ID, name="Coding Agents", slug="coding-agents")) + session.add(Task(id=TASK_ID, name="Auto-Research", slug="auto-research")) session.add(Dataset(id=DATASET_ID, name="FrontierCS 2", slug="frontiercs-2")) session.add(Metric(id=250, name=PASS_RATE, direction="higher_is_better")) session.add(Metric(id=251, name=FCI, direction="higher_is_better")) diff --git a/backend/tests/evaluation/test_rsi_inference_sync.py b/backend/tests/evaluation/test_rsi_inference_sync.py new file mode 100644 index 000000000..4e9dd2e33 --- /dev/null +++ b/backend/tests/evaluation/test_rsi_inference_sync.py @@ -0,0 +1,224 @@ +"""Parsing and sync tests for the official RSI-Inference Bench leaderboard.""" + +import json + +from decimal import Decimal +from pathlib import Path + +import httpx +import pytest +from sqlalchemy import BigInteger, create_engine +from sqlalchemy.dialects.postgresql import ARRAY, JSONB, TSVECTOR +from sqlalchemy.ext.compiler import compiles +from sqlalchemy.orm import Session + +from backend.models.database import ( + Base, + Dataset, + Evaluation, + HfArtifact, + Metric, + ModelProviderAlias, + ModelRelease, + ModelReleaseArtifact, + ModelReleaseSignal, + Paper, + PaperHfArtifact, + PaperTask, + Task, + TaskDataset, + TaskDatasetMetric, +) +from backend.services import rsi_inference_sync_service as service +from backend.services.live_leaderboard_sync import LiveLeaderboardSyncService +from backend.services.rsi_inference_sync_service import ( + BOARDS, + MODEL_IDENTITIES, + MODEL_SUPPORT_BOARD, + OPTIMIZATION_BOARD, + RATING_BOARD, + RSI_INFERENCE_DATA_URL, + fetch_rsi_inference_boards, + parse_rsi_inference, +) + + +@compiles(BigInteger, "sqlite") +def _compile_bigint_sqlite(_element, _compiler, **_kw): + return "INTEGER" + + +@compiles(ARRAY, "sqlite") +@compiles(JSONB, "sqlite") +@compiles(TSVECTOR, "sqlite") +def _compile_postgres_types_sqlite(_element, _compiler, **_kw): + return "JSON" + + +TASK_ID = 862 +TABLES = [ + Paper.__table__, + Task.__table__, + Dataset.__table__, + Metric.__table__, + TaskDataset.__table__, + TaskDatasetMetric.__table__, + Evaluation.__table__, + PaperTask.__table__, + HfArtifact.__table__, + PaperHfArtifact.__table__, + ModelRelease.__table__, + ModelReleaseArtifact.__table__, + ModelProviderAlias.__table__, + ModelReleaseSignal.__table__, +] + + +def _session(boards, identities) -> Session: + engine = create_engine("sqlite:///:memory:") + Base.metadata.create_all(engine, tables=TABLES) + session = Session(engine) + session.add(Task(id=TASK_ID, name="Auto-Research", slug="auto-research")) + metrics: dict[str, int] = {} + for offset, board in enumerate(boards): + dataset_id = 9100 + offset + session.add(Dataset(id=dataset_id, name=board.source, slug=board.dataset_slug)) + if board.metric not in metrics: + metrics[board.metric] = 500 + len(metrics) + session.add( + Metric( + id=metrics[board.metric], + name=board.metric, + direction="higher_is_better", + ) + ) + session.add( + TaskDataset(task_id=TASK_ID, dataset_id=dataset_id, supports_harness=True) + ) + session.add( + TaskDatasetMetric( + task_id=TASK_ID, dataset_id=dataset_id, metric_id=metrics[board.metric] + ) + ) + for index, key in enumerate(sorted({i.paper_key for i in identities.values()})): + arxiv = not key.startswith("https://") + session.add( + Paper( + id=1000 + index, + title=key, + arxiv_id=key if arxiv else None, + source="arxiv" if arxiv else "external", + source_url=None if arxiv else key, + version="v1", + is_latest_version=True, + ) + ) + session.commit() + return session + + +def _rows(session: Session, slug: str) -> dict[str, Evaluation]: + dataset = session.query(Dataset).filter(Dataset.slug == slug).one() + return { + row.model_name: row + for row in session.query(Evaluation) + .filter(Evaluation.dataset_id == dataset.id) + .all() + } + + +def _replace(old: str, new: str, text: str) -> str: + assert old in text + return text.replace(old, new, 1) + + +FIXTURE_TEXT = ( + Path(__file__).parent / "fixtures" / "rsi_inference_leaderboard.html" +).read_text() +_PREFIX, _, _REST = FIXTURE_TEXT.partition("window.RSI_LEADERBOARD=") +_BLOB, _, _SUFFIX = _REST.partition(";") +FIXTURE_DATA = json.loads(_BLOB) + + +def _with(mutate) -> str: + data = json.loads(_BLOB) + mutate(data) + return f"{_PREFIX}window.RSI_LEADERBOARD={json.dumps(data)};{_SUFFIX}" + + +def test_parse_reads_three_boards_in_official_order(): + boards = parse_rsi_inference(FIXTURE_TEXT) + assert [board for board, _ in boards] == list(BOARDS) + rating, support, optimization = (entries for _, entries in boards) + assert len(rating) == len(support) == len(optimization) == 15 + first = rating[0] + assert (first.name, first.value, first.harness, first.lab) == ( + "Sonnet-5.5", + Decimal("2043.92"), + None, + "Anthropic", + ) + assert first.detail == "rank 1 of 15 on the joint board, rating 2043.92" + assert support[0].value == Decimal("26.67") + assert {e.name: e.value for e in optimization}["GLM-5.3"] == Decimal("1.2189") + assert {e.name for e in rating} == set(MODEL_IDENTITIES) + + +def test_fetch_reads_the_raw_repository_page(): + def handler(request): + assert str(request.url) == RSI_INFERENCE_DATA_URL + return httpx.Response(200, text=FIXTURE_TEXT) + + client = httpx.Client(transport=httpx.MockTransport(handler)) + assert fetch_rsi_inference_boards(client) == parse_rsi_inference(FIXTURE_TEXT) + + +def test_incomplete_rows_are_skipped(): + text = _with(lambda data: data["joint"][0].update(complete=False)) + rating = parse_rsi_inference(text)[0][1] + assert "Sonnet-5.5" not in {entry.name for entry in rating} + + +@pytest.mark.parametrize( + ("mutate", "message"), + [ + (lambda d: d.update(schema="rsi-inference-leaderboard/2"), "schema changed"), + (lambda d: d["rating"].update(method="bt-elo-v3"), "rating method"), + (lambda d: d["release"].update(tasks=40), "release has 40 tasks"), + (lambda d: d["tracks"][0].update(tasks_released=12), "tracks changed"), + (lambda d: d["joint"][1].update(rank=3), "joint rank 3 at row 2"), + (lambda d: d["joint"][1].update(rating=2100), "out of rank order"), + (lambda d: d["optimization"][0].update(speedup="fast"), "malformed"), + (lambda d: d["model_support"][1].update(agent="Sonnet-5.5"), "twice"), + ], +) +def test_parser_fails_loudly_on_rating_release_or_layout_changes(mutate, message): + with pytest.raises(ValueError, match=message): + parse_rsi_inference(_with(mutate)) + + +def test_parser_enforces_entry_bounds(monkeypatch): + monkeypatch.setattr(service, "MIN_EXPECTED_ENTRIES", 16) + with pytest.raises(ValueError, match="has 15 entries"): + parse_rsi_inference(FIXTURE_TEXT) + + +def test_first_run_publishes_each_board_on_its_own_benchmark(): + session = _session(BOARDS, MODEL_IDENTITIES) + for board, entries in parse_rsi_inference(FIXTURE_TEXT): + stats = LiveLeaderboardSyncService(session, board).sync(entries) + assert (stats.created, stats.unreviewed) == (15, []) + rating = _rows(session, RATING_BOARD.dataset_slug) + assert rating["Claude Sonnet 5.5"].metrics == {"Elo": 2043.92} + assert rating["Claude Sonnet 5.5"].best_rank == 1 + support = _rows(session, MODEL_SUPPORT_BOARD.dataset_slug) + assert support["Claude Sonnet 5.5"].metrics == {"Pass@1": 26.67} + optimization = _rows(session, OPTIMIZATION_BOARD.dataset_slug) + assert optimization["Claude Opus 4.8"].metrics == {"Speedup": 1.1394} + assert ( + rating["DeepSeek-V4.1-Flash"].paper_id + == rating["DeepSeek-V4.1-Flash-1017"].paper_id + ) + for board, entries in parse_rsi_inference(FIXTURE_TEXT): + again = LiveLeaderboardSyncService(session, board).sync(entries) + assert (again.created, again.changed, again.adopted) == (0, 0, 0) diff --git a/backend/tests/evaluation/test_rsi_infra_sync.py b/backend/tests/evaluation/test_rsi_infra_sync.py new file mode 100644 index 000000000..c10d81190 --- /dev/null +++ b/backend/tests/evaluation/test_rsi_infra_sync.py @@ -0,0 +1,217 @@ +"""Parsing and sync tests for the official RSI-Infra Bench leaderboard.""" + +from decimal import Decimal +from pathlib import Path + +import httpx +import pytest +from sqlalchemy import BigInteger, create_engine +from sqlalchemy.dialects.postgresql import ARRAY, JSONB, TSVECTOR +from sqlalchemy.ext.compiler import compiles +from sqlalchemy.orm import Session + +from backend.models.database import ( + Base, + Dataset, + Evaluation, + HfArtifact, + Metric, + ModelProviderAlias, + ModelRelease, + ModelReleaseArtifact, + ModelReleaseSignal, + Paper, + PaperHfArtifact, + PaperTask, + Task, + TaskDataset, + TaskDatasetMetric, +) +from backend.services import rsi_infra_sync_service as service +from backend.services.carbon_board_syncs import BOARD_SYNCS +from backend.services.live_leaderboard_sync import LiveLeaderboardSyncService +from backend.services.rsi_infra_sync_service import ( + BOARD, + METRIC_NAME, + MODEL_IDENTITIES, + RSI_INFRA_URL, + fetch_rsi_infra, + parse_rsi_infra, +) + + +@compiles(BigInteger, "sqlite") +def _compile_bigint_sqlite(_element, _compiler, **_kw): + return "INTEGER" + + +@compiles(ARRAY, "sqlite") +@compiles(JSONB, "sqlite") +@compiles(TSVECTOR, "sqlite") +def _compile_postgres_types_sqlite(_element, _compiler, **_kw): + return "JSON" + + +TASK_ID = 862 +TABLES = [ + Paper.__table__, + Task.__table__, + Dataset.__table__, + Metric.__table__, + TaskDataset.__table__, + TaskDatasetMetric.__table__, + Evaluation.__table__, + PaperTask.__table__, + HfArtifact.__table__, + PaperHfArtifact.__table__, + ModelRelease.__table__, + ModelReleaseArtifact.__table__, + ModelProviderAlias.__table__, + ModelReleaseSignal.__table__, +] + + +def _session(boards, identities) -> Session: + engine = create_engine("sqlite:///:memory:") + Base.metadata.create_all(engine, tables=TABLES) + session = Session(engine) + session.add(Task(id=TASK_ID, name="Auto-Research", slug="auto-research")) + metrics: dict[str, int] = {} + for offset, board in enumerate(boards): + dataset_id = 9100 + offset + session.add(Dataset(id=dataset_id, name=board.source, slug=board.dataset_slug)) + if board.metric not in metrics: + metrics[board.metric] = 500 + len(metrics) + session.add( + Metric( + id=metrics[board.metric], + name=board.metric, + direction="higher_is_better", + ) + ) + session.add( + TaskDataset(task_id=TASK_ID, dataset_id=dataset_id, supports_harness=True) + ) + session.add( + TaskDatasetMetric( + task_id=TASK_ID, dataset_id=dataset_id, metric_id=metrics[board.metric] + ) + ) + for index, key in enumerate(sorted({i.paper_key for i in identities.values()})): + arxiv = not key.startswith("https://") + session.add( + Paper( + id=1000 + index, + title=key, + arxiv_id=key if arxiv else None, + source="arxiv" if arxiv else "external", + source_url=None if arxiv else key, + version="v1", + is_latest_version=True, + ) + ) + session.commit() + return session + + +def _rows(session: Session, slug: str) -> dict[str, Evaluation]: + dataset = session.query(Dataset).filter(Dataset.slug == slug).one() + return { + row.model_name: row + for row in session.query(Evaluation) + .filter(Evaluation.dataset_id == dataset.id) + .all() + } + + +def _replace(old: str, new: str, text: str) -> str: + assert old in text + return text.replace(old, new, 1) + + +FIXTURE_TEXT = ( + Path(__file__).parent / "fixtures" / "rsi_infra_leaderboard.html" +).read_text() + + +def test_parse_reads_the_table_in_official_order(): + entries = parse_rsi_infra(FIXTURE_TEXT) + assert len(entries) == 16 + first = entries[0] + assert (first.name, first.value, first.harness, first.lab) == ( + "Gemini 4 Neon", + Decimal("43.22"), + "Antigravity CLI", + "Google", + ) + assert first.detail == ( + "rank 1 of 16, score 43.22, run in Antigravity CLI; per-task speed-ups " + "LLaVA 3.12x, YOCO 2.30x, NanoChat 1.26x, BAGEL SFT 2.50x, R3 2.19x, " + "3DGS 4.23x, Slime GRPO 2.88x, Slime OPD 1.95x" + ) + by_name = {entry.name: entry for entry in entries} + assert by_name["DeepSeek V4.1 Flash-1017"].harness == "DeepSeek Harness" + assert by_name["GPT-6 Astra"].detail.endswith( + "marked 'suspected nerf' on the board" + ) + assert "released judge" in by_name["Hy4"].detail + assert "released judge" in by_name["Qwen4-Max"].detail + assert "released judge" not in by_name["GLM-5.3"].detail + assert set(by_name) == set(MODEL_IDENTITIES) + + +def test_fetch_reads_the_leaderboard_page(): + def handler(request): + assert str(request.url) == RSI_INFRA_URL + return httpx.Response(200, text=FIXTURE_TEXT) + + client = httpx.Client(transport=httpx.MockTransport(handler)) + assert fetch_rsi_infra(client) == parse_rsi_infra(FIXTURE_TEXT) + assert BOARD_SYNCS["sync_rsi_infra"].board is BOARD + + +@pytest.mark.parametrize( + ("old", "new", "message"), + [ + ("RSI-Infra Bench", "Other Bench", "no longer names"), + ("", "
", "table not found"), + ("R3", "R4", "tasks changed"), + (">2", ">", "rank '' at row 2"), + ("Codex", "Cursor", "not reviewed"), + ("43.22<", "n/a<", "malformed"), + ("36.47<", "41.47<", "out of rank order"), + ("40.00<", "40.01<", "anchor Claude Opus"), + ( + "Kimi k3.1-pro<", + "Kimi K3.1<", + "anchors missing", + ), + (">3.12", ">-", "7 task speed-ups"), + ], +) +def test_parser_fails_loudly_on_task_anchor_or_layout_changes(old, new, message): + with pytest.raises(ValueError, match=message): + parse_rsi_infra(_replace(old, new, FIXTURE_TEXT)) + + +def test_parser_enforces_entry_bounds(monkeypatch): + monkeypatch.setattr(service, "MIN_EXPECTED_ENTRIES", 17) + with pytest.raises(ValueError, match="has 16 entries"): + parse_rsi_infra(FIXTURE_TEXT) + + +def test_first_run_publishes_every_reviewed_row(): + session = _session([BOARD], MODEL_IDENTITIES) + stats = LiveLeaderboardSyncService(session, BOARD).sync( + parse_rsi_infra(FIXTURE_TEXT) + ) + assert (stats.fetched, stats.created, stats.unreviewed) == (16, 16, []) + rows = _rows(session, BOARD.dataset_slug) + assert rows["Gemini 4 Neon"].best_rank == 1 + assert rows["Claude Opus 5.5"].metrics == {METRIC_NAME: 40.0} + assert rows["Kimi K3.1 Pro"].is_open and rows["Hy4"].is_open + assert rows["DeepSeek-V4.1-Flash-1017"].harness == "DeepSeek Harness" + again = LiveLeaderboardSyncService(session, BOARD).sync( + parse_rsi_infra(FIXTURE_TEXT) + ) + assert (again.created, again.changed, again.adopted) == (0, 0, 0) diff --git a/deploy/cron_launcher.py b/deploy/cron_launcher.py index 6a805edd6..714eeadc2 100755 --- a/deploy/cron_launcher.py +++ b/deploy/cron_launcher.py @@ -471,6 +471,34 @@ def lock_name(job: str, spec: Job, extra: list[str]) -> str: "validated rsi-exam.ai Full board; never creates papers" ), ), + "sync_frontier_rsi": job( + "-m", + "scripts.hourly.sync_frontier_rsi", + timeout="30m", + idempotency=( + "create or revise reviewed FrontierRSI evaluation rows from " + "the validated frontier-rsi.org data.js; never creates papers" + ), + ), + "sync_rsi_inference": job( + "-m", + "scripts.hourly.sync_rsi_inference", + timeout="30m", + idempotency=( + "create or revise reviewed RSI-Inference Bench evaluation " + "rows on three boards from the validated " + "docs/leaderboard.html data; never creates papers" + ), + ), + "sync_rsi_infra": job( + "-m", + "scripts.hourly.sync_rsi_infra", + timeout="30m", + idempotency=( + "create or revise reviewed RSI-Infra Bench evaluation rows " + "from the validated leaderboard table; never creates papers" + ), + ), "sync_frontiercs_2": job( "-m", "scripts.hourly.sync_frontiercs_2", diff --git a/deploy/cron_schedules.py b/deploy/cron_schedules.py index 1caa513b9..93cc8ec24 100644 --- a/deploy/cron_schedules.py +++ b/deploy/cron_schedules.py @@ -282,6 +282,21 @@ def invocations(self) -> tuple[tuple[str, ...], ...]: on_calendar=("*-*-* *:49:00",), description="Sync RSI-Exam leaderboard from rsi-exam.ai hourly", ), + TimerSpec( + job="sync_frontier_rsi", + on_calendar=("*-*-* *:19:00",), + description="Sync FrontierRSI leaderboard from frontier-rsi.org hourly", + ), + TimerSpec( + job="sync_rsi_inference", + on_calendar=("*-*-* *:29:00",), + description="Sync RSI-Inference Bench leaderboards from the Apple ml-rsi-inference-bench repository hourly", + ), + TimerSpec( + job="sync_rsi_infra", + on_calendar=("*-*-* *:44:00",), + description="Sync RSI-Infra Bench leaderboard from ai4ai-for-anything.github.io hourly", + ), TimerSpec( job="sync_frontiercs_2", on_calendar=("*-*-* *:43:00",), diff --git a/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.service b/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.service new file mode 100644 index 000000000..c0ae5b215 --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.service @@ -0,0 +1,13 @@ +[Unit] +Description=Sync FrontierRSI leaderboard from frontier-rsi.org hourly +After=network-online.target postgresql@16-main.service +Wants=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/local/sbin/pwc-cron-throttled sync_frontier_rsi +NoNewPrivileges=true +PrivateTmp=true +ProtectHome=true +ProtectSystem=strict +ReadWritePaths=/run/paperswithcode/cron-slots diff --git a/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.timer b/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.timer new file mode 100644 index 000000000..6365abeb7 --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-frontier-rsi.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Timer: Sync FrontierRSI leaderboard from frontier-rsi.org hourly + +[Timer] +OnCalendar=*-*-* *:19:00 +RandomizedDelaySec=90 +AccuracySec=1m +Persistent=true +Unit=pwc-cron-sync-frontier-rsi.service + +[Install] +WantedBy=timers.target diff --git a/deploy/systemd/cron/pwc-cron-sync-rsi-inference.service b/deploy/systemd/cron/pwc-cron-sync-rsi-inference.service new file mode 100644 index 000000000..afc3cfacd --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-rsi-inference.service @@ -0,0 +1,13 @@ +[Unit] +Description=Sync RSI-Inference Bench leaderboards from the Apple ml-rsi-inference-bench repository hourly +After=network-online.target postgresql@16-main.service +Wants=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/local/sbin/pwc-cron-throttled sync_rsi_inference +NoNewPrivileges=true +PrivateTmp=true +ProtectHome=true +ProtectSystem=strict +ReadWritePaths=/run/paperswithcode/cron-slots diff --git a/deploy/systemd/cron/pwc-cron-sync-rsi-inference.timer b/deploy/systemd/cron/pwc-cron-sync-rsi-inference.timer new file mode 100644 index 000000000..8cca1ddad --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-rsi-inference.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Timer: Sync RSI-Inference Bench leaderboards from the Apple ml-rsi-inference-bench repository hourly + +[Timer] +OnCalendar=*-*-* *:29:00 +RandomizedDelaySec=90 +AccuracySec=1m +Persistent=true +Unit=pwc-cron-sync-rsi-inference.service + +[Install] +WantedBy=timers.target diff --git a/deploy/systemd/cron/pwc-cron-sync-rsi-infra.service b/deploy/systemd/cron/pwc-cron-sync-rsi-infra.service new file mode 100644 index 000000000..4e6fade62 --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-rsi-infra.service @@ -0,0 +1,13 @@ +[Unit] +Description=Sync RSI-Infra Bench leaderboard from ai4ai-for-anything.github.io hourly +After=network-online.target postgresql@16-main.service +Wants=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/local/sbin/pwc-cron-throttled sync_rsi_infra +NoNewPrivileges=true +PrivateTmp=true +ProtectHome=true +ProtectSystem=strict +ReadWritePaths=/run/paperswithcode/cron-slots diff --git a/deploy/systemd/cron/pwc-cron-sync-rsi-infra.timer b/deploy/systemd/cron/pwc-cron-sync-rsi-infra.timer new file mode 100644 index 000000000..13cea9c7d --- /dev/null +++ b/deploy/systemd/cron/pwc-cron-sync-rsi-infra.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Timer: Sync RSI-Infra Bench leaderboard from ai4ai-for-anything.github.io hourly + +[Timer] +OnCalendar=*-*-* *:44:00 +RandomizedDelaySec=90 +AccuracySec=1m +Persistent=true +Unit=pwc-cron-sync-rsi-infra.service + +[Install] +WantedBy=timers.target