Unverified Commit 97b787fb authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix old Seq2SeqTrainer (#9675)

parent d302d88b
...@@ -60,7 +60,7 @@ class Seq2SeqTrainer(Trainer): ...@@ -60,7 +60,7 @@ class Seq2SeqTrainer(Trainer):
assert isinstance( assert isinstance(
self.model, PreTrainedModel 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__}" ), 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: else:
self.config = config self.config = config
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment