From 3a489a69b8fb03f3f94f977d5f128b7fda1b3c89 Mon Sep 17 00:00:00 2001 From: fabiocapsouza Date: Sun, 15 Nov 2020 12:30:46 -0300 Subject: [PATCH] Revert "Fix typo in `AutoModelForMaskedLM` docs (#8129)" This reverts commit 4aa6b5194940776336630626a8f400b2176ba86f. --- src/transformers/modeling_auto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/modeling_auto.py b/src/transformers/modeling_auto.py index 267ba9927d85d7..e148ace57694b9 100644 --- a/src/transformers/modeling_auto.py +++ b/src/transformers/modeling_auto.py @@ -938,7 +938,7 @@ class AutoModelForMaskedLM: This is a generic model class that will be instantiated as one of the model classes of the library---with a masked language modeling head---when created with the when created with the :meth:`~transformers.AutoModelForMaskedLM.from_pretrained` class method or the - :meth:`~transformers.AutoModelForMaskedLM.from_config` class method. + :meth:`~transformers.AutoModelForMasedLM.from_config` class method. This class cannot be instantiated directly using ``__init__()`` (throws an error). """