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

[Feature, NOMERGE] RLHF Rollouts (reopened) #1329

Merged
merged 13 commits into from
Jul 3, 2023
Merged

Conversation

vmoens
Copy link
Contributor

@vmoens vmoens commented Jun 28, 2023

See #1315 for discussion

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 28, 2023
@vmoens vmoens changed the title [Feature, NOMERGE] RLHF Rollouts [Feature, NOMERGE] RLHF Rollouts (reopened) Jun 28, 2023
@vmoens vmoens added the enhancement New feature or request label Jun 28, 2023
@vmoens
Copy link
Contributor Author

vmoens commented Jun 28, 2023

@tcbegley I think we should merge/rebase main into this

@tcbegley tcbegley force-pushed the rlhf-rollout branch 2 times, most recently from 897649b to ebed304 Compare June 28, 2023 11:08
@tcbegley
Copy link
Contributor

I've rebased and fixed up the tests. There's still the changes from #1328 visible in the history here because I need the reward model for the rollout. Once that's merged (I think it's ready), I'll do a final merge / rebase and we should be ready here too.

Copy link
Contributor Author

@vmoens vmoens left a comment

Choose a reason for hiding this comment

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

I can't approve it bc it's my PR but LGTM anyway!

EOS_TOKEN_ID = 50256

def __init__(
self, model, ref_model, reward_model, max_new_tokens=50, score_clip=10.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

long term we may want to make this reward model optional and leave to the user the option of computing reward at a different time (eg when populating the replay buffer)

Copy link
Contributor

@apbard apbard left a comment

Choose a reason for hiding this comment

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

LGTM! thanks

@vmoens vmoens merged commit 8700e15 into pytorch:main Jul 3, 2023
@vmoens vmoens deleted the rlhf-rollout branch July 3, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants