Downloads · 30 days
0
Hailay/VEXMLM-AfriSenti-Amharic
VEXMLM-AfriSenti-Amharic is a text classification model from Hailay. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Amharic text classification fine-tuned from Hailay/VEXMLM, the vocabulary-extended XLM-R for Ge'ez-script languages.
Downloads · 30 days
0
Access
Public
Updated Sep 25, 2026
Repo size
6.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors6 GB · 98%
From the Hugging Face model README
Amharic text classification fine-tuned from
Hailay/VEXMLM, the vocabulary-extended
XLM-R for Ge'ez-script languages.
Official implementation: https://github.com/hailaykidu/VEXMLM
| Task | text-classification |
| Dataset | AfriSenti-SemEval 2023 (Amharic) |
| Language | Amharic |
| Architecture | XLMRobertaForSequenceClassification |
| Base model | Hailay/VEXMLM |
| Vocabulary | 280,002 |
| Labels | 3 |
| Seeds published | 42, 43, 44, 45, 46 |
Three classes: negative, neutral, positive.
Accuracy of 49.78 on a 3-class task is weak. The AfriSenti Amharic split has a majority class that differs between training and test, so a model that learns the training prior is systematically miscalibrated on test. Treat this checkpoint as a reproduction of the paper's evaluation rather than a production sentiment classifier.
Fine-tuned independently under seeds 42–46 with one configuration (hash
ce27cc194946) on an A100-PCIE-40GB. Reported as mean ± standard deviation over
the five runs, on the dataset's test split.
| Metric | Score |
|---|---|
| Accuracy | 49.78 ± 3.31 |
| Macro-F1 | 49.71 ± 1.93 |
These are the paper's verified results. They come from the five-seed evaluation described above — not from interactive use.
Benchmark evaluation is the five-seed measurement on the held-out test split, shown in the table above.
Interactive inference is what the usage example below performs: Enter arbitrary Amharic text and inspect the predicted sentiment label. Predictions on arbitrary user input are demonstrations only and do not produce or reproduce the benchmark score.
Five independently fine-tuned checkpoints, one per seed. The reported benchmark score is the mean ± standard deviation over all five; no single seed is the "five-seed model."
seed-42/ seed-43/ seed-44/ seed-45/ seed-46/
Load a specific seed with the subfolder argument, as in the example below.
Fine-tuned from Hailay/VEXMLM, a
vocabulary-extended XLM-R (280,002 subwords, 30,000 Ge'ez tokens merged into the
SentencePiece model) after continued MLM pretraining.
| Hyperparameter | Value |
|---|---|
| Max sequence length | 256 |
| Batch size | 32 |
| Epochs | 4 |
| Learning rate | 2e-5 |
| LR schedule | Linear decay, 10% warmup |
| Weight decay | 0.01 |
| Gradient clipping | 1.0 |
| Optimizer | AdamW (β₁ 0.9, β₂ 0.999, ε 1e-8) |
| Precision | bf16 |
| Trainable parameters | All |
| Hardware | 1× NVIDIA A100 |
Runs are bit-reproducible: enable_full_determinism,
CUBLAS_WORKSPACE_CONFIG=:4096:8, dataloader_num_workers=0.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
repo = "Hailay/VEXMLM-AfriSenti-Amharic"
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder="seed-42")
model = AutoModelForSequenceClassification.from_pretrained(repo, subfolder="seed-42")
model.eval()
enc = tokenizer("በጣም ጥሩ ነው!", return_tensors="pt", truncation=True, max_length=256)
with torch.no_grad():
logits = model(**enc).logits
print(model.config.id2label[logits.argmax(-1).item()])
The fine-tuning launcher, evaluation code and per-run result records are in the official repository: https://github.com/hailaykidu/VEXMLM
sbatch scripts/slurm_stage2_spm_seeds.sh # 6 tasks × 5 seeds
python3 evaluation/export_spm_results.py # regenerates the metrics table
@inproceedings{teklehaymanot2026vexmlm,
title = {Vocabulary Expansion for Low-Resource African Languages:
A Case Study in Amharic and Tigrinya},
author = {Teklehaymanot, Hailay Kidu and Yadeta, Debela Desalegn and
Nejdl, Wolfgang},
booktitle = {Proceedings of the Workshop on Language Models for
Underserved Communities (LM4UC) at IJCAI},
year = {2026}
}
Accepted at the LM4UC Workshop, IJCAI 2026.
Apache 2.0, following xlm-roberta-base.