Repository navigation
MATH-500 as a benchmark in Hermit's own environment - #131
Open
ruiling-smartbear wants to merge 6 commits into
Open
ruiling-smartbear wants to merge 6 commits into
ruiling-smartbear wants to merge 6 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.
3 tasks done
…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).
ruiling-smartbear
force-pushed
the
math-math500
branch
from
November 26, 2026 08:53
33b806b to
70d62e2
Compare
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.
Its 500 problems with its own prompt as task directories, graded as AIME's; a no-adapter baseline for Codex and Claude Code, four attempts a problem; 150 problems of MATH's training split drawn for a method that learns, none a test problem.
The prompt is eval.yaml's template exactly (a folded YAML block: `$\\boxed{ANSWER}$`, one newline before the problem;
checked equal to the parsed file). The configs, judge and prepare point at math_grading/utils; the judge reads the
references lazily and is tested.
ruiling-smartbear
force-pushed
the
math-math500
branch
from
November 26, 2026 09:14
70d62e2 to
fcf38e4
Compare
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.
Stacked on #130 (this PR's own change is its last three commits).
Change
Adds MATH-500 as a benchmark in Hermit's own environment (
examples/math500/).HuggingFaceH4/MATH-500at a pinned revision with the dataset's prompt exactly as itseval.yamlsends it; 100/50/2 problems drawn from MATH's training split (EleutherAI/hendrycks_math) for a method that learns, none a MATH-500 problem (prepare checks). Half an hour a task, no network but the model.examples/math_grading/), four attempts a problem as the dataset'seval.yamlruns. Thateval.yamlgrades with a model; Math-Verify misses some right answers in another form (a tuple for a column vector, an inequality for an interval), which the README states.Validation
python -m pytest examples/math500 examples/aime examples/math_grading tests/core/test_selection.py: 34 passed.Review
eval.yaml), and the judge wrapper had no test (now has); fixed in 590c5f7; the second review found nothing new here (its judge now checks Math-Verify when it loads, fcf38e4).