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.

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
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support