-
Notifications
You must be signed in to change notification settings - Fork 31.7k
consistent ignore keys + make private #8737
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
Conversation
sgugger
left a comment
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.
Way cleaner, thanks! Just some doc nits on the side.
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 great, thanks for being so fast @stas00!
|
oh, boy, there is also transformers/src/transformers/modeling_tf_utils.py Lines 346 to 354 in 49759c0
|
|
Indeed, very nice catch! How should we rename that one? |
|
Current perhaps? |
|
For me Re- documentation. We usually document private stuff in comments in the code, so I think we should remove the public documentation and change it in comments. |
|
We were writing at the same time @stas00 , your names are better than mine. Go ahead! |
- authorized_unexpected_keys => _keys_to_ignore_on_load_unexpected
LysandreJik
left a comment
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.
I really like the new comments.
|
You can safely ignore the failed connections. It's been happening since the change to git-based repos. We're looking into fixing it with @julien-c, it happens very often. |
|
@LysandreJik, I trust you will document this breaking change - I just don't know where I'd do that... |
|
Yes, I'm currently documenting all breaking changes in the release notes. |
* consistent ignore keys + make private * style * - authorized_missing_keys => _keys_to_ignore_on_load_missing - authorized_unexpected_keys => _keys_to_ignore_on_load_unexpected * move public doc of private attributes to private comment
This PR addresses #7258
(the proposal has evolved a bit since the initial PR, this comments reflects the current state)
to (1) make them consistent (2) make them private
This is a breaking change.
Fixes #7258
@LysandreJik, @sgugger
p.s. if we want to postpone it for v5, this PR was a quick one liner:
and then manually adjusting the docs.