gchhablani
commited on
Commit
•
ebe3c53
1
Parent(s):
df8d5a2
Fix model file
Browse files
README.md
CHANGED
@@ -8,9 +8,9 @@ datasets:
|
|
8 |
- bookcorpus
|
9 |
- wikipedia
|
10 |
---
|
11 |
-
# MultiBERTs Seed
|
12 |
|
13 |
-
Seed
|
14 |
[this paper](https://arxiv.org/pdf/2106.16163.pdf) and first released in
|
15 |
[this repository](https://github.com/google-research/language/tree/master/language/multiberts). This model is uncased: it does not make a difference
|
16 |
between english and English.
|
@@ -51,8 +51,8 @@ Here is how to use this model to get the features of a given text in PyTorch:
|
|
51 |
|
52 |
```python
|
53 |
from transformers import BertTokenizer, BertModel
|
54 |
-
tokenizer = BertTokenizer.from_pretrained('multiberts-seed-
|
55 |
-
model = BertModel.from_pretrained("multiberts-seed-
|
56 |
text = "Replace me by any text you'd like."
|
57 |
encoded_input = tokenizer(text, return_tensors='pt')
|
58 |
output = model(**encoded_input)
|
|
|
8 |
- bookcorpus
|
9 |
- wikipedia
|
10 |
---
|
11 |
+
# MultiBERTs Seed 0 (uncased)
|
12 |
|
13 |
+
Seed 0 MultiBERTs (pretrained BERT) model on English language using a masked language modeling (MLM) objective. It was introduced in
|
14 |
[this paper](https://arxiv.org/pdf/2106.16163.pdf) and first released in
|
15 |
[this repository](https://github.com/google-research/language/tree/master/language/multiberts). This model is uncased: it does not make a difference
|
16 |
between english and English.
|
|
|
51 |
|
52 |
```python
|
53 |
from transformers import BertTokenizer, BertModel
|
54 |
+
tokenizer = BertTokenizer.from_pretrained('multiberts-seed-0')
|
55 |
+
model = BertModel.from_pretrained("multiberts-seed-0")
|
56 |
text = "Replace me by any text you'd like."
|
57 |
encoded_input = tokenizer(text, return_tensors='pt')
|
58 |
output = model(**encoded_input)
|