This commit is contained in:
thomwolf committed 2019-07-16 21:21:03 +02:00
1 parent ed7549bb1a
commit 6b70760204
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -314,7 +314,7 @@ loss, logits, attentions = outputs
Breaking change: Models are now set in evaluation mode by default when instantiated with the `from_pretrained()` method.
To train them don't forget to set them back in training mode (`model.train()`) to activate the dropout modules.
Also, while not a breaking change, the serialization methods have been standardized and you probably should switch to the new method `save_pretrained(save_directory)` if you were using any other seralization method before.
Also, while not a breaking change, the serialization methods have been standardized and you probably should switch to the new method `save_pretrained(save_directory)` if you were using any other serialization method before.
Here is an example: