Skip to content

HF deploy mirrors the allowlist (removes 161 stale files incl. old answer keys); card generated from latest run - #56

Open
Tyronita wants to merge 4 commits into
mainfrom
hf/mirror-and-card
Open

Tyronita wants to merge 4 commits into
mainfrom
hf/mirror-and-card

Conversation

@Tyronita

@Tyronita Tyronita commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Yes, we deploy to Hugging Face on every push to main (deploy-hf in CI, after tests and image builds; last deploy today 16:18). Two problems with it:

  1. The Hub copy never deletes, so files from the old layout are still published: 108 tasks/harbor/…/tests/ files including reference solutions and rubrics, 41 third-party author scripts under ref/ (licences say not redistributable), plus paper/, ingestion/ and old eval/ files — 161 in all.
  2. The dataset card is stale: 4 Oct numbers for 3 models and 7 tasks, the old grading formula, and "Apache 2.0" in the body while the metadata and repo say MIT.

This PR

  • deploy_hf.py now mirrors the allowlist: after uploading, it deletes Hub files the deploy no longer publishes (.gitattributes kept). python scripts/deploy_hf.py --dry-run lists both sides: 259 published, 161 deleted.
  • The card's results table is generated at deploy time from the latest results/runs/ folder with the leaderboard's own code, so it can't drift. The card now states what is and isn't in the dataset, the current grading, and one licence (MIT).
  • Tests: Hub mirrors the allowlist; no task's tests/, solution/ or environment/ is staged; card has the latest results and one licence.

⚠️ Merging deletes those 161 files from the public dataset (in one Hub commit, recoverable from the dataset's git history).

🤖 Generated with Claude Code

Tyronita and others added 4 commits October 7, 2026 17:25
…the latest run

- deploy_hf.py deletes Hub files the allowlist no longer publishes (upload_folder only ever added). 161 are there now,
  all from the old layout: 108 tasks/harbor/ grader files including reference solutions and rubrics, 41 third-party
  author scripts under ref/ (not redistributable), paper/, ingestion/, old eval/ files. --dry-run lists them.
- The dataset card's results table is generated at deploy time from the latest results/runs/ folder, with the same
  code as the leaderboard (four models, three refusal rules, easy/hard, cost). The card's old 2026-10-04 numbers, the
  old grading formula and its Apache-2.0 licence line (the metadata and repo say MIT) are gone; it now says what is
  and is not in the dataset.
- tests/test_deploy.py: the Hub mirrors the allowlist, no task's tests/, solution/ or environment/ is staged, and the
  card carries the latest results and one licence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…SIONAL.json

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t scored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant