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

Fixed ref model not used in PPO generation #1534

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

ejmejm
Copy link
Contributor

@ejmejm ejmejm commented Apr 12, 2024

In the PPOTrainer.generate function, the primary model was being used instead of the reference model to generate reference responses for single samples. This change uses the correct model and introduces a test to check for this. The new test was failing with the previous codebase.

@vwxyzjn
Copy link
Contributor

vwxyzjn commented Apr 17, 2024

Nice catch thank you! I am gonna run the tests and merge if it passes.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@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.

Thanks for the PR!

@vwxyzjn vwxyzjn merged commit 3bbe7e0 into huggingface:main Apr 17, 2024
9 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.

3 participants