mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix minor docstring typos. (#12682)
This commit is contained in:
parent
90178b0cef
commit
711d901c49
@ -199,7 +199,7 @@ class FlaxPreTrainedModel(PushToHubMixin, FlaxGenerationMixin):
|
||||
from_pt (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Load the model weights from a PyTorch checkpoint save file (see docstring of
|
||||
``pretrained_model_name_or_path`` argument).
|
||||
ignore_mismatched_size (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
ignore_mismatched_sizes (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
|
||||
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
|
||||
checkpoint with 3 labels).
|
||||
|
@ -1132,7 +1132,7 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin, Pu
|
||||
from_pt: (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Load the model weights from a PyTorch state_dict save file (see docstring of
|
||||
``pretrained_model_name_or_path`` argument).
|
||||
ignore_mismatched_size (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
ignore_mismatched_sizes (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
|
||||
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
|
||||
checkpoint with 3 labels).
|
||||
|
@ -1037,7 +1037,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
|
||||
from_flax (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Load the model weights from a Flax checkpoint save file (see docstring of
|
||||
``pretrained_model_name_or_path`` argument).
|
||||
ignore_mismatched_size (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
ignore_mismatched_sizes (:obj:`bool`, `optional`, defaults to :obj:`False`):
|
||||
Whether or not to raise an error if some of the weights from the checkpoint do not have the same size
|
||||
as the weights of the model (if for instance, you are instantiating a model with 10 labels from a
|
||||
checkpoint with 3 labels).
|
||||
|
Loading…
Reference in New Issue
Block a user