Views
No views yet
Qwen/Qwen2.5-Math-7B post-trained with Evolution Strategies (ES) for mathematical reasoning, from
Beyond the Best Guess: Improving LLM Solution Coverage with Evolution Strategies.\boxed{} answer| Hyperparameter | Value |
|---|---|
| Perturbation scale σ | 0.001 |
| Learning rate α | 0.0005 (σ / 2) |
| Population size | 32 |
| Train batch size | 512 |
| Max response length | 3,000 |
| Rollout temperature | 0.0 |
| Total training steps | 500 |
| Parameter | Value |
|---|---|
| Temperature | 0.6 |
| Top-p | 0.95 |
| Max tokens | 16,384 |
1python -m es_pass_k.math_pass_k \
2 --model-path conorfhayes/Qwen2.5-Math-7B-ES-MATH \
3 --eval-dataset datasets/evaluation_suite/math/math500 \
4 --k 256 --temp 0.6 --top-p 0.95 --max-tokens 16384 \
5 --template math \
6 --use-gpus 01from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("conorfhayes/Qwen2.5-Math-7B-ES-MATH", torch_dtype="bfloat16", device_map="auto")
4tok = AutoTokenizer.from_pretrained("conorfhayes/Qwen2.5-Math-7B-ES-MATH")
5
6question = "What is the smallest positive integer n such that n! is divisible by 1000?"
7prompt = (
8 "<|im_start|>system\nPlease reason step by step, and put your final answer "
9 "within \\boxed{}.<|im_end|>\n<|im_start|>user\n"
10 + question
11 + "<|im_end|>\n<|im_start|>assistant\n"
12)
13
14out = model.generate(**tok(prompt, return_tensors="pt").to(model.device),
15 max_new_tokens=2048, temperature=0.6, top_p=0.95, do_sample=True)
16print(tok.decode(out[0], skip_special_tokens=True))Qwen/Qwen2.5-Math-7B.1@article{hayes2026beyond,
2 title = {Beyond the Best Guess: Improving LLM Solution Coverage with Evolution Strategies},
3 author = {Hayes, Conor F. and Meyerson, Elliot and Schweighofer, Kajetan and
4 Dailey, Roberto and Hodjat, Babak and Miikkulainen, Risto and Qiu, Xin},
5 year = {2026}
6}