# Cannot replicate leaderboard MATH scores

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-replicate-leaderboard-math-scores%2F147047%3E%5C
**Category:** Intermediate\
**Created:** [March 23, 2025, 2:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-replicate-leaderboard-math-scores%2F147047 "2025-03-23T14:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denizyuret](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/denizyuret/32/43921_2.png) [@denizyuret](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdenizyuret)%5C
**Post date:** [March 23, 2025, 2:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-replicate-leaderboard-math-scores%2F147047%2F1 "2025-03-23T14:09:57Z")

</div>

Can somebody point to the exact github commit for lm-eval and command line options they use for MATH? Here is my attempt with latest commit of lm-evaluation-harness, and I cannot get from these numbers to the number posted on the leaderboard.

```auto
$ lm_eval --model hf --model_args pretrained=nvidia/AceMath-1.5B-Instruct --tasks leaderboard_math_hard --device cuda:0 --batch_size auto --trust_remote_code --log_samples --output_path foo-results
| Tasks |Version|Filter|n-shot| Metric | |Value | |Stderr|
|---------------------------------------------|-------|------|-----:|-----------|---|-----:|---|-----:|
|leaderboard_math_hard | N/A| | | | | | | |
| - leaderboard_math_algebra_hard | 2|none | 4|exact_match|↑ |0.5407|± |0.0285|307
| - leaderboard_math_counting_and_prob_hard | 2|none | 4|exact_match|↑ |0.3008|± |0.0415|123
| - leaderboard_math_geometry_hard | 2|none | 4|exact_match|↑ |0.1212|± |0.0285|132
| - leaderboard_math_intermediate_algebra_hard| 2|none | 4|exact_match|↑ |0.1000|± |0.0180|280
| - leaderboard_math_num_theory_hard | 2|none | 4|exact_match|↑ |0.2078|± |0.0328|154
| - leaderboard_math_prealgebra_hard | 2|none | 4|exact_match|↑ |0.5026|± |0.0361|193
| - leaderboard_math_precalculus_hard | 2|none | 4|exact_match|↑ |0.1185|± |0.0279|135

```

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 23, 2025, 3:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fcannot-replicate-leaderboard-math-scores%2F147047%2F2 "2025-03-23T15:53:11Z")

</div>

Oh… Perhaps fixed glitch?

> <https://github.com/EleutherAI/lm-evaluation-harness/issues/2803>
>
> https://github.com/EleutherAI/lm-evaluation-harness/pull/2773#issuecomment-27169…80020
