akello_base is a 89M-parameter encoder-decoder Transformer that translates Lugbara → Ateso and Ateso → Lugbara with one model, directly, with no English on either side. The direction is set by a prefix token on the source (<2teo> / <2lgg>; the tag names the target language).
This is a pretrained base, not a finished translator. It was trained only on machine-translated pairs (see Training) and has not been fine-tuned on human-translated data. A fine-tuned version is published separately as
amDANIEL2024/akello_finetuned.
pip install torch sentencepiece safetensors huggingface_hub
import sys
from huggingface_hub import snapshot_download
folder = snapshot_download("amDANIEL2024/akello_base") # add token="hf_..." if the repo is still private
sys.path.insert(0, folder)
from akello import Translator
t = Translator(folder) # uses the GPU if there is one
print(t.translate("<a Lugbara sentence>", "lgg2teo"))
print(t.translate(["<a Ateso sentence>"], "teo2lgg"))
Directions are "lgg2teo" and "teo2lgg". translate takes a string or a list and accepts beam (default 4). This is a custom PyTorch model, not a transformers model, so AutoModel will not load it.
| Architecture | pre-LN Transformer encoder-decoder, 6 + 6 layers, d_model 640, 8 heads, FFN 2560, GELU |
| Parameters | 89M (input embedding, decoder embedding and output projection are tied) |
| Tokenizer | shared SentencePiece, 32,000 pieces, trained on Lugbara and Ateso text only (spm.model) |
| Context | 256 positions (sinusoidal); training pairs were limited to 128 pieces per side |
| Weights | model.safetensors (float32) |
Full SALT dev/test scores: not run for this base yet. SALT test has not been used for anything.
End of pretraining (step 23,051), quick checks:
| Set | Direction | Loss | Quick chrF++ (greedy, first 128 sentences) |
|---|---|---|---|
| tulati validation (held-out machine-translated pairs) | lgg→teo | 1.842 | 47.15 |
| tulati validation (held-out machine-translated pairs) | teo→lgg | 1.275 | 47.68 |
| SALT dev (human translations) | lgg→teo | 3.608 | 39.78 |
| SALT dev (human translations) | teo→lgg | 3.175 | 36.86 |
The quick chrF++ is a noisy check on a small subset with greedy decoding; it is not comparable to full-set scores.
Note that SALT's Lugbara and Ateso sentences are independent human translations of the same English sentence, so a reference in one language is not a translation of the reference in the other.
model.safetensors weights · config.json architecture and training summary · spm.model tokenizer · akello.py standalone inference code · README.md this card.
Released under the MIT License (as are tulati, the translation model that generated the training data, and SALT).
Amanyire Daniel (amDANIEL2024) · domusdeiug@gmail.com · https://domusdeiug.com