Instructions to use BeardedMonster/gemma-3-270m-science-translate-best with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BeardedMonster/gemma-3-270m-science-translate-best with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="BeardedMonster/gemma-3-270m-science-translate-best")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BeardedMonster/gemma-3-270m-science-translate-best") model = AutoModelForCausalLM.from_pretrained("BeardedMonster/gemma-3-270m-science-translate-best", device_map="auto") - Notebooks
- Google Colab
- Kaggle
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-270m-science-translate-best
What this is: A 270M-parameter model that translates English into 77 African languages and is tuned for science text. It starts from our general model BeardedMonster/gemma-3-270m-translate-best (from google/gemma-3-270m-it), with a short science SFT stage and a further GRPO reinforcement-learning run on top. Science data cover six languages: Amharic, Hausa, Luganda, Sepedi, Yoruba and Zulu. The model only goes from English to an African language. You pick the target language by name in the prompt, and the model writes a three-letter language tag in front of the translation. A CPU build is available as BeardedMonster/gemma-3-270m-science-translate-best-GGUF.
On the AfriScience-MT test set (sentence level, 6 languages) the model scores chrF 50.2 (chrF++ 47.3). Translating a whole paper in one pass gives chrF 46.1, and 98% of papers finish. On general text (FLORES+ devtest, 45 languages) it is level with the general model: chrF++ 31.8 against 31.7 on the core subset. Core is the 48-sentence FLORES+ subset and extended is a larger FLORES+ subset (sentence counts are in the tables). The model is behind NLLB-200 fine-tuned on the same data (chrF 51.7-52.3) and above the paper's GPT-5.4 10-shot chrF (48.5), although without Yoruba it is behind it (52.2 against 53.5).
Quick start
Use one user turn, written exactly as in training. Put two spaces after the colon and send no system message:
Translate the text to {Language}: {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 {tag} {translation}: the three-letter tag, a space, the translation, then <end_of_turn>. For the example above the output starts with yor and then the Yoruba text. Strip the tag yourself (text[len(tag)+1:] if the output starts with tag + " ").
- Put the language name from the table below in the prompt (for example
Yoruba,PidginorCongo Swahili), never the ISO code. - Decode greedily (
do_sample=False) withmax_new_tokens256 for a sentence, or about 1,024 for a paragraph. Stop at<end_of_turn>(token id 106) or<eos>(id 1). Every number below uses greedy decoding. - English to African language only. The benchmark text is simplified science writing (lay summaries). Whole papers (about 900 source tokens) in one pass finish for 98% of the 28 test papers per language, but the output leaves content out: the median hypothesis/reference length ratio is 0.84, and paper-level chrF is about 4 below sentence level. For reliable coverage, split papers into sentences or short windows.
Code
Transformers
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
repo = "BeardedMonster/gemma-3-270m-science-translate-best"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype=torch.bfloat16, device_map="auto")
STOP = [tok.eos_token_id, tok.convert_tokens_to_ids("<end_of_turn>")] # 1 and 106
def translate(text, language, tag, 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(model.device)
out = model.generate(**enc, max_new_tokens=max_new_tokens, do_sample=False, eos_token_id=STOP)
s = tok.decode(out[0, enc["input_ids"].shape[1]:], skip_special_tokens=True).strip()
return s[len(tag) + 1:] if s.startswith(tag + " ") else s # drop the leading language tag
print(translate("Good morning, how are you?", "Yoruba", "yor"))
# one sentence into five languages
sentence = "Vaccination reduces the risk of severe disease in children."
for language, tag in [("Yoruba", "yor"), ("Hausa", "hau"), ("Swahili", "swh"), ("Zulu", "zul"), ("Amharic", "amh")]:
print(f"{language:10s} {translate(sentence, language, tag)}")
vLLM
from vllm import LLM, SamplingParams
llm = LLM("BeardedMonster/gemma-3-270m-science-translate-best", dtype="bfloat16", max_model_len=8192)
params = SamplingParams(temperature=0.0, max_tokens=256, stop_token_ids=[106])
sentence = "Vaccination reduces the risk of severe disease in children."
langs = [("Yoruba", "yor"), ("Hausa", "hau"), ("Swahili", "swh"), ("Zulu", "zul"), ("Amharic", "amh")]
convs = [[{"role": "user", "content": f"Translate the text to {name}: {sentence}"}] for name, _ in langs]
for (name, tag), out in zip(langs, llm.chat(convs, params)): # llm.chat applies the model's chat template
text = out.outputs[0].text.strip()
print(name, text[len(tag) + 1:] if text.startswith(tag + " ") else text)
Languages
The prompt accepts 85 language names. 77 of them are target languages we trained with RL. The other 8 are marked "zero-shot (unsupported)" (nde, fat, knc, gaa, men, luy, tzm, ful). We did not train them as targets, so we do not recommend them, and for nde and knc the model does not write the tag. The six languages with science data are marked. The script is Latin except for Amharic and Tigrinya, which use Ethiopic. The last column is the FLORES+ devtest core-subset chrF++ where the language is in FLORES+. Otherwise it is the first available of NTREX, MAFAND and SmolSent, with the benchmark and sentence count in brackets. We did not run SALT, GlotStoryBook, IbomMT or FLORES-MOZ for this checkpoint, so some languages have no number here.
| Name in prompt | Tag | Script | Support | chrF++ (benchmark, n) |
|---|---|---|---|---|
| Acholi | ach |
Latin | trained | 23.0 (SmolSent, 76) |
| Afrikaans | afr |
Latin | trained | 61.9 (FLORES+, 48) |
| Amharic | amh |
Ethiopic | trained, science data | 16.9 (FLORES+, 48) |
| Bambara | bam |
Latin | trained | 23.4 (FLORES+, 48) |
| Basaa | bas |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Bemba | bem |
Latin | trained | 32.5 (FLORES+, 48) |
| Cameroon Pidgin | wes |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Chichewa | nya |
Latin | trained | 40.8 (FLORES+, 48) |
| Congo Swahili | swc |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Dagbani | dag |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Duala | dua |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Dyula | dyu |
Latin | trained | 17.0 (FLORES+, 48) |
| Edo | bin |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Efik | efi |
Latin | trained | 23.6 (SmolSent, 76) |
| Esan | ish |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Ewe | ewe |
Latin | trained | 27.5 (FLORES+, 48) |
| Fante | fat |
Latin | zero-shot (unsupported) | not measured |
| Fon | fon |
Latin | trained | 20.1 (FLORES+, 48) |
| Fulah | ful |
Latin | zero-shot (unsupported) | not measured |
| Ga | gaa |
Latin | zero-shot (unsupported) | not measured |
| Ghomala | bbj |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Hausa | hau |
Latin | trained, science data | 45.0 (FLORES+, 48) |
| Herero | her |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Ibibio | ibb |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Igbo | ibo |
Latin | trained | 38.3 (FLORES+, 48) |
| Isoko | iso |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Kabiye | kbp |
Latin | trained | 20.2 (FLORES+, 48) |
| Kabuverdianu | kea |
Latin | trained | 24.6 (FLORES+, 48) |
| Kabyle | kab |
Latin | trained | 25.7 (FLORES+, 48) |
| Kamba | kam |
Latin | trained | 23.4 (FLORES+, 48) |
| Kanuri | knc |
Latin | zero-shot (unsupported) | 14.8 (FLORES+, 48) |
| Kaonde | kqn |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Kikuyu | kik |
Latin | trained | 28.9 (FLORES+, 48) |
| Kimbundu | kmb |
Latin | trained | 24.6 (FLORES+, 48) |
| Kinyarwanda | kin |
Latin | trained | 39.4 (FLORES+, 48) |
| Kirundi | run |
Latin | trained | 30.3 (FLORES+, 48) |
| Kongo | kon |
Latin | trained | 15.8 (SmolSent, 76) |
| Krio | kri |
Latin | trained | 21.1 (SmolSent, 76) |
| Kuanyama | kua |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Lingala | lin |
Latin | trained | 39.6 (FLORES+, 48) |
| Lozi | loz |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Luba-Kasai | lua |
Latin | trained | 31.2 (FLORES+, 48) |
| Luganda | lug |
Latin | trained, science data | 30.9 (FLORES+, 48) |
| Lunda | lun |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Luo | luo |
Latin | trained | 29.6 (FLORES+, 48) |
| Luyia | luy |
Latin | zero-shot (unsupported) | not measured |
| Makhuwa | vmw |
Latin | trained | 26.4 (FLORES+, 48) |
| Malagasy | mlg |
Latin | trained | 39.7 (FLORES+, 48) |
| Mende | men |
Latin | zero-shot (unsupported) | not measured |
| Mossi | mos |
Latin | trained | 22.7 (FLORES+, 48) |
| Ndau | ndc |
Latin | trained | 19.6 (SmolSent, 76) |
| North Ndebele | nde |
Latin | zero-shot (unsupported) | 29.0 (NTREX, 1201) |
| Nuer | nus |
Latin | trained | 21.6 (FLORES+, 48) |
| Nyankore | nyn |
Latin | trained | 21.5 (SmolSent, 76) |
| Okpe | oke |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Oromo | orm |
Latin | trained | 28.7 (FLORES+, 48) |
| Pidgin | pcm |
Latin | trained | 60.5 (MAFAND, 1358) |
| Sango | sag |
Latin | trained | 33.5 (FLORES+, 48) |
| Sena | seh |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Sepedi | nso |
Latin | trained, science data | 46.6 (FLORES+, 48) |
| Sesotho | sot |
Latin | trained | 41.2 (FLORES+, 48) |
| Setswana | tsn |
Latin | trained | 41.6 (FLORES+, 48) |
| Shona | sna |
Latin | trained | 35.5 (FLORES+, 48) |
| Sidamo | sid |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Somali | som |
Latin | trained | 36.0 (FLORES+, 48) |
| South Ndebele | nbl |
Latin | trained | 31.6 (SmolSent, 76) |
| Swahili | swh |
Latin | trained | 52.0 (FLORES+, 48) |
| Swati | ssw |
Latin | trained | 33.8 (FLORES+, 48) |
| Tachelhit | shi |
Latin | trained | not meaningful (NTREX reference is Arabic script, model writes Latin) |
| Tamazight | tzm |
Latin | zero-shot (unsupported) | not measured |
| Tigrinya | tir |
Ethiopic | trained | 11.7 (FLORES+, 48) |
| Tiv | tiv |
Latin | trained | 23.6 (SmolSent, 76) |
| Tsonga | tso |
Latin | trained | 42.0 (FLORES+, 48) |
| Tswa | tsc |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Tumbuka | tum |
Latin | trained | 29.5 (FLORES+, 48) |
| Twi | twi |
Latin | trained | 34.2 (FLORES+, 48) |
| Umbundu | umb |
Latin | trained | 24.6 (FLORES+, 48) |
| Urhobo | urh |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Venda | ven |
Latin | trained | 38.8 (NTREX, 1201) |
| Wolaytta | wal |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Wolof | wol |
Latin | trained | 28.7 (FLORES+, 48) |
| Xhosa | xho |
Latin | trained | 43.8 (FLORES+, 48) |
| Yao | yao |
Latin | trained | not measured for this checkpoint (no FLORES+/NTREX/MAFAND/SmolSent rows) |
| Yoruba | yor |
Latin | trained, science data | 28.7 (FLORES+, 48) |
| Zulu | zul |
Latin | trained, science data | 43.4 (FLORES+, 48) |
Per-language performance of this model
On the core subset the best five FLORES+ languages by chrF++ are Afrikaans 61.9, Swahili 52.0, Sepedi 46.6, Hausa 45.0 and Xhosa 43.8. The weakest five are Tigrinya 11.7, Kanuri 14.8, Amharic 16.9, Dyula 17.0 and Fon 20.1.
Cells show chrF++ with the sentence count in brackets. Core is the 48-sentence FLORES+ subset and extended is a larger FLORES+ subset (spBLEU is shown after the slash). "n/a" means there is no such benchmark for the language.
| Language | Tag | FLORES+ core chrF++ (n) | FLORES+ extended chrF++ / spBLEU (n) | NTREX core (n) | MAFAND core (n) | SmolSent core (n) | AfriCOMET (FLORES+ extended, n) |
|---|---|---|---|---|---|---|---|
| Acholi | ach |
n/a | n/a | n/a | n/a | 23.0 (76) | n/a |
| Afrikaans | afr |
61.9 (48) | 63.6 / 43.0 (1012) | 61.3 (1201) | n/a | 46.6 (76) | 0.747 (1012) |
| Amharic | amh |
16.9 (48) | 20.0 / 8.0 (1012) | 13.4 (1201) | 14.9 (778) | 13.0 (76) | 0.480 (1012) |
| Bambara | bam |
23.4 (48) | 24.7 / 5.5 (1012) | n/a | n/a | 16.7 (76) | 0.469 (1012) |
| Basaa | bas |
n/a | n/a | n/a | n/a | n/a | n/a |
| Bemba | bem |
32.5 (48) | 34.3 / 9.7 (1012) | 33.2 (1201) | n/a | 24.2 (76) | 0.586 (1012) |
| Cameroon Pidgin | wes |
n/a | n/a | n/a | n/a | n/a | n/a |
| Chichewa | nya |
40.8 (48) | 43.4 / 16.4 (1012) | 42.9 (1201) | 42.2 (1001) | 30.0 (76) | 0.677 (1012) |
| Congo Swahili | swc |
n/a | n/a | n/a | n/a | n/a | n/a |
| Dagbani | dag |
n/a | n/a | n/a | n/a | n/a | n/a |
| Duala | dua |
n/a | n/a | n/a | n/a | n/a | n/a |
| Dyula | dyu |
17.0 (48) | 18.1 / 3.0 (1012) | n/a | n/a | 18.1 (76) | 0.369 (1012) |
| Edo | bin |
n/a | n/a | n/a | n/a | n/a | n/a |
| Efik | efi |
n/a | n/a | n/a | n/a | 23.6 (76) | n/a |
| Esan | ish |
n/a | n/a | n/a | n/a | n/a | n/a |
| Ewe | ewe |
27.5 (48) | 31.5 / 10.0 (1012) | 30.4 (1201) | n/a | 24.0 (76) | 0.617 (1012) |
| Fante | fat |
n/a | n/a | n/a | n/a | n/a | n/a |
| Fon | fon |
20.1 (48) | 21.6 / 4.9 (1012) | n/a | n/a | 15.7 (76) | 0.607 (1012) |
| Fulah | ful |
n/a | n/a | n/a | n/a | n/a | n/a |
| Ga | gaa |
n/a | n/a | n/a | n/a | n/a | n/a |
| Ghomala | bbj |
n/a | n/a | n/a | n/a | n/a | n/a |
| Hausa | hau |
45.0 (48) | 45.7 / 21.0 (170) | 48.8 (1201) | 33.6 (1093) | 33.9 (76) | 0.606 (170) |
| Herero | her |
n/a | n/a | n/a | n/a | n/a | n/a |
| Ibibio | ibb |
n/a | n/a | n/a | n/a | n/a | n/a |
| Igbo | ibo |
38.3 (48) | 38.5 / 17.7 (453) | 43.7 (1201) | 42.9 (131) | 37.6 (76) | 0.656 (453) |
| Isoko | iso |
n/a | n/a | n/a | n/a | n/a | n/a |
| Kabiye | kbp |
20.2 (48) | 22.2 / 3.9 (1012) | n/a | n/a | n/a | 0.597 (1012) |
| Kabuverdianu | kea |
24.6 (48) | 26.3 / 6.5 (1012) | n/a | n/a | n/a | n/a |
| Kabyle | kab |
25.7 (48) | 26.7 / 7.3 (1012) | n/a | n/a | 20.7 (76) | 0.670 (1012) |
| Kamba | kam |
23.4 (48) | 25.0 / 5.9 (1012) | n/a | n/a | n/a | 0.490 (1012) |
| Kanuri | knc |
14.8 (48) | 15.2 / 2.7 (1012) | n/a | n/a | n/a | n/a |
| Kaonde | kqn |
n/a | n/a | n/a | n/a | n/a | n/a |
| Kikuyu | kik |
28.9 (48) | 32.1 / 9.7 (1012) | n/a | n/a | 25.3 (76) | 0.669 (1012) |
| Kimbundu | kmb |
24.6 (48) | 25.8 / 4.2 (1012) | n/a | n/a | n/a | 0.493 (1012) |
| Kinyarwanda | kin |
39.4 (48) | 42.1 / 17.9 (1012) | 37.4 (1201) | 49.3 (1001) | 28.5 (76) | 0.689 (1012) |
| Kirundi | run |
30.3 (48) | 34.2 / 10.7 (1012) | n/a | n/a | 25.3 (76) | 0.652 (1012) |
| Kongo | kon |
n/a | n/a | n/a | n/a | 15.8 (76) | n/a |
| Krio | kri |
n/a | n/a | n/a | n/a | 21.1 (76) | n/a |
| Kuanyama | kua |
n/a | n/a | n/a | n/a | n/a | n/a |
| Lingala | lin |
39.6 (48) | 42.6 / 14.4 (1012) | n/a | n/a | 31.2 (76) | 0.620 (1012) |
| Lozi | loz |
n/a | n/a | n/a | n/a | n/a | n/a |
| Luba-Kasai | lua |
31.2 (48) | 33.4 / 8.3 (1012) | n/a | n/a | n/a | 0.579 (1012) |
| Luganda | lug |
30.9 (48) | 35.8 / 10.6 (1010) | n/a | 45.4 (1497) | 24.9 (76) | 0.620 (1010) |
| Lunda | lun |
n/a | n/a | n/a | n/a | n/a | n/a |
| Luo | luo |
29.6 (48) | 32.6 / 10.0 (1012) | n/a | 32.6 (1386) | 22.3 (76) | 0.672 (1012) |
| Luyia | luy |
n/a | n/a | n/a | n/a | n/a | n/a |
| Makhuwa | vmw |
26.4 (48) | 26.9 / 5.4 (1012) | n/a | n/a | n/a | n/a |
| Malagasy | mlg |
39.7 (48) | 43.5 / 16.1 (1012) | 38.8 (1201) | n/a | 32.5 (76) | 0.614 (1012) |
| Mende | men |
n/a | n/a | n/a | n/a | n/a | n/a |
| Mossi | mos |
22.7 (48) | 22.9 / 4.3 (1012) | n/a | n/a | 15.6 (76) | 0.564 (1012) |
| Ndau | ndc |
n/a | n/a | n/a | n/a | 19.6 (76) | n/a |
| North Ndebele | nde |
n/a | n/a | 29.0 (1201) | n/a | n/a | n/a |
| Nuer | nus |
21.6 (48) | 20.9 / 6.8 (1012) | n/a | n/a | n/a | 0.527 (1012) |
| Nyankore | nyn |
n/a | n/a | n/a | n/a | 21.5 (76) | n/a |
| Okpe | oke |
n/a | n/a | n/a | n/a | n/a | n/a |
| Oromo | orm |
28.7 (48) | 31.7 / 7.0 (988) | 28.0 (1201) | n/a | 24.3 (76) | 0.639 (988) |
| Pidgin | pcm |
n/a | n/a | n/a | 60.5 (1358) | 54.4 (76) | n/a |
| Sango | sag |
33.5 (48) | 34.9 / 9.4 (1012) | n/a | n/a | n/a | 0.570 (1012) |
| Sena | seh |
n/a | n/a | n/a | n/a | n/a | n/a |
| Sepedi | nso |
46.6 (48) | 49.9 / 25.4 (1012) | 31.8 (1201) | n/a | 35.8 (76) | 0.694 (1012) |
| Sesotho | sot |
41.2 (48) | 45.5 / 20.3 (1012) | n/a | n/a | 32.7 (76) | 0.674 (1012) |
| Setswana | tsn |
41.6 (48) | 46.1 / 22.2 (982) | 48.2 (1201) | 54.3 (1494) | 39.9 (76) | 0.694 (982) |
| Shona | sna |
35.5 (48) | 39.6 / 14.8 (1012) | 38.7 (1201) | 34.5 (1000) | 29.4 (76) | 0.644 (1012) |
| Sidamo | sid |
n/a | n/a | n/a | n/a | n/a | n/a |
| Somali | som |
36.0 (48) | 40.7 / 15.9 (1012) | 43.3 (1201) | n/a | 28.5 (76) | 0.641 (1012) |
| South Ndebele | nbl |
n/a | n/a | n/a | n/a | 31.6 (76) | n/a |
| Swahili | swh |
52.0 (48) | 58.6 / 36.1 (1012) | 56.7 (1201) | 52.5 (1616) | 42.7 (76) | 0.718 (1012) |
| Swati | ssw |
33.8 (48) | 38.0 / 13.2 (1012) | 37.8 (1201) | n/a | 28.6 (76) | 0.618 (1012) |
| Tachelhit | shi |
n/a | n/a | 1.0 (1201) (script mismatch) | n/a | n/a | n/a |
| Tamazight | tzm |
n/a | n/a | n/a | n/a | n/a | n/a |
| Tigrinya | tir |
11.7 (48) | 13.9 / 4.0 (1012) | 11.9 (1201) | n/a | 9.3 (76) | 0.587 (1012) |
| Tiv | tiv |
n/a | n/a | n/a | n/a | 23.6 (76) | n/a |
| Tsonga | tso |
42.0 (48) | 46.0 / 20.9 (1012) | n/a | n/a | 35.3 (76) | 0.662 (1012) |
| Tswa | tsc |
n/a | n/a | n/a | n/a | n/a | n/a |
| Tumbuka | tum |
29.5 (48) | 33.8 / 10.2 (1012) | n/a | n/a | 28.1 (76) | 0.608 (1012) |
| Twi | twi |
34.2 (48) | 37.4 / 14.5 (1012) | n/a | 37.0 (1486) | 26.2 (76) | 0.669 (1012) |
| Umbundu | umb |
24.6 (48) | 25.4 / 3.1 (1012) | n/a | n/a | n/a | 0.564 (1012) |
| Urhobo | urh |
n/a | n/a | n/a | n/a | n/a | n/a |
| Venda | ven |
n/a | n/a | 38.8 (1201) | n/a | 27.6 (76) | n/a |
| Wolaytta | wal |
n/a | n/a | n/a | n/a | n/a | n/a |
| Wolof | wol |
28.7 (48) | 29.9 / 10.4 (1012) | 28.6 (1201) | n/a | 22.4 (76) | 0.660 (1012) |
| Xhosa | xho |
43.8 (48) | 45.2 / 20.4 (1012) | 41.2 (1201) | 52.6 (999) | 32.1 (76) | 0.653 (1012) |
| Yao | yao |
n/a | n/a | n/a | n/a | n/a | n/a |
| Yoruba | yor |
28.7 (48) | 28.2 / 12.6 (657) | 30.1 (1201) | 31.2 (247) | 25.2 (76) | 0.698 (657) |
| Zulu | zul |
43.4 (48) | 49.3 / 25.5 (976) | 42.7 (1201) | 46.5 (547) | 37.8 (76) | 0.691 (976) |
The NTREX reference for Tachelhit (shi) is in Arabic script and the model writes Latin, so that score is a script mismatch and not a quality measure.
AfriScience-MT (science domain), English -> X, test split
AfriScience-MT is a six-language benchmark (Amharic, Hausa, Luganda, Sepedi, Yoruba, Zulu). Each language has 970 test sentences and 28 test papers, which are plain-language science summaries translated by professionals.
| Language | Sentence chrF | Sentence chrF++ | Sentence BLEU | Sentence spBLEU | Paper chrF | Paper chrF++ | Paper BLEU | Paper spBLEU | Papers finished | Paper length ratio (hyp/ref chars) |
|---|---|---|---|---|---|---|---|---|---|---|
| Amharic | 26.6 | 24.3 | 6.0 | 13.2 | 25.2 | 22.1 | 2.9 | 8.8 | 96% | 0.90 |
| Hausa | 61.9 | 59.9 | 36.9 | 38.0 | 59.7 | 57.1 | 28.6 | 29.8 | 100% | 0.83 |
| Luganda | 49.3 | 44.9 | 17.1 | 23.4 | 45.5 | 39.4 | 8.0 | 14.5 | 96% | 0.92 |
| Sepedi (Northern Sotho) | 58.5 | 56.5 | 33.4 | 35.9 | 54.8 | 51.9 | 21.6 | 23.5 | 100% | 0.86 |
| Yoruba | 40.1 | 39.0 | 17.4 | 22.6 | 32.4 | 30.8 | 9.3 | 13.2 | 96% | 0.88 |
| Zulu | 64.7 | 59.2 | 26.0 | 37.7 | 58.6 | 51.6 | 16.0 | 25.4 | 100% | 0.82 |
| macro (6 languages) | 50.2 | 47.3 | 22.8 | 28.5 | 46.0 | 42.2 | 14.4 | 19.2 | 98% | 0.87 |
How measured. Greedy decoding, with each test sentence translated on its own for sentence level (max_new_tokens 512) and each test paper translated in one pass for paper level (max_new_tokens 7,168). chrF is sacreBLEU chrF without word n-grams (the metric of the published tables), chrF++ uses word_order=2 and spBLEU is BLEU with the flores200 tokenizer, all scored per language and averaged over the 6 languages.
On general text we used FLORES+ devtest (45 languages), averaged over languages, with greedy decoding and 768 tokens. Core chrF++ is 31.83 and extended is 34.31, extended spBLEU is 12.66, and 100% finished. NTREX-128 (24 languages) gives 37.25 extended and 35.73 core, and MAFAND-MT (15 languages) gives 42.20 extended and 42.00 core. Compared with the general model, FLORES+ chrF++ is up by 0.23 (extended). The gain is concentrated in the six science-data languages (+0.82, against +0.14 for the other 39). The learned metrics are slightly lower (AfriCOMET -0.0016 on FLORES+). The benchmarks are the FLORES+ devtest, NTREX-128, MAFAND-MT and SmolSent test splits, and AfriCOMET is masakhane/africomet-stl-1.1.
Comparison with other systems
Science task: AfriScience-MT test, sentence level, chrF
Our rows are measured by us. The NLLB rows are from the AfriScience-MT paper (Table 12). The GPT-5.4 and Gemini 3.1 Flash-Lite rows are the paper's chrF averages (Table 7: 48.5 and 48.8), with per-language values from the dataset's released results file. The dataset's released predictions for these two models score higher when we re-score them with sacreBLEU chrF (GPT-5.4 53.3, Gemini 52.2), so against those predictions the picture is closer to level. GPT-5.4 and Gemini were prompted with 10 examples, while NLLB was fine-tuned on the train split, as this model was. The last column is the macro without Yoruba, because the published NLLB Yoruba values (17.6 to 17.7) are very low.
| System | amh | hau | lug | nso | yor | zul | macro chrF | macro without yor |
|---|---|---|---|---|---|---|---|---|
| this model | 26.6 | 61.9 | 49.3 | 58.5 | 40.1 | 64.7 | 50.2 | 52.2 |
gemma-3-270m-translate-best (our general model) |
25.3 | 59.4 | 46.2 | 55.9 | 37.4 | 63.4 | 47.9 | 50.0 |
| NLLB-200-1.3B fine-tuned (published) | 45.5 | 67.7 | 51.5 | 64.3 | 17.7 | 67.2 | 52.3 | 59.3 |
| NLLB-200-distilled-600M fine-tuned (published) | 44.4 | 66.9 | 50.6 | 64.2 | 17.6 | 66.3 | 51.7 | 58.5 |
| GPT-5.4 10-shot (published) | 39.6 | 59.7 | 50.4 | 55.3 | 23.5 | 62.7 | 48.5 | 53.5 |
| Gemini-3.1-Flash-Lite 10-shot (published) | 41.6 | 61.1 | 49.5 | 55.9 | 22.9 | 61.8 | 48.8 | 54.0 |
Science task: SSA-COMET, sentence level
SSA-COMET (x100), English to African language, AfriScience-MT test, six languages. The published rows are from the AfriScience-MT paper (Tables 2 and 3), which uses SSA-COMET as its main metric. Ours is the reference-free SSA-COMET-QE (McGill-NLP/ssa-comet-qe), the variant that reproduces the paper's released values in our checks. SSA-COMET was also part of our RL reward, so read our numbers with care. On this metric the models are behind GPT-5.4, Gemini 3.1 Flash-Lite and fine-tuned NLLB.
| System | amh | hau | lug | nso | yor | zul | Avg |
|---|---|---|---|---|---|---|---|
| GPT-5.4 10-shot (paper) | 66.6 | 64.8 | 70.6 | 70.7 | 68.0 | 66.2 | 67.8 |
| Gemini-3.1-Flash-Lite 10-shot (paper) | 67.8 | 64.8 | 70.3 | 70.1 | 67.8 | 65.9 | 67.8 |
| NLLB-200-1.3B fine-tuned (paper) | 66.0 | 63.3 | 70.0 | 70.7 | 67.3 | 66.0 | 67.2 |
| NLLB-200-distilled-600M fine-tuned (paper) | 65.1 | 62.9 | 69.5 | 70.3 | 66.8 | 65.7 | 66.7 |
| 270M science RL final (this model) | 53.7 | 60.8 | 65.3 | 65.6 | 65.3 | 62.3 | 62.2 |
270M general RL (gemma-3-270m-translate-best) |
54.9 | 61.3 | 65.4 | 66.4 | 66.5 | 62.4 | 62.8 |
| 385M science RL final | 58.9 | 58.4 | 60.6 | 65.6 | 64.8 | 61.2 | 61.6 |
| 1B science RL final | 65.2 | 62.6 | 66.7 | 67.6 | 66.8 | 63.9 | 65.5 |
Science task: whole paper in one pass, chrF
| System | amh | hau | lug | nso | yor | zul | macro chrF | macro without yor |
|---|---|---|---|---|---|---|---|---|
| this model | 25.2 | 59.7 | 45.5 | 54.8 | 32.4 | 58.6 | 46.0 | 48.8 |
gemma-3-270m-translate-best (our general model) |
21.4 | 47.1 | 31.6 | 35.0 | 22.5 | 40.6 | 33.0 | 35.2 |
General task: FLORES+ devtest (identical sentences, scored by us)
The scores are chrF++ averaged over languages, on identical sentences, and we scored every system ourselves. Core and extended mean the same subsets as above. The NLLB models ran with CTranslate2 and beam 4. TranslatePsy-AfriSLM used the prompt from its model card with greedy decoding.
| Language set (FLORES+ devtest, English -> X) | System | core chrF++ | extended chrF++ |
|---|---|---|---|
| 43 languages covered by NLLB-200 | this model | 32.35 | 34.93 |
| NLLB-200-distilled-600M | 33.00 | 36.43 | |
| NLLB-200-3.3B | 35.29 | 38.41 | |
| 19 TranslatePsy languages | this model | 38.53 | 41.59 |
| NLLB-200-distilled-600M | 39.09 | 42.58 | |
| NLLB-200-3.3B | 41.50 | 44.66 | |
| TranslatePsy-AfriSLM-0.8B | 41.91 | 45.27 | |
| 9 languages scored for TranslatePsy-2B | this model | 39.17 | 41.70 |
| NLLB-200-distilled-600M | 40.72 | 44.18 | |
| NLLB-200-3.3B | 43.53 | 46.29 | |
| TranslatePsy-AfriSLM-0.8B | 43.63 | 46.61 | |
| TranslatePsy-AfriSLM-2B | 44.13 | 46.44 |
On other benchmarks (point values, NLLB-200-3.3B beam 4 on the same rows):
| Benchmark (English -> X) | Subset | Languages | This model chrF++ | NLLB-3.3B chrF++ | NLLB minus this model |
|---|---|---|---|---|---|
| FLORES+ devtest | core | 44 | 31.95 | 34.99 | +3.04 |
| FLORES+ devtest | extended | 44 | 34.48 | 38.09 | +3.61 |
| NTREX-128 | core | 21 | 37.56 | 41.47 | +3.91 |
| NTREX-128 | extended | 21 | 39.17 | 43.20 | +4.03 |
| MAFAND-MT test | core | 14 | 40.69 | 43.99 | +3.31 |
| MAFAND-MT test | extended | 14 | 40.90 | 44.18 | +3.29 |
| SmolSent | core | 36 | 27.22 | 32.45 | +5.23 |
| SmolSent | extended | 36 | 31.92 | 37.22 | +5.30 |
Learned metrics on the extended FLORES+ subset are below. AfriCOMET and SSA-COMET were also used during RL, so read them with care, and neural metrics tend to favour NLLB-like output.
| System | AfriCOMET (ref-based stl-1.1), 43 NLLB languages (42 scored) | AfriCOMET, 19 TranslatePsy languages | SSA-COMET-MTL x100 (ref-based), 22 languages | SSA-COMET-MTL x100, 19 TranslatePsy languages |
|---|---|---|---|---|
| this model | 0.618 | 0.654 | 51.7 | 52.6 |
| NLLB-200-distilled-600M | 0.654 | 0.688 | 56.7 | 56.7 |
| NLLB-200-3.3B | 0.669 | 0.701 | 59.3 | 59.1 |
| TranslatePsy-AfriSLM-0.8B | n/a (not run on the 43 set) | 0.717 | n/a (not run on the 22 set) | 60.8 |
On the 21 languages we share with the AfriqueLLM models, this model scores 39.5 chrF++ (extended subset). The adapted Llama, Gemma and Qwen models score 36.7-38.6, and the 50-language Qwen3.5-4B variant scores 41.7. These are published 5-shot numbers from a different harness and split, so treat the gap as a rough guide. The Gemma-3-270m-it base model with the same prompt scores 13.0 chrF++ (core subset).
Where this model is ahead and behind: on science text it is behind fine-tuned NLLB-200 (51.7-52.3 chrF, or about 7 chrF behind when Yoruba is left out). It is above the paper's GPT-5.4 and Gemini 10-shot chrF (48.5, 48.8), but 2 to 3 points below the dataset's released predictions for those models (53.3, 52.2). On the paper's main metric, SSA-COMET, it is about 5 points behind GPT-5.4 and Gemini (62.2 against 67.8). In Amharic it is far behind NLLB-200 (26.6 vs 44-46). On general text it is behind NLLB-200-3.3B by 2.9 chrF++ (core) and 3.5 (extended) on the 43 shared languages, behind NLLB-200-distilled-600M by 0.65 and 1.5, and behind TranslatePsy-AfriSLM-0.8B by 3.4 and 3.7 on its 19 languages. The per-language gaps are the same as for the general model: Amharic, Tigrinya, Kabuverdianu, Nuer and Kirundi are far behind NLLB. We did not measure NLLB-3.3B, NLLB-600M or TranslatePsy on AfriScience-MT.
Training summary
- Base model:
google/gemma-3-270m-itwith full fine-tuning, starting from the general modelgemma-3-270m-translate-best(SFT on public English-to-African parallel data for 77 languages, then GRPO). - Science SFT: a short supervised stage (about 320 steps, learning rate 3e-6) on a mix of the AfriScience-MT training split (6 languages), replay of general human references, self-distilled examples and long-document distillation. The result is merged with the general model by weight interpolation (0.7 weight on the science stage).
- RL (GRPO): 401 steps on top of the merged model, with groups of 16 samples including one greedy member, learning rate 1e-6 and KL coefficient 0.1. Prompts are 70% science text and 30% general text. The reward is reference-free quality estimation (AfriCOMET-QE and SSA-COMET), plus guards for language ID, copying, repetition and length.
Intended use and limitations
Use it to translate simplified science, health and agriculture text, and general text, from English into African languages. It also suits offline and CPU experiments and is a base for more fine-tuning.
- English to African language only. It does not do African to English or African to African, and languages outside the table are unsupported. The zero-shot tags (
nde,fat,knc,gaa,men,luy,tzm,ful) cannot be translated reliably. - Science data covers six languages only. The other languages behave like the general model.
- Weak languages: low-resource languages are weak (Amharic 26.6 and Yoruba 40.1 sentence chrF on AfriScience-MT, see the tables). Diacritics may be lost or words invented, and for low-resource languages the text style is dominated by religious text.
- Short inputs: prefer sentences and short paragraphs. A whole-paper single pass writes output about 13-16% shorter than the reference (character ratio 0.87 macro, 0.84 median) and sometimes loops.
- Automatic metrics only, no human evaluation. We did no native-speaker review and no safety evaluation. AfriCOMET and SSA-COMET were also used during RL, so read them with care. Outputs are machine translations, so have a native speaker review them before use in legal, medical 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
- 132