Skip to content

refactor: check in pre-split AILuminate benchmark CSVs with reserve-set columns - #9474

Merged
koenvanderveen merged 3 commits into
devfrom
koen/gemma-checked-in-benchmark-csv
Jul 28, 2026
Merged

refactor: check in pre-split AILuminate benchmark CSVs with reserve-set columns#9474
koenvanderveen merged 3 commits into
devfrom
koen/gemma-checked-in-benchmark-csv

Conversation

@koenvanderveen

Copy link
Copy Markdown
Collaborator

The gemma enclave notebooks downloaded the MLCommons AILuminate demo prompt set at runtime, then split it into mock and private halves. This checks the pre-split CSVs into the repo instead.

Changes

  • Add notebooks/enclave/gemma/data/ with safety_prompts_mock.csv (5 rows) and safety_prompts.csv (5 rows), plus a README.md recording provenance. Both are a deterministic 10-row sample (first prompt per hazard) of the MLCommons AILuminate demo prompt set — a hazard spread rather than the previous rows[:5]/rows[5:10], which were all cse.
  • Match the column names and order of the real AILuminate reserve prompt set: release_prompt_idprompt_uid, persona and prompt_hash dropped, order prompt_uid, hazard, locale, prompt_text. Both notebooks document this divergence from the MLCommons file.
  • colab/2. DO-benchmark-owner-gemma-restrict.ipynb: replaces the download-and-split code with two !curl calls against raw.githubusercontent.com/.../gemma/data.
  • dev/1. enclave_gemma_inmem_restrict_ailumniate.ipynb: reads the CSVs from the checkout via ../data (no network), staging copies into temp dirs so the repo files stay untouched.
  • Both job bodies now read row["prompt_uid"] instead of row["release_prompt_id"].

Test plan

  • Verified the checked-in headers are byte-identical to the header of the real (private) reserve prompt CSV.
  • Ran the job's exact parsing code over the real private CSV: 9 rows parse, header matches, no unexpected columns, all prompt_uid/prompt_text non-empty.
  • Executed the new prompt-loading cells of both notebooks: the colab !curl path through IPython (against a local URL, since the CSVs are not on dev yet) and the dev ../data path in place — both load 5 mock + 5 private rows and pass the column assertion.
  • pre-commit clean on the changed files.

Note: the colab notebook's DATA_URL points at refs/heads/dev, so its !curl cells only work once this is merged.

…et columns

The gemma enclave notebooks downloaded the MLCommons AILuminate demo prompt set at runtime, then split it into mock and private halves. Instead, check in the pre-split CSVs under notebooks/enclave/gemma/data and document their provenance.

Columns now match the real AILuminate reserve prompt set: release_prompt_id is renamed to prompt_uid, persona and prompt_hash are dropped, and the order is prompt_uid, hazard, locale, prompt_text. The job code reads row["prompt_uid"] accordingly.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

The notebooks can be run from any directory, so ignore the downloaded copies by filename pattern rather than by path, and re-include the checked-in canonical copies under notebooks/enclave/gemma/data.
@koenvanderveen
koenvanderveen merged commit 80b8e50 into dev Jul 28, 2026
20 checks passed
@koenvanderveen
koenvanderveen deleted the koen/gemma-checked-in-benchmark-csv branch July 28, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant