Doc: loading from config alone does not load the model weights

This commit is contained in:
Lysandre
2019-08-19 10:17:47 -04:00
parent 5a49b793d9
commit c589862b78
8 changed files with 19 additions and 2 deletions

View File

@@ -90,7 +90,8 @@ ROBERTA_START_DOCSTRING = r""" The RoBERTa model was proposed in
Parameters:
config (:class:`~pytorch_transformers.RobertaConfig`): Model configuration class with all the parameters of the
model.
model. Initializing with a config file does not load the weights associated with the model, only the configuration.
Check out the :meth:`~pytorch_transformers.PreTrainedModel.from_pretrained` method to load the model weights.
"""
ROBERTA_INPUTS_DOCSTRING = r"""