Downloads · 30 days
32
24% of all-time downloads
dstilesr/glotlid-pretrained-roberta
glotlid-pretrained-roberta is a fill-mask model from dstilesr. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This model was pretrained using Masked Language Modeling (MLM) objective on multilingual text data.
Downloads · 30 days
32
24% of all-time downloads
All-time downloads
136
Public
Parameters
64.7M
1.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors259 MB · 98%
From the Hugging Face model README
This model was pretrained using Masked Language Modeling (MLM) objective on multilingual text data.
This is a RoBERTa-based transformer model pretrained from scratch (or fine-tuned) using the Masked Language Modeling objective. The model learns to predict masked tokens in input sequences, developing a strong understanding of language patterns and semantics.
Model Architecture:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("dstilesr/glotlid-pretrained-roberta")
model = AutoModelForMaskedLM.from_pretrained("dstilesr/glotlid-pretrained-roberta")
# Example: Fill mask
text = "The capital of France is <mask>."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
This pretrained model can be fine-tuned for downstream tasks like sequence classification:
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained(
"dstilesr/glotlid-pretrained-roberta",
num_labels=num_classes,
ignore_mismatched_sizes=True
)
This model is designed as a pretrained base model for various NLP tasks: