Skip to content

Add IOI26 for evaluation - #3144

Merged
bxyu-nvidia merged 8 commits into
NVIDIA-NeMo:mainfrom
SeanNaren:ioi26
Sep 9, 2026
Merged

bxyu-nvidia merged 8 commits into
NVIDIA-NeMo:mainfrom
SeanNaren:ioi26

Conversation

@SeanNaren

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds IOI26 as an evaluation benchmark

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format/copyright pass).
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

Sources everything from the official task archive (github.com/ioi/task-archive)
rather than HuggingFace datasets, so `python benchmarks/ioi/prepare.py` is the
only step. It clones blobless+sparse, taking ~390 MB of test data and skipping
the other years, this year's translations and the reference solutions.

Statements are the markdown the setters embedded in each en.pdf as a file
attachment, extracted and verified against the size and MD5 the PDF records --
not a PDF-to-text conversion.

Each row targets one subtask by rewriting the statement's Constraints section,
matching how the published IOI'25 evaluation set is built: a contestant earns
partial credit by solving easy subtasks outright, and a benchmark that only
shows the general problem measures something narrower. magiccity is banded as
the statement bands it -- 8 rows, not 50 -- so the generation budget tracks its
100 points rather than its subtask count. 41 rows, 600 points.

Metadata is written in CCC's normalized shape (subtasks + all_tests). NeMo
Skills' evaluator requires it, Gym's accepts it directly, and deduplicating
tests shared between subtasks takes the file from 738 MB to 430 MB.

The compile harness is patched to -std=gnu++20: IOI'26 graded with C++20 while
the upstream scripts still say gnu++17, which would fail valid submissions.

Also emits a NeMo Skills dataset directory so the same artifacts drive
`ns eval --benchmarks ioi26`.

Signed-off-by: SeanNaren <[email protected]>
The IOI run harness reads graders/grader_config.json before every test and
aborts with 'grader_config.json not found' when it is absent. Compilation still
succeeds, so the failure is silent: the program is never executed and every test
scores zero regardless of the submission. A 200-seed sweep scored 0/600 across
129,400 tests with a 65% compile-success rate before this was spotted.

Built from the archive's problem.json, whose fields map directly onto what the
script greps for. BatchAndOutput is written as Batch because the harness only
branches on Batch and Communication, and none of 2026's subtasks are
output-only -- every one is scored by running the program.

Signed-off-by: SeanNaren <[email protected]>
Drop the setup, provenance and per-task notes from the README, the statement
extraction paragraph from prepare.py's docstring, and an unused defaultdict
import.

Signed-off-by: SeanNaren <[email protected]>
Signed-off-by: SeanNaren <[email protected]>
Every other recurring benchmark here lives as a year-versioned sibling --
aime24, aime24-x, aime25, aime25-x and aime26 all coexist, as do hmmt_feb25
and hmmt_nov25 -- and those siblings duplicate wholesale rather than sharing
code: aime24/prepare.py and aime25/prepare.py differ only in a docstring, an
output filename and a dataset id.

Overwriting made ioi the one benchmark in the tree that mutates in place, it
removed a working IOI'24 benchmark that published results may reference, and
it would force the same destructive choice again for IOI'27.

benchmarks/ioi is restored byte-identical to its pre-overwrite state. The
IOI'26 work moves to benchmarks/ioi26 with its config keys renamed so the two
do not collide. Both share the existing competitive_coding_challenges
resources server, so no new server is needed.

Signed-off-by: SeanNaren <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Sep 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

SeanNaren and others added 3 commits September 7, 2026 13:22
Drop the unused sys import left behind when prepare()'s exit-code wrapper was
removed, normalise docstring quoting, and reflow to the 119-column limit.

Signed-off-by: SeanNaren <[email protected]>
prepare.py runs in the gym CLI process, not a resources-server venv, so both
prerequisites have to be present in the caller's environment. Neither is
declared: pikepdf is undeclared like tiktoken and huggingface_hub already are,
and git is a system binary that pyproject cannot express at all.

Guard both so a missing prerequisite says what to install instead of raising
ModuleNotFoundError from an inner function or FileNotFoundError from
subprocess. Mirrors the guarded import in benchmarks/flores200/prepare.py.

Whether pikepdf should additionally be declared is left open: the dependencies
block asserts its contents are Apache 2.0, MIT and BSD 3-Clause, and pikepdf is
MPL-2.0.

Signed-off-by: SeanNaren <[email protected]>
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 8, 2026
@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Sep 8, 2026
@cmunley1

cmunley1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

did you ~reproduce official scores for any models?

@SeanNaren

Copy link
Copy Markdown
Contributor Author

did you ~reproduce official scores for any models?

Yes, I used the same setup/model as defined in https://arxiv.org/abs/2609.02849v1

Eventually we will release this model to the public, but I verified the scores for Table 4.

@anwithk anwithk added the benchmark-onboarding Self-contained benchmark onboarding label Sep 9, 2026
@bxyu-nvidia

Copy link
Copy Markdown
Contributor

/ok to test a55644d

@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 9, 2026
@yaoyu-33 yaoyu-33 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed needs-review PR is ready for code review and waiting on a reviewer labels Sep 9, 2026
@bxyu-nvidia
bxyu-nvidia merged commit 52557f8 into NVIDIA-NeMo:main Sep 9, 2026
75 of 82 checks passed
@SeanNaren
SeanNaren deleted the ioi26 branch September 10, 2026 11:11
jkyi-nvidia pushed a commit that referenced this pull request Sep 11, 2026
## What does this PR do?

Adds IOI26 as an evaluation benchmark

## Checklist

- [ ] I have read the [contributing
guidelines](https://docs.nvidia.com/nemo/gym/latest/contribute/development-setup).
- [ ] The change is focused; unrelated "drive-by" edits are tracked as
separate issues/PRs.
- [ ] Tests added or updated and pass locally, or N/A for docs-only /
non-code changes (so CI unit/server checks pass when applicable).
- [ ] Pre-commit checks pass locally (`pre-commit run --all-files`) (so
CI lint/format/copyright pass).
- [ ] All commits have DCO sign-off (`git commit -s`) (so the DCO check
passes).

---------

Signed-off-by: SeanNaren <[email protected]>
Signed-off-by: Junkeun Yi <[email protected]>

This branch was previously deployed

1 inactive deployment
public — a55644da Deployed Sep 9, 2026 by copy-pr-bot[bot] via release / finalize / notify #2728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers benchmark-onboarding Self-contained benchmark onboarding feature New capabilities, enhancements, or enablement work ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants