Downloads · 30 days
58
8% of all-time downloads
99eren99/ModernBERT-base-Turkish-uncased-mlm
ModernBERT-base-Turkish-uncased-mlm is a fill-mask model from 99eren99. Use it when you need the model to fill a missing word. The card lists the license as apache-2.0.
<img src="https://huggingface.co/99eren99/ModernBERT-base-Turkish-uncased-mlm/resolve/main/assets/cover.jpg" alt="drawing" width="400"/
Downloads · 30 days
58
8% of all-time downloads
All-time downloads
727
Public
Parameters
136M
271 MB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors271 MB · 100%
From the Hugging Face model README
<img src="https://huggingface.co/99eren99/ModernBERT-base-Turkish-uncased-mlm/resolve/main/assets/cover.jpg" alt="drawing" width="400"/>
This is a Turkish Base uncased ModernBERT model. Since this model is uncased: it does not make a difference between turkish and Turkish.
Don't use the do_lower_case = True flag with the tokenizer. Instead, convert your text to lower case as follows:
text.replace("I", "ı").lower()
This is due to a known issue with the tokenizer.
Be aware that this model may exhibit biased predictions as it was trained primarily on crawled data, which inherently can contain various biases.
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained(
"99eren99/ModernBERT-base-Turkish-uncased-mlm", do_lower_case=False
)
#tokenizer.truncation_side = "right"
model = AutoModelForMaskedLM.from_pretrained(
"99eren99/ModernBERT-base-Turkish-uncased-mlm", torch_dtype="auto"
)
model.eval()
# model.to("cuda")
-Mask Prediction Top 1 Accuracies (you can find eval scripts in "./assets" folder): <img src="https://huggingface.co/99eren99/ModernBERT-base-Turkish-uncased-mlm/resolve/main/assets/eval_results.jpg" alt="drawing"/>