Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ tokenizer = AutoTokenizer.from_pretrained("myrkur/Persian-ModernBert-base")
|
|
58 |
model = AutoModelForMaskedLM.from_pretrained("myrkur/Persian-ModernBert-base", attn_implementation="eager", torch_dtype=torch.bfloat16, device_map="cpu")
|
59 |
```
|
60 |
|
61 |
-
|
62 |
|
63 |
```python
|
64 |
text = "حال و [MASK] مردم خوب است."
|
@@ -88,7 +88,7 @@ tokenizer = AutoTokenizer.from_pretrained("myrkur/Persian-ModernBert-base")
|
|
88 |
model = AutoModelForMaskedLM.from_pretrained("myrkur/Persian-ModernBert-base", attn_implementation="flash_attention_2", torch_dtype=torch.bfloat16, device_map="cuda")
|
89 |
```
|
90 |
|
91 |
-
|
92 |
|
93 |
```python
|
94 |
text = "حال و [MASK] مردم خوب است."
|
|
|
58 |
model = AutoModelForMaskedLM.from_pretrained("myrkur/Persian-ModernBert-base", attn_implementation="eager", torch_dtype=torch.bfloat16, device_map="cpu")
|
59 |
```
|
60 |
|
61 |
+
#### Example: Masked Token Prediction
|
62 |
|
63 |
```python
|
64 |
text = "حال و [MASK] مردم خوب است."
|
|
|
88 |
model = AutoModelForMaskedLM.from_pretrained("myrkur/Persian-ModernBert-base", attn_implementation="flash_attention_2", torch_dtype=torch.bfloat16, device_map="cuda")
|
89 |
```
|
90 |
|
91 |
+
#### Example: Masked Token Prediction
|
92 |
|
93 |
```python
|
94 |
text = "حال و [MASK] مردم خوب است."
|