myrkur commited on
Commit
f05dd97
·
verified ·
1 Parent(s): 87c5c2d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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
- ### Example: Masked Token Prediction
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
- ### Example: Masked Token Prediction
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] مردم خوب است."