Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
65f9653e
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "584eeb5387193d352da976cc3d1305f5c3404850"
Unverified
Commit
65f9653e
authored
Mar 09, 2022
by
Pavel Belevich
Committed by
GitHub
Mar 09, 2022
Browse files
Fix warning message in ElectraForCausalLM (#16023)
parent
a69e1850
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/electra/modeling_electra.py
src/transformers/models/electra/modeling_electra.py
+1
-1
No files found.
src/transformers/models/electra/modeling_electra.py
View file @
65f9653e
...
...
@@ -1517,7 +1517,7 @@ class ElectraForCausalLM(ElectraPreTrainedModel):
super
().
__init__
(
config
)
if
not
config
.
is_decoder
:
logger
.
warning
(
"If you want to use `Electra
LMHeadModel
` as a standalone, add `is_decoder=True.`"
)
logger
.
warning
(
"If you want to use `Electra
ForCausalLM
` as a standalone, add `is_decoder=True.`"
)
self
.
electra
=
ElectraModel
(
config
)
self
.
generator_predictions
=
ElectraGeneratorPredictions
(
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment