License: Free for commercial use, with required attribution to the author's work. If you use this model, or text it generated, in a product, service or publication, credit "Translation models by Aletheia AI" and cite the accompanying paper. This model is a derivative of Google Gemma 3, so the Gemma Terms of Use and Prohibited Use Policy also apply.

gemma-3-1b-translate-sft-best

What this is. Our best supervised-only (SFT) Gemma-3-1B English to African-language translator, and the starting point of the RL stage that produced BeardedMonster/gemma-3-1b-translate-best. It is Gemma-3-1B-it (about 1.0B parameters) fine-tuned with SFT. It translates from English only, into 125 language tags (105 with SFT data, 20 without). Use it as a starting point for RL or further fine-tuning.

For direct translation, BeardedMonster/gemma-3-1b-translate-best is the better pick. This SFT model often does not stop, or gets stuck in a loop. On FLORES+ only 84.5% of greedy outputs end inside 768 tokens (99.8% with a frequency penalty of 0.1). Its chrF++ is 25.66 greedy and 29.11 with a frequency penalty of 0.1, against 35.28 for the RL model. RL fixed the finishing and looping problems and added about 6 to 10 chrF++.

Quick start

One user turn (two spaces after the colon):

Translate the text to {Language name}:  {English text}

Example: Translate the text to Yoruba: Good morning, how are you?

Rendered with the chat template:

<bos><start_of_turn>user
Translate the text to Yoruba:  Good morning, how are you?<end_of_turn>
<start_of_turn>model

The model answers with the language tag first (one token), then the translation, then <end_of_turn>:

<yor> {Yoruba translation}<end_of_turn>

The tags (<yor>, <hau>, ...) are ordinary tokens, so skip_special_tokens=True keeps them. Strip the leading tag yourself with re.sub(r"^<[a-z]{3}>\s*", "", text).

  • Put the language name from the table below in the prompt (Yoruba), not the ISO code. The tag in the answer is only a marker.
  • Use greedy decoding (do_sample=False or temperature=0) with max_new_tokens=256 for a sentence or short paragraph. The benchmarks used 768.
  • English to African language only. Send one sentence or a short paragraph per prompt, and split long documents into sentences.

With this SFT model, always set a stop budget and use frequency_penalty=0.1 in vLLM. The Transformers generate call has no frequency penalty. There, set max_new_tokens and, if outputs repeat, try repetition_penalty=1.1. We have not evaluated that setting.

Code

Transformers

import re, torch
from transformers import AutoTokenizer, AutoModelForCausalLM   # transformers >= 4.56; older versions: torch_dtype=

repo = "BeardedMonster/gemma-3-1b-translate-sft-best"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16).cuda().eval()

def translate(text, language, max_new_tokens=256):
    msgs = [{"role": "user", "content": f"Translate the text to {language}:  {text}"}]   # two spaces after the colon
    enc = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt", return_dict=True).to("cuda")
    with torch.no_grad():
        out = model.generate(**enc, max_new_tokens=max_new_tokens, do_sample=False)
    raw = tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True)   # "<yor> ..."
    return re.sub(r"^<[a-z]{3}>\s*", "", raw.strip())

print(translate("Good morning, how are you?", "Yoruba"))

# one sentence into five languages
for language in ["Yoruba", "Hausa", "Igbo", "Swahili", "Zulu"]:
    print(language, "->", translate("The meeting starts at nine tomorrow.", language))

vLLM

import re
from vllm import LLM, SamplingParams

repo = "BeardedMonster/gemma-3-1b-translate-sft-best"
llm = LLM(repo, dtype="bfloat16", max_model_len=4096)
tok = llm.get_tokenizer()

def build(language, text):
    msgs = [{"role": "user", "content": f"Translate the text to {language}:  {text}"}]
    return tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)

sentence = "The meeting starts at nine tomorrow."
languages = ["Yoruba", "Hausa", "Igbo", "Swahili", "Zulu"]
params = SamplingParams(temperature=0, max_tokens=256, frequency_penalty=0.1)   # greedy; the penalty is optional
outs = llm.generate([build(l, sentence) for l in languages], params)             # one batch, five languages
for language, o in zip(languages, outs):
    print(language, "->", re.sub(r"^<[a-z]{3}>\s*", "", o.outputs[0].text.strip()))

For an OpenAI-compatible server, run vllm serve BeardedMonster/gemma-3-1b-translate-sft-best --max-model-len 4096, then send the same user message to /v1/chat/completions with temperature=0.

Languages

There are 125 tags. Put the name from the first column in the prompt. "SFT data: none" means there was no SFT text for that tag, so the output is unusable. The last column is the FLORES+ devtest chrF++ of this model with greedy decoding and frequency penalty 0.1, which is the sensible way to run it. Where FLORES+ has no such language it shows NTREX or MAFAND.

Name used in the prompt Tag Script SFT data chrF++ (benchmark)
Yoruba <yor> Latin yes 22.86 (FLORES+)
Hausa <hau> Latin yes 48.22 (FLORES+)
Igbo <ibo> Latin yes 41.34 (FLORES+)
Pidgin <pcm> Latin yes 55.56 (MAFAND)
Efik <efi> Latin yes n/a
Twi <twi> Latin yes 35.45 (FLORES+)
Ewe <ewe> Latin yes 28.27 (FLORES+)
Fon <fon> Latin yes 19.80 (FLORES+)
Wolof <wol> Latin yes 30.22 (FLORES+)
Swahili <swh> Latin yes 60.44 (FLORES+)
Kinyarwanda <kin> Latin yes 36.53 (FLORES+)
Somali <som> Latin yes 40.42 (FLORES+)
Oromo <orm> Latin yes 23.68 (FLORES+)
Amharic <amh> Ethiopic (Ge'ez) yes 30.25 (FLORES+)
Tigrinya <tir> Ethiopic (Ge'ez) yes 17.19 (FLORES+)
Luganda <lug> Latin yes 25.48 (FLORES+)
Lingala <lin> Latin yes 39.13 (FLORES+)
Zulu <zul> Latin yes 51.26 (FLORES+)
Xhosa <xho> Latin yes 48.34 (FLORES+)
Afrikaans <afr> Latin yes 65.53 (FLORES+)
Shona <sna> Latin yes 40.00 (FLORES+)
Chichewa <nya> Latin yes 42.29 (FLORES+)
Sesotho <sot> Latin yes 44.00 (FLORES+)
Setswana <tsn> Latin yes 44.87 (FLORES+)
Malagasy <mlg> Latin yes 46.33 (FLORES+)
Ibibio <ibb> Latin none (cannot translate) n/a
Urhobo <urh> Latin yes n/a
Bemba <bem> Latin yes 27.10 (FLORES+)
Tumbuka <tum> Latin yes 30.36 (FLORES+)
Kirundi <run> Latin yes 29.96 (FLORES+)
Venda <ven> Latin yes 35.51 (NTREX)
Tsonga <tso> Latin yes 41.03 (FLORES+)
Sepedi <nso> Latin yes 45.16 (FLORES+)
Swati <ssw> Latin yes 31.58 (FLORES+)
South Ndebele <nbl> Latin yes n/a
North Ndebele <nde> Latin yes 32.54 (NTREX)
Sango <sag> Latin yes 28.29 (FLORES+)
Tiv <tiv> Latin yes n/a
Umbundu <umb> Latin yes 19.12 (FLORES+)
Kimbundu <kmb> Latin yes 20.03 (FLORES+)
Mossi <mos> Latin yes 18.23 (FLORES+)
Kikuyu <kik> Latin yes 26.57 (FLORES+)
Luo <luo> Latin yes 28.79 (FLORES+)
Kamba <kam> Latin yes 20.41 (FLORES+)
Edo <bin> Latin none (cannot translate) n/a
Dagbani <dag> Latin none (cannot translate) n/a
Okpe <oke> Latin yes n/a
Tachelhit <shi> Latin yes 0.82 (NTREX)
Dyula <dyu> Latin yes 12.14 (FLORES+)
Bambara <bam> Latin yes 23.59 (FLORES+)
Kabiye <kbp> Latin yes 18.13 (FLORES+)
Ghomala <bbj> Latin none (cannot translate) n/a
Kongo <kon> Latin yes n/a
Kabuverdianu <kea> Latin yes 23.89 (FLORES+)
Fante <fat> Latin none (cannot translate) n/a
Kanuri <knc> Latin yes 7.48 (FLORES+)
Ga <gaa> Latin none (cannot translate) n/a
Kabyle <kab> Latin yes 25.06 (FLORES+)
Nuer <nus> Latin yes 16.69 (FLORES+)
Congo Swahili <swc> Latin yes n/a
Luba-Kasai <lua> Latin yes 26.62 (FLORES+)
Kaonde <kqn> Latin yes n/a
Lunda <lun> Latin yes n/a
Isoko <iso> Latin yes n/a
Lozi <loz> Latin yes n/a
Wolaytta <wal> Latin yes n/a
Acholi <ach> Latin yes n/a
Tswa <tsc> Latin yes n/a
Makhuwa <vmw> Latin yes 20.98 (FLORES+)
Kuanyama <kua> Latin yes n/a
Sena <seh> Latin yes 25.29 (FLORES+)
Nyankore <nyn> Latin yes n/a
Herero <her> Latin none (cannot translate) n/a
Yao <yao> Latin yes n/a
Sidamo <sid> Latin yes n/a
Ndau <ndc> Latin yes n/a
Mende <men> Latin none (cannot translate) n/a
Krio <kri> Latin yes n/a
Luyia <luy> Latin none (cannot translate) n/a
Esan <ish> Latin none (cannot translate) n/a
Duala <dua> Latin none (cannot translate) n/a
Basaa <bas> Latin yes n/a
Cameroon Pidgin <wes> Latin none (cannot translate) n/a
Tamazight <tzm> Latin yes n/a
Fulah <ful> Latin yes n/a
Gun <guw> Latin yes n/a
Luvale <lue> Latin yes n/a
Tetela <tll> Latin yes n/a
Zande <zne> Latin yes n/a
Luba-Katanga <lub> Latin yes n/a
Seychellois Creole <crs> Latin yes n/a
Mauritian Creole <mfe> Latin yes 37.58 (FLORES+)
Ruund <rnd> Latin yes n/a
Nyaneka <nyk> Latin yes n/a
Kwangali <kwn> Latin yes n/a
Ndonga <ndo> Latin yes n/a
Zarma <dje> Latin yes n/a
Adangme <ada> Latin yes n/a
Egyptian Arabic <arz> Arabic yes 12.55 (FLORES+)
Songe <sop> Latin yes n/a
Mambwe <mgr> Latin yes n/a
Konzo <koo> Latin yes n/a
Chokwe <cjk> Latin yes 20.52 (FLORES+)
Coptic <cop> Coptic yes n/a
Lelemi <dop> Latin yes n/a
Bulu <bum> Latin yes n/a
Nyemba <nba> Latin yes n/a
Nyungwe <nyu> Latin yes n/a
Dinka <dik> Latin yes 10.40 (FLORES+)
Chopi <cce> Latin yes n/a
Chuabo <chw> Latin yes n/a
Tooro <ttj> Latin yes n/a
Lamba <lam> Latin yes n/a
Nupe <nup> Latin yes n/a
Tamasheq <taq> Latin yes 8.09 (FLORES+)
Alur <alz> Latin yes n/a
Tonga <toi> Latin yes n/a
Berber <ber> Latin none (cannot translate) n/a
Standard Moroccan Tamazight <zgh> Tifinagh none (cannot translate) 11.85 (FLORES+)
Afar <aar> Latin none (cannot translate) n/a
Baoule <bci> Latin none (cannot translate) n/a
Moroccan Arabic <ary> Arabic none (cannot translate) 13.10 (FLORES+)
Tunisian Arabic <aeb> Arabic none (cannot translate) 9.51 (FLORES+)
Teso <teo> Latin none (cannot translate) n/a
Adhola <adh> Latin none (cannot translate) n/a

Per-language performance of this model

Best five FLORES+ languages by chrF++ (frequency penalty 0.1): Afrikaans 65.5, Swahili 60.4, Zulu 51.3, Xhosa 48.3, Hausa 48.2. Weakest five: Kanuri 7.5, Tamasheq 8.1, Tunisian Arabic 9.5, Dinka 10.4, Standard Moroccan Tamazight 11.8.

In the table, "FLORES+ chrF++" is greedy with no penalty (macro 25.66). "freq. pen. 0.1" is vLLM with frequency_penalty=0.1 (macro 29.11). The spBLEU, AfriCOMET, NTREX and MAFAND columns are the greedy run without the penalty. Their macro scores are spBLEU 8.09, AfriCOMET 0.603 over 40 languages, NTREX 32.75 (24 languages) and MAFAND 40.00 (15 languages). With the penalty they are FLORES+ AfriCOMET 0.613, NTREX 35.12 and MAFAND 41.24.

Language (tag) FLORES+ chrF++ FLORES+ chrF++, freq. pen. 0.1 FLORES+ spBLEU FLORES+ AfriCOMET NTREX chrF++ MAFAND chrF++ MAFAND sentences (n)
Afrikaans (afr) 65.53 65.53 45.67 0.785 65.82 n/a n/a
Amharic (amh) 26.96 30.25 12.63 0.642 16.93 16.25 1,014
Bambara (bam) 19.20 23.59 2.47 0.486 n/a n/a n/a
Bemba (bem) 22.96 27.10 3.49 0.520 19.74 n/a n/a
Chichewa (nya) 40.04 42.29 12.96 0.662 42.53 41.28 1,003
Chokwe (cjk) 14.96 20.52 1.03 n/a n/a n/a n/a
Dinka (dik) 4.17 10.40 0.22 n/a n/a n/a n/a
Dyula (dyu) 8.39 12.14 0.39 n/a n/a n/a n/a
Egyptian Arabic (arz) 8.24 12.55 0.49 n/a n/a n/a n/a
Ewe (ewe) 26.34 28.27 6.30 0.596 22.61 n/a n/a
Fon (fon) 17.13 19.80 2.56 0.545 n/a n/a n/a
Hausa (hau) 45.22 48.22 20.49 0.672 45.67 33.19 1,498
Igbo (ibo) 39.73 41.34 18.79 0.663 43.01 47.93 1,458
Kabiye (kbp) 13.36 18.13 1.26 0.546 n/a n/a n/a
Kabuverdianu (kea) 17.88 23.89 2.73 n/a n/a n/a n/a
Kabyle (kab) 20.46 25.06 3.55 0.614 n/a n/a n/a
Kamba (kam) 17.30 20.41 2.14 0.465 n/a n/a n/a
Kanuri (knc) 2.70 7.48 0.11 n/a n/a n/a n/a
Kikuyu (kik) 23.14 26.57 4.25 0.592 n/a n/a n/a
Kimbundu (kmb) 14.59 20.03 0.85 0.429 n/a n/a n/a
Kinyarwanda (kin) 33.45 36.53 9.29 0.659 32.01 43.71 1,005
Kirundi (run) 27.01 29.96 5.52 0.626 n/a n/a n/a
Lingala (lin) 34.89 39.13 7.69 0.595 n/a n/a n/a
Luba-Kasai (lua) 21.43 26.62 1.97 0.508 n/a n/a n/a
Luganda (lug) 20.34 25.48 2.16 0.536 n/a 31.73 1,500
Luo (luo) 26.02 28.79 5.20 0.626 n/a 28.86 1,500
Makhuwa (vmw) 14.78 20.98 1.29 n/a n/a n/a n/a
Malagasy (mlg) 44.80 46.33 17.97 0.676 41.43 n/a n/a
Mauritian Creole (mfe) 34.35 37.58 9.05 n/a n/a n/a n/a
Moroccan Arabic (ary) 9.08 13.10 0.64 n/a n/a n/a n/a
Mossi (mos) 14.92 18.23 1.37 0.504 n/a n/a n/a
North Ndebele (nde) n/a n/a n/a n/a 31.65 n/a n/a
Nuer (nus) 9.97 16.69 1.08 0.427 n/a n/a n/a
Oromo (orm) 17.90 23.68 1.51 0.549 13.47 n/a n/a
Pidgin (pcm) n/a n/a n/a n/a n/a 55.49 1,562
Sango (sag) 25.16 28.29 3.57 n/a n/a n/a n/a
Sena (seh) 19.22 25.29 1.72 n/a n/a n/a n/a
Sepedi (nso) 41.70 45.16 15.02 0.663 26.55 n/a n/a
Sesotho (sot) 42.64 44.00 17.44 0.664 n/a n/a n/a
Setswana (tsn) 43.05 44.87 18.55 0.680 43.48 51.34 1,500
Shona (sna) 38.73 40.00 14.69 0.636 38.49 34.04 1,004
Somali (som) 39.22 40.42 13.20 0.643 40.82 n/a n/a
Standard Moroccan Tamazight (zgh) 5.62 11.85 0.34 n/a n/a n/a n/a
Swahili (swh) 59.79 60.44 38.52 0.735 59.29 53.72 1,822
Swati (ssw) 26.63 31.58 4.99 0.567 24.51 n/a n/a
Tachelhit (shi) n/a n/a n/a n/a 0.38 n/a n/a
Tamasheq (taq) 3.23 8.09 0.10 n/a n/a n/a n/a
Tigrinya (tir) 14.50 17.19 4.69 0.611 13.20 n/a n/a
Tsonga (tso) 37.95 41.03 11.98 0.642 n/a n/a n/a
Tumbuka (tum) 27.19 30.36 6.74 0.592 n/a n/a n/a
Tunisian Arabic (aeb) 6.66 9.51 0.44 n/a n/a n/a n/a
Twi (twi) 33.34 35.45 10.38 0.651 n/a 33.77 1,500
Umbundu (umb) 15.32 19.12 0.65 0.491 n/a n/a n/a
Venda (ven) n/a n/a n/a n/a 28.58 n/a n/a
Wolof (wol) 29.15 30.22 9.38 0.650 27.14 n/a n/a
Xhosa (xho) 47.26 48.34 22.81 0.664 42.99 56.77 1,001
Yoruba (yor) 21.03 22.86 6.03 0.588 21.58 24.43 1,550
Zulu (zul) 50.88 51.26 28.59 0.710 44.00 47.52 998

How measured. We used FLORES+ devtest (openlanguagedata/flores_plus, 54 languages), NTREX-128 (24 languages) and MAFAND-MT (15 languages), all with greedy decoding. chrF++ (word_order=2) and spBLEU (flores200 tokenizer) come from sacreBLEU. AfriCOMET is masakhane/africomet-stl-1.1, which covers 40 FLORES+ languages.

Comparison with other systems

system FLORES+ chrF++, 44 languages shared with NLLB TranslatePsy 19 languages NTREX 21 languages MAFAND 14 languages AfriCOMET-STL (40 languages)
1B SFT (this model), no penalty 28.75 38.98 34.54 38.90 0.603
1B SFT (this model), frequency penalty 0.1 31.87 41.11 36.86 40.22 0.613
1B RL (gemma-3-1b-translate-best) 37.93 45.18 42.06 43.69 0.681
385M SFT (general) 25.59 n/a n/a n/a 0.550
385M RL (general) 34.88 41.04 39.00 39.88 0.623
NLLB-200-distilled-600M 35.94 42.58 n/a n/a 0.662
NLLB-200-3.3B 38.09 44.66 43.26 44.61 0.677
TranslatePsy-AfriSLM-0.8B n/a 45.27 n/a n/a n/a

Where this model is behind. It is below NLLB-600M and NLLB-3.3B on every set. Without the penalty it beats NLLB-600M in 5 of the 44 languages and NLLB-3.3B in 3. With the penalty those become 8 and 5. It beats TranslatePsy-0.8B in only 2 or 3 of its 19 languages. On the plus side, it is 3.17 chrF++ above the 385M SFT on the 44 shared languages (no penalty).

Training summary

  1. Base model: google/gemma-3-1b-it, with 125 single-token language tags (<yor>, <ibo>, <nso>, ...) added to the tokenizer.
  2. SFT on language-stratified 4,096-token packs, 131,072 tokens per step, with Muon plus AdamW and fp32 master weights.
  3. Not in this model: RL, DPO, a science stage and TranslatePsy data.

Intended use and limitations

This is the SFT checkpoint of the 1B line. Use it as a starting point for further fine-tuning or RL, and as a baseline to compare RL against. For direct translation use the RL model BeardedMonster/gemma-3-1b-translate-best, which finishes and loops less.

  • It does not stop reliably without a loop guard. The finished rate on FLORES+ is 84.5%, or 99.8% with frequency penalty 0.1.
  • English to African language only. Other source languages and reverse directions are not supported.
  • Twenty tags have no SFT data (see the language table), so the model cannot translate them. For aeb, ary and zgh, FLORES+ chrF++ is 10 to 13 with the frequency penalty. RL cannot add a language the model never saw.
  • Some languages are weak. Tachelhit (shi) scores chrF++ 0.4 on NTREX even though it has SFT data. Treat any language with chrF++ below about 25 in the table as a rough draft at best, since most words are wrong. Examples are Kanuri, Tamasheq, Dinka, Standard Moroccan Tamazight, the Arabic dialects, Dyula, Chokwe and Nuer.
  • Keep inputs short. SFT packs were 4,096 tokens. Repetition loops and omissions grow with input length, and the benchmark rows are single sentences. Split documents into sentences.
  • Automatic metrics only, no human evaluation. AfriCOMET and chrF++ are imperfect, especially for the lowest-resource languages. Outputs are machine translations, so review them before use where errors matter, for example medical, legal or safety-critical text.

Citation and licence

Paper in preparation

@misc{Gemma_mt_2026,
  title  = {English-to-African-language translation with small Gemma-3 models: supervised fine-tuning and reinforcement learning},
  author = {{AletheiaAI}},
  year   = {2026},
}

Licence. license: other (commercial-use-with-attribution). Commercial and non-commercial use, modification and redistribution are allowed, with required attribution: credit "Translation models by Aletheia AI" and cite the accompanying paper. These weights are a derivative of Google Gemma 3, so the Gemma Terms of Use and Prohibited Use Policy also apply.

Downloads last month
180
Safetensors
Model size
1.0B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for BeardedMonster/gemma-3-1b-translate-sft-best

Finetuned
(597)
this model