Views
No views yet
🚨 We recommend using this model for math problems. It works better to ask the question in English. We do not advise using it for other tasks.

| ModelPass@1 | Math Accuracy % |
|---|---|
| Base Qwen2.5-Math-1.5B | 54% |
| After SFT | 67.5% |
| After SFT + DPO | 70% |
| After SFT + DPO + GRPO (MathReasoner-Mini-1.5b) | ~83.7% |
temperature=0.3, top_p=1.0,1def prompt_input(question):
2 prompt = f'''A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.
3 User: {question}
4 Assistant: <think>'''
5 return prompt1from transformers import pipeline
2
3pipe = pipeline("text-generation", model="arubittu/MathReasoner-Mini-1.5b")
4
5def prompt_input(question):
6 r1_zero_prompt = f'''A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.
7 User: {question}
8 Assistant: <think>'''
9 return r1_zero_prompt
10
11#questions to try on:
12#"Janet\u2019s ducks lay 16 eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with four. She sells the remainder at the farmers' market daily for $2 per fresh duck egg. How much in dollars does she make every day at the farmers' market?"
13#"Josh decides to try flipping a house. He buys a house for $80,000 and then puts in $50,000 in repairs. This increased the value of the house by 150%. How much profit did he make?"
14
15prompt = "A robe takes 2 bolts of blue fiber and half that much white fiber. How many bolts in total does it take?"
16response = pipe(prompt_input(prompt))
17generated_answer = response[0]['generated_text'].split('<think>')[-1]
18print(generated_answer)