Fill-Mask
Transformers
Safetensors
Amharic
xlm-roberta
amharic
masked-language-modeling
xlmr
low-resource
multilingual
Run this model with HF Jobs
Run Hailay/xlmr-amharic-mlm on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Hailay/xlmr-amharic-mlm. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Hailay/xlmr-amharic-mlm on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Hailay/xlmr-amharic-mlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hailay/xlmr-amharic-mlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Hailay/xlmr-amharic-mlm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Hailay/xlmr-amharic-mlm") model = AutoModelForMaskedLM.from_pretrained("Hailay/xlmr-amharic-mlm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
XLM-Roberta Fine-Tuned on Amharic (MLM)
This model is a fine-tuned version of xlm-roberta-base for the Amharic language (แ แแญแ), trained with the Masked Language Modeling (MLM) objective. It is adapted to Amharic using a custom BPE tokenizer and embedding initialization based on FastText vectors.
๐ง Details
- Base model:
xlm-roberta-base - Language: Amharic
- Tokenizer: Custom BPE tokenizer
- Adaptation: Embedding initialization via weighted average of pretrained XLM-R embeddings, guided by FastText word vectors for Amharic
- Training dataset: Amharic portion of the NLLB (No Language Left Behind) parallel corpus
- Objective: Masked Language Modeling (MLM)
๐งช Usage
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Hailay/xlmr-amharic-mlm")
model = AutoModelForMaskedLM.from_pretrained("Hailay/xlmr-amharic-mlm")
text = "แขแตแฎแตแซ แจแแฐแ แฅแตแแต แ แณแจแฝแข"
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
๐ Intended Use
Pretraining for Amharic NLP tasks
Fine-tuning on classification, NER, QA, and downstream tasks in Amharic
Research on low-resource Semitic languages
๐ Citation
@misc{hailay2025amharic,
title={Amharic MLM with XLM-R and FastText-Informed Embedding Initialization},
author={Hailay Kidu},
year={2025},
url={https://huggingface.co/Hailay/xlmr-amharic-mlm}
}
๐ท๏ธ License
Apache License 2.0
- Downloads last month
- 11