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

[core] improve API #97

Merged
merged 2 commits into from
Jan 24, 2023
Merged

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

(please ignore the branch name)

This PR adds safety checkers on the positional arguments of PPOTrainer making the API clearer for users if they pass unvalid arguments when initializing the trainer. This PR adds also nice tests

cc @lvwerra

- add kwargs check on `PPOTrainer`
- add tests
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jan 23, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@lvwerra lvwerra left a comment

Choose a reason for hiding this comment

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

Looks good to me! Also tagging @LysandreJik who suggested these changes.

@younesbelkada younesbelkada merged commit ffe5f4f into huggingface:main Jan 24, 2023
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