Repository navigation
feat: add MOBench benchmark - #1113
Merged
Merged
Conversation
Binds the MOBench Lean4 formal-proof test split (360 theorems) to the existing
`math_formal_lean` resources server and `simple_agent` (single-turn, matching
NeMo-Skills' evaluation protocol). No new server code.
## Includes
- `benchmarks/mobench/` — benchmark config, `prepare.py`, `prompts/default.yaml`,
README.
- Data source: Goedel-LM/Goedel-Prover-V2 `MOBench.jsonl` (360 theorems),
pinned to commit `2e9036e118464aa96a8bebaf9f5b9d091aa3585c`.
- Prompt reuses `lean4/formal-proof-deepseek-prover-v2` (same as miniF2F).
- Per-row schema `{name, split, header, informal_prefix, formal_statement, goal}`
— byte-identical to Skills' `nemo_skills/dataset/mobench/test.jsonl` (verified
via sorted-diff across all 360 rows).
- `prepare.py` asserts `len(rows) == 360` to catch upstream drift.
## Test plan
- `ng_prepare_benchmark` writes 360-row JSONL byte-identical to Skills' upstream.
- `ng_list_benchmarks` shows `mobench` bound to
`mobench_math_formal_lean_simple_agent` with `num_repeats=32`.
- Existing `resources_servers/math_formal_lean` tests unaffected (mocked sandbox).
- `pre-commit run --files benchmarks/mobench/**/*` clean.
End-to-end pass@k baseline deferred to a follow-up run with a Lean sandbox; no
model-side changes vs. the miniF2F port so the pipeline is already validated.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Stephen Ge <[email protected]>
gwarmstrong
requested changes
Apr 23, 2026
gwarmstrong
left a comment
Contributor
There was a problem hiding this comment.
Please propagate the prompt location from #1111
stephencge
added a commit
that referenced
this pull request
Apr 23, 2026
Two changes on top of the original port: 1. Prompt switch: drop the zero-shot port of `lean4/formal-proof` in favor of the shared `lean4_formal_proof_deepseek_prover_v2` prompt used by miniF2F (#1111) and MOBench (#1113). Intentionally differs from NeMo-Skills' upstream choice for ProofNet; per user request, all four ported Lean benchmarks should use the same prompt for consistency. 2. Move to shared location: reference `benchmarks/prompts/lean4_formal_proof_deepseek_prover_v2.yaml` (merged in via main) and delete the benchmark-local `prompts/default.yaml`. Data output and server binding unchanged; only prompt rendering differs at rollout time. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Stephen Ge <[email protected]>
Reference `benchmarks/prompts/lean4_formal_proof_deepseek_prover_v2.yaml` (merged in via main after miniF2F #1111 landed) and delete the benchmark-local `prompts/default.yaml`. Same content byte-for-byte; no behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Stephen Ge <[email protected]>
gwarmstrong
approved these changes
Apr 23, 2026
gwarmstrong
enabled auto-merge (squash)
April 23, 2026 19:02
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.
Summary
Binds the MOBench Lean4 formal-proof test split (360 theorems) to the existing
math_formal_leanresources server andsimple_agent(single-turn, matching NeMo-Skills' evaluation protocol). No new server code.Includes
benchmarks/mobench/— benchmark config,prepare.py,prompts/default.yaml, README.MOBench.jsonlpinned to commit2e9036e118464aa96a8bebaf9f5b9d091aa3585c.lean4/formal-proof-deepseek-prover-v2(same as miniF2F).{name, split, header, informal_prefix, formal_statement, goal}— byte-identical to Skills'nemo_skills/dataset/mobench/test.jsonl(verified via sorted-diff across all 360 rows).prepare.pyassertslen(rows) == 360to catch upstream drift.Test plan
ng_prepare_benchmarkwrites 360-row JSONL byte-identical to NeMo-Skills' upstream.ng_list_benchmarksshowsmobenchbound tomobench_math_formal_lean_simple_agentwithnum_repeats=32.resources_servers/math_formal_leantests unaffected (mocked sandbox).pre-commit run --files benchmarks/mobench/**/*clean.End-to-end pass@k baseline deferred to a follow-up run with a Lean sandbox; this PR is a pure binding — no model-, agent-, or server-side changes vs. the miniF2F port (#1111) which already went through full e2e validation against NeMo-Skills.
🤖 Generated with Claude Code