Repository navigation
Add gsm8k and hendrycks_math benchmarks - #1104
Merged
Merged
Conversation
Ports three math benchmarks from NeMo Skills into Gym, reusing the existing math_with_judge resource server. Scope is data-prep parity only — Skills' prepare methods are mirrored exactly (same upstream sources, same transforms) and validated byte-for-byte against Skills output (256 + 1319 + 5000 rows, identical modulo the Gym-side problem -> question rename). - benchmarks/comp_math_24_25/ — AIME24/25 + HMMT24-25 (256 problems). Static snapshot shipped as data/test.txt, copied verbatim from the Skills repo. - benchmarks/gsm8k/ — GSM8K test split (1319 problems). Fetched from the same openai/grade-school-math URL as Skills, with the same hardcoded answer-fix dict, <<...>> calc-string stripping, and int-cast. - benchmarks/hendrycks_math/ — Hendrycks MATH test split (5000 problems). Fetched from the same Qwen2.5-Math URL as Skills. - benchmarks/prompts/generic_math.yaml — shared prompt mirroring Skills' generic/math.yaml, referenced by all three benchmark configs to avoid duplication. Signed-off-by: gwarmstrong <[email protected]>
Unlike gsm8k and hendrycks_math, the Skills comp-math-24-25 test set is not reconstructable from any public structured dataset: 138 of 256 problems (HMMT Feb'24/F'25 guts+team rounds and all HMMT Nov 2024 rounds) live only as rendered PDFs on hmmt-archive.s3.amazonaws.com. The Skills team curated those once and shipped the result as a static JSONL snapshot in their repo; MathArena / NuminaMath / OpenR1-Math cover at most 46%. Shipping the Skills snapshot in Gym would be the only path to full parity, but that's a larger scope decision (data attribution, licensing, commit size) than the other two migrations — keeping it out of this PR so gsm8k and hendrycks_math can land cleanly. comp_math_24_25 can come back in a follow-up PR if/when we decide how to handle the static-data dependency. Signed-off-by: gwarmstrong <[email protected]>
…://github.com/NVIDIA-NeMo/Gym into georgea/migrate-gym-data-only-math-benchmarks
cmunley1
approved these changes
Apr 21, 2026
stephencge
added a commit
that referenced
this pull request
Apr 23, 2026
Extract the Lean4 formal-proof prompt from `benchmarks/minif2f/prompts/default.yaml` into `benchmarks/prompts/lean4_formal_proof_deepseek_prover_v2.yaml` following the new shared-prompts convention introduced in #1104 (`gsm8k` / `hendrycks_math` using `benchmarks/prompts/generic_math.yaml`). MOBench and PutnamBench use the same prompt byte-for-byte but are on separate PRs; they'll migrate to this shared file in a follow-up once the pattern is landed here. No content changes — file is byte-identical to the deleted `benchmarks/minif2f/prompts/default.yaml`. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Stephen Ge <[email protected]>
7 tasks done
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.
One-sentence summary
Migrates the
gsm8kandhendrycks_mathmath benchmarks from NeMo Skillsinto Gym on top of the existing
math_with_judgeresource server. No newservers or agents, no metric-infra changes. Scope is deliberately
data-prep-only: each benchmark's
prepare.pymirrors the Skills preparemethod and the final files are validated against Skills' output for every row.
Includes
benchmarks/gsm8k/— GSM8K test splitraw.githubusercontent.com/openai/grade-school-math(testsplit, 1319 problems) — identical upstream URL to Skills
benchmarks/hendrycks_math/— Hendrycks MATH test splitraw.githubusercontent.com/QwenLM/Qwen2.5-Math(MATH testsplit, 5000 problems) — identical upstream URL to Skills'
save_data_from_qwen("math", "test")benchmarks/prompts/generic_math.yaml— new shared prompt mirroringnemo_skills/prompt/config/generic/math.yaml(zero-shot form), referencedby both benchmark configs via
prompt_config:to avoid duplicating thesame two-line template
Validated against NeMo Skills
Scope is data-prep parity only. This PR does not include rollout or
metrics-parity numbers (no SLURM runs were made). Each benchmark's
prepare()output is compared row-by-row against the Skills'prepare.pyoutput. Every row is identical up to specific key naming, like
problem→questionrename: