"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "24a85cca61fda92b9376fe45da1dcb10c8853066"
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):
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
......
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