Downloads · 30 days
15
15% of all-time downloads
emoduh/nllb-eng-idoma
nllb-eng-idoma is a translation model from emoduh. Use it when you need text moved from one language to another. The card lists the license as cc-by-nc-4.0.
Idoma (ISO 639-3 idu, Glottolog idom1241) is a Benue-Congo language of Benue State, Nigeria. Stock NLLB-200 does not support it — its tokenizer has 202 language codes and iduLatn is not among them, so iduLatn resolves…
Downloads · 30 days
15
15% of all-time downloads
All-time downloads
100
Public
Parameters
615M
17.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Idoma (ISO 639-3 idu, Glottolog idom1241) is a Benue-Congo language of Benue
State, Nigeria. Stock NLLB-200 does not support it — its tokenizer has 202
language codes and idu_Latn is not among them, so idu_Latn resolves to <unk>
and the model returns the source sentence unchanged.
This checkpoint adds idu_Latn as a real token, resizes the embedding matrix, and
initialises the new row from ibo_Latn (Igbo, the nearest in-vocabulary relative)
before fine-tuning.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tok = AutoTokenizer.from_pretrained("emoduh/nllb-eng-idoma")
model = AutoModelForSeq2SeqLM.from_pretrained("emoduh/nllb-eng-idoma")
# This must NOT be the unk id.
tgt = tok.convert_tokens_to_ids("idu_Latn")
assert tgt != tok.unk_token_id
tok.src_lang = "eng_Latn"
batch = tok("Come and eat", return_tensors="pt")
out = model.generate(**batch, forced_bos_token_id=tgt, max_length=96, num_beams=4)
print(tok.decode(out[0], skip_special_tokens=True))
Roughly 989 English-Idoma pairs, predominantly word-level, derived from the community dictionary at https://www.idomaland.org/dictionary with gratitude to its contributors. The dataset itself is not redistributed here.
Entries are dialect-tagged where the source distinguishes them (central vs western Idoma differ: water is Ennkpo in central and Enyi in western).
chrF++ on a held-out split, keyed by English headword so dialect variants of the
same word cannot leak between train and test. See the training notebook
(training/train_idoma_nllb.ipynb) for exact numbers from your run.