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

Optionally save value model + GRPO #523

Merged
merged 10 commits into from
Jan 23, 2025
Merged

Optionally save value model + GRPO #523

merged 10 commits into from
Jan 23, 2025

Conversation

hamishivi
Copy link
Collaborator

@hamishivi hamishivi commented Jan 17, 2025

I want to be able to look at the value models we learn and see what happens, so this is to add that :)
Also adds GRPO ray code.

Need to test all this out but is exciting.

Copy link
Collaborator

@vwxyzjn vwxyzjn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Feel free to merge whenever.

@hamishivi hamishivi marked this pull request as ready for review January 22, 2025 17:28
@hamishivi hamishivi changed the title Optionally save value model Optionally save value model + GRPO Jan 22, 2025
# print(f"{logprobs[0][:40]=}, {ref_logprobs[0][:40]=}, {kl.sum(1)=}")
non_score_reward = -args.beta * kl
non_score_reward_sum = non_score_reward.sum(1)
rlhf_reward = scores + non_score_reward_sum
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's still log the rlhf_reward

@hamishivi hamishivi merged commit 6485393 into main Jan 23, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants