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
97b787fb
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "24a85cca61fda92b9376fe45da1dcb10c8853066"
Unverified
Commit
97b787fb
authored
Jan 19, 2021
by
Sylvain Gugger
Committed by
GitHub
Jan 19, 2021
Browse files
Fix old Seq2SeqTrainer (#9675)
parent
d302d88b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/seq2seq/seq2seq_trainer.py
examples/seq2seq/seq2seq_trainer.py
+1
-1
No files found.
examples/seq2seq/seq2seq_trainer.py
View file @
97b787fb
...
...
@@ -60,7 +60,7 @@ class Seq2SeqTrainer(Trainer):
assert
isinstance
(
self
.
model
,
PreTrainedModel
),
f
"If no `config` is passed the model to be trained has to be of type `PreTrainedModel`, but is
{
self
.
model
.
__class__
}
"
self
.
config
=
self
.
_actual_model
(
self
.
model
)
.
config
self
.
config
=
self
.
model
.
config
else
:
self
.
config
=
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