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

add set_seed to __init__.py #127

Merged
merged 3 commits into from
Feb 1, 2023
Merged

add set_seed to __init__.py #127

merged 3 commits into from
Feb 1, 2023

Conversation

lvwerra
Copy link
Member

@lvwerra lvwerra commented Feb 1, 2023

This adds set_seed to the main __init__.py so we can from trl import set_seed. I think we should move important stuff the users is supposed to use there so they don't have to remember paths. Wdyt @younesbelkada?

cc @natolambert

@lvwerra lvwerra requested a review from younesbelkada February 1, 2023 13:36
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Feb 1, 2023

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

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

💯 on this, thank you @lvwerra !
PS: make sure to run the styling checks before merging ;)

@lvwerra lvwerra merged commit 3173ed2 into main Feb 1, 2023
@lvwerra lvwerra deleted the fix-set-seed branch February 1, 2023 14:28
@natolambert
Copy link
Contributor

Yep, sorry I missed the point on the main init. I see now :).

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.

4 participants