Repository navigation
AIME as a benchmark in Hermit's own environment - #130
Open
ruiling-smartbear wants to merge 3 commits into
Open
ruiling-smartbear wants to merge 3 commits into
ruiling-smartbear wants to merge 3 commits into
Conversation
MathArena's AIME 2025 and AIME 2026, with its prompt, as task directories: the acting CLI in a bubblewrap sandbox with
no network but its model's, the last \boxed{} judged on the host by Math-Verify (examples/math_grading/). A no-adapter
baseline for Codex and Claude Code, four attempts a problem; AIME 2024 split for a method that learns.
This was referenced Nov 26, 2026
…ixes
- Math-Verify compares in a process of its own (utils/math_compare.py) with a time limit and a memory bound, where
its own timeouts work: an answer whose arithmetic never ends scores 0 and holds no other judge.
- The answer is the last complete \boxed{}, as MathArena's parser takes it; a missing answer's feedback keeps the
agent's own reason (a session that timed out).
- examples/math_grading/ in the examples' layout (utils/, utils/tests/) with a README; CI installs Math-Verify so
the grader's tests run.
- AIME: its judge reads the references lazily and is tested; the README names MathArena's commit and its one
difference (MathArena asks again for a missing box).
The comparison's answer is the last line of its output (a library may print before it); a judge checks Math-Verify is installed when it loads, before any agent session; the comparison's memory bound is 2 GB (several judges compare at once; checked in Linux that normal and pathological answers compare within it), and the feedback says it applies on Linux only.
This branch has not been 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.
Change
Adds AIME 2025 and AIME 2026 as a benchmark in Hermit's own environment (
examples/aime/), and the grading the math benchmarks share (examples/math_grading/).d98156f), written as task directories byutils/benchmark/prepare.py. Each task asks for no network but the model and an hour.\boxed{}of the agent's reply, equal to the reference by Math-Verify, on the host. Each comparison runs in a process of its own (math_compare.py) with a time limit and, on Linux, a 2 GB memory bound, reading the answer as LaTeX only; a judge checks Math-Verify is installed when it loads. References stay in.private/, which no sandbox is granted. Four attempts a problem, as MathArena runs.math_gradingis an engine intests/selection.py; CI installs Math-Verify so the grader's tests run; rows inexamples/README.mdanddocs/framework/task.md.Validation
python -m pytest examples/aime examples/math_grading tests/core/test_selection.py: 30 passed.python -m pytest --changedon the stack: the only failures are the 13 that also fail onmainon macOS (no bubblewrap).docker/Dockerfile's image,offline.sh's sandbox capabilities): Codex baseline 76.7% on AIME 2025 and 89.2% on AIME 2026, 240 attempts, 0 errors, every sandbox launch record's isolation probe passed; the smoke again after the review's changes (2 of 2, 0 errors).Review
write_task; answers only in judge-owned storage, the feedback names the reference for training rows; each task declares its network and time; a real run above.environment.readgrants onlymath_grading/utils, for the answer hook); the judge runs on the host, each comparison in a child process.