Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference output format does not match reward function #489

Open
ryan-minato opened this issue Mar 7, 2025 · 0 comments
Open

Inference output format does not match reward function #489

ryan-minato opened this issue Mar 7, 2025 · 0 comments

Comments

@ryan-minato
Copy link

I noticed that in actual service, DeepSeek R1 does not seem to use the <think>...</think><answer>...</answer> format. Instead, only the reasoning process is enclosed within the <think> tag, while the final output is placed directly after </think>. This format discrepancy also appears to be reflected in the reasoning trajectories found in open-r1/OpenR1-Math-220k.

Should the format reward function be modified to only match the content within the <think> tag, rather than expecting the <answer> tag?

https://github.com/huggingface/open-r1/blob/6660a477eca71bf8d94c59cd2e458cf0ff6e1f80/src/open_r1/rewards.py#L67C1-L72C56

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

No branches or pull requests

1 participant