Repository navigation
Add IOI26 for evaluation - #3144
Merged
Merged
Conversation
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]>
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]>
This was referenced Sep 8, 2026
Contributor
|
did you ~reproduce official scores for any models? |
Contributor
Author
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. |
bxyu-nvidia
approved these changes
Sep 9, 2026
Contributor
|
/ok to test a55644d |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds IOI26 as an evaluation benchmark
Checklist
pre-commit run --all-files) (so CI lint/format/copyright pass).git commit -s) (so the DCO check passes).