mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
indicate default evaluation in breaking changes
This commit is contained in:
parent
4acaa65068
commit
5c82d3488f
@ -384,7 +384,10 @@ loss, logits, attentions = outputs
|
||||
|
||||
### Serialization
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
Here is an example:
|
||||
|
||||
|
@ -35,7 +35,10 @@ loss, logits, attentions = outputs
|
||||
|
||||
### Serialization
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
Here is an example:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user