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

Update grpo.py to fix errors during create_model_card #171

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

Some-random
Copy link
Contributor

Latest version of GRPOTrainer in trl doesn't support arguments like pretrained_from. Current code will throw errors like TypeError: GRPOTrainer.create_model_card() got an unexpected keyword argument 'pretrained_from' during model uploading.

Since we're installing the latest version of GRPOTrainer as specified in setup.py, we should change those arguments. A similar issue can be found here

Copy link
Member

@lewtun lewtun 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 fix!

@lewtun lewtun merged commit 736b59f into huggingface:main Feb 5, 2025
1 check 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