Update README.md
Browse files
README.md
CHANGED
@@ -14,10 +14,10 @@ PS : the tokenizer is the same as the one of the model bert-base-uncased.
|
|
14 |
To load the model \& tokenizer :
|
15 |
|
16 |
````python
|
17 |
-
from transformers import
|
18 |
|
19 |
model_name = "eli4s/Bert-L12-h384-A6-pruned"
|
20 |
-
model =
|
21 |
tokenizer = BertTokenizer.from_pretrained(model_name)
|
22 |
````
|
23 |
|
|
|
14 |
To load the model \& tokenizer :
|
15 |
|
16 |
````python
|
17 |
+
from transformers import AutoModelForMaskedLM, BertTokenizer
|
18 |
|
19 |
model_name = "eli4s/Bert-L12-h384-A6-pruned"
|
20 |
+
model = AutoModelForMaskedLM.from_pretrained(model_name)
|
21 |
tokenizer = BertTokenizer.from_pretrained(model_name)
|
22 |
````
|
23 |
|