Downloads · 30 days
12
21% of all-time downloads
nabin2004/masking-RoBERTa-XLM
masking-RoBERTa-XLM is a fill-mask model from nabin2004. Use it when you need the model to fill a missing word. The card lists the license as apache-2.0.
This model is a custom fine-tuned Masked Language Model (MLM) trained on code-mixed Nepali-English transliterated text. The model is capable of predicting masked tokens in sentences that include both Romanized Nepali…
Downloads · 30 days
12
21% of all-time downloads
All-time downloads
57
Public
Parameters
278M
3.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt2.2 GB · 66%
From the Hugging Face model README
This model is a custom fine-tuned Masked Language Model (MLM) trained on code-mixed Nepali-English transliterated text. The model is capable of predicting masked tokens in sentences that include both Romanized Nepali and English, aiming to support tasks like:
xlm-roberta-base|||)from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline
checkpoint_path = "/path/to/mlm-pos-model/checkpoint-100000"
tokenizer = AutoTokenizer.from_pretrained(checkpoint_path)
model = AutoModelForMaskedLM.from_pretrained(checkpoint_path)
mlm_pipeline = pipeline("fill-mask", model=model, tokenizer=tokenizer)
result = mlm_pipeline("नेपाल इज गूड प्लेस टू बी। ||| Nepal is good place <mask> be.", top_k=8)
for pred in result:
print(f"{pred['token_str']} ({pred['score']:.4f})")