-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Skip token in push_to_hub
#1945
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the safety improvement! My main question is whether we need to have commented out args - is there a cleaner way?
trl/trainer/bco_trainer.py
Outdated
@@ -1432,12 +1432,12 @@ def push_to_hub( | |||
self, | |||
commit_message: Optional[str] = "End of training", | |||
blocking: bool = True, | |||
token: Optional[str] = None, | |||
# token: Optional[str] = None, # Unlike the parent class, skip the token to mitigate security risks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we delete altogether instead of having this commented out code?
# token: Optional[str] = None, # Unlike the parent class, skip the token to mitigate security risks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can.
I just want to find a way to tell my future self not to re-add it. I'll add to the comment below, let me know if that's ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better, thanks!
Note that thanks to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for iterating, LGTM!
No description provided.