r"""Instantiates one of the model classes of the library -with the architecture used for pretraining this model– from a pre-trained model configuration.
r"""Instantiates one of the model classes of the library -with the architecture used for pretraining this model– from a pre-trained model configuration.
The `from_pretrained()` method takes care of returning the correct model class instance
The `from_pretrained()` method takes care of returning the correct model class instance
based on the `model_type` property of the config object, or when it's missing,
based on the `model_type` property of the config object, or when it's missing,
...
@@ -697,7 +697,7 @@ class AutoModelWithLMHead:
...
@@ -697,7 +697,7 @@ class AutoModelWithLMHead:
@classmethod
@classmethod
deffrom_config(cls,config):
deffrom_config(cls,config):
r"""Instantiates one of the base model classes of the library
r"""Instantiates one of the base model classes of the library