Understand the CountDown task and reward function
mainThe project uses the CountDown task, where the model must generate a mathematical expression using a provided set of numbers that evaluates to a target number.
The model is trained to follow a specific reasoning format:
<think>Model step by step reasoning</think>
<answer>Final answer</answer>The reward function is composed of two parts:
- Format Reward: A reward of
0.1is given if the model correctly uses the<think>and<answer>tags; otherwise, it receives0. - Answer Reward: A reward of
1is given if the final answer uses each provided number exactly once and correctly evaluates to the target value; otherwise, it receives0.