-
Notifications
You must be signed in to change notification settings - Fork 27.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
Declaring classifier_dropout
in model config but not using it
#12792
Comments
Tagging @NielsRogge |
also see this issue: #12781 |
@NielsRogge what do you think? |
Well, since Pegasus does not have SequenceClassification or TokenClassification the |
fixed in PR - closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PEGASUS model is declaring
classifier_dropout
in the model config:transformers/src/transformers/models/pegasus/configuration_pegasus.py
Line 128 in 546dc24
But the model never uses it. This is a bug IMO.
In contrast mBART defines it:
transformers/src/transformers/models/mbart/configuration_mbart.py
Line 127 in 546dc24
and uses it:
transformers/src/transformers/models/mbart/modeling_mbart.py
Line 1395 in 546dc24
If wanted I can provide a fix (non breaking) as a PR.
The text was updated successfully, but these errors were encountered: