-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
[AutoModels] Fix config params handling of all PT and TF AutoModels #5665
[AutoModels] Fix config params handling of all PT and TF AutoModels #5665
Conversation
Isn't the canonical way:
in the test? |
Codecov Report
@@ Coverage Diff @@
## master #5665 +/- ##
==========================================
- Coverage 78.43% 77.32% -1.12%
==========================================
Files 146 146
Lines 26002 26002
==========================================
- Hits 20395 20105 -290
- Misses 5607 5897 +290
Continue to review full report at Codecov.
|
Oh yeah, that's much cleaner. We should probably update all AutoModels in PT and TF with this then, no? |
I think that's correct, and the way it was always meant to be 🤨 |
Yes, I agree. |
754d5e2
to
873887a
Compare
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.
LGTM!
(transformers >3.1.0 fixed the config kwargs handling in huggingface/transformers#5665 )
(transformers >3.1.0 fixed the config kwargs handling in huggingface/transformers#5665 )
(transformers >3.1.0 fixed the config kwargs handling in huggingface/transformers#5665 )
(transformers >3.1.0 fixed the config kwargs handling in huggingface/transformers#5665 )
(transformers >3.1.0 fixed the config kwargs handling in huggingface/transformers#5665 )
As shown in #5474, currently, a command like:
fails because
is_decoder
is carried on as a model init argument even though it should only be used as a config init argument.This PR fixes one
AutoModelFor....
for this, but this still has be applied for otherAutoModelFor...
classes.Pinging @LysandreJik @sgugger @thomwolf - are you guys ok with this change (bug fix) in general?