DOC: Fix typos in modeling_auto (#4534)
This commit is contained in:
committed by
GitHub
parent
e19b978151
commit
a34a9896ac
@@ -398,7 +398,7 @@ class AutoModel:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
|
|
||||||
@@ -417,7 +417,7 @@ class AutoModel:
|
|||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
|
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
|
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
@@ -548,7 +548,7 @@ class AutoModelForPreTraining:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
cache_dir: (`optional`) string:
|
cache_dir: (`optional`) string:
|
||||||
@@ -562,7 +562,7 @@ class AutoModelForPreTraining:
|
|||||||
A dictionary of proxy servers to use by protocol or endpoint, e.g.: {'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.
|
A dictionary of proxy servers to use by protocol or endpoint, e.g.: {'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.
|
||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
|
|
||||||
@@ -694,7 +694,7 @@ class AutoModelWithLMHead:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
cache_dir: (`optional`) string:
|
cache_dir: (`optional`) string:
|
||||||
@@ -708,7 +708,7 @@ class AutoModelWithLMHead:
|
|||||||
A dictionary of proxy servers to use by protocol or endpoint, e.g.: {'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.
|
A dictionary of proxy servers to use by protocol or endpoint, e.g.: {'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.
|
||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
|
|
||||||
@@ -833,7 +833,7 @@ class AutoModelForSequenceClassification:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
|
|
||||||
@@ -852,7 +852,7 @@ class AutoModelForSequenceClassification:
|
|||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
|
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
|
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
@@ -975,7 +975,7 @@ class AutoModelForQuestionAnswering:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
|
|
||||||
@@ -991,7 +991,7 @@ class AutoModelForQuestionAnswering:
|
|||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
|
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
|
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
@@ -1120,7 +1120,7 @@ class AutoModelForTokenClassification:
|
|||||||
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
- the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory.
|
||||||
|
|
||||||
state_dict: (`optional`) dict:
|
state_dict: (`optional`) dict:
|
||||||
an optional state dictionnary for the model to use instead of a state dictionary loaded from saved weights file.
|
an optional state dictionary for the model to use instead of a state dictionary loaded from saved weights file.
|
||||||
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
This option can be used if you want to create a model from a pretrained configuration but load your own weights.
|
||||||
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
In this case though, you should check if using :func:`~transformers.PreTrainedModel.save_pretrained` and :func:`~transformers.PreTrainedModel.from_pretrained` is not a simpler option.
|
||||||
|
|
||||||
@@ -1136,7 +1136,7 @@ class AutoModelForTokenClassification:
|
|||||||
The proxies are used on each request.
|
The proxies are used on each request.
|
||||||
|
|
||||||
output_loading_info: (`optional`) boolean:
|
output_loading_info: (`optional`) boolean:
|
||||||
Set to ``True`` to also return a dictionnary containing missing keys, unexpected keys and error messages.
|
Set to ``True`` to also return a dictionary containing missing keys, unexpected keys and error messages.
|
||||||
|
|
||||||
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
kwargs: (`optional`) Remaining dictionary of keyword arguments:
|
||||||
These arguments will be passed to the configuration and the model.
|
These arguments will be passed to the configuration and the model.
|
||||||
|
|||||||
Reference in New Issue
Block a user