Skip to content

feat: add MOBench benchmark - #1113

Merged
gwarmstrong merged 7 commits into
mainfrom
stepheng/benchmark-mobench
Apr 23, 2026
Merged

gwarmstrong merged 7 commits into
mainfrom
stepheng/benchmark-mobench

Conversation

@stephencge

Copy link
Copy Markdown
Contributor

Summary

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 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 NeMo-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; 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

stephencge and others added 2 commits April 22, 2026 13:46
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 gwarmstrong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
stephencge and others added 2 commits April 23, 2026 14:13
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]>
@copy-pr-bot

copy-pr-bot Bot commented Apr 23, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@gwarmstrong
gwarmstrong enabled auto-merge (squash) April 23, 2026 19:02
@gwarmstrong
gwarmstrong merged commit 2d74930 into main Apr 23, 2026
6 checks passed
@gwarmstrong
gwarmstrong deleted the stepheng/benchmark-mobench branch April 23, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants