--- library_name: transformers pipeline_tag: translation language: - en - yor - hau - ibo - pcm - efi - twi - ewe - fon - wol - swh - kin - som - orm - amh - tir - lug - lin - zul - xho - afr - sna - nya - sot - tsn - mlg - ibb - urh - bem - tum - run - ven - tso - nso - ssw - nbl - nde - sag - tiv - umb - kmb - mos - kik - luo - kam - bin - dag - oke - shi - dyu - bam - kbp - bbj - kon - kea - fat - knc - gaa - kab - nus - swc - lua - kqn - lun - iso - loz - wal - ach - tsc - vmw - kua - seh - nyn - her - yao - sid - ndc - men - kri - luy - ish - dua - bas - wes - tzm - ful - guw - lue - tll - zne - lub - crs - mfe - rnd - nyk - kwn - ndo - dje - ada - arz - sop - mgr - koo - cjk - cop - dop - bum - nba - nyu - dik - cce - chw - ttj - lam - nup - taq - alz - toi - ber - zgh - aar - bci - ary - aeb - teo - adh base_model: google/gemma-3-270m-it license: other tags: - translation - african-languages - low-resource - gemma3 - english-to-african - grpo - archive - branches --- **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-0.4B-translate-rl **What this is.** An archive of earlier and alternative checkpoints of our 385M English to African-language translator. It covers 125 language tags and goes from English into African languages only. Every checkpoint is its own branch, and each one loads the same way as the final models. **For normal use, take the final models instead.** The general model is [`BeardedMonster/gemma-3-385m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-translate-best), which is also branch `main` here. The science model is [`BeardedMonster/gemma-3-385m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-science-translate-best), which is also branch `science-rl-final`. Their cards have the prompt format, code and per-language results. The final general model scores chrF++ 31.66 on FLORES+ devtest (54 languages, greedy decoding) and 0.628 held-out AfriCOMET. ## Branches | branch | what it is | status | |---|---|---| | `main` | Final general model | **recommended** (same as `gemma-3-385m-translate-best`) | | `science-rl-final` | Final science model | **recommended** (same as `gemma-3-385m-science-translate-best`) | | `sft` | General model after supervised fine-tuning, before RL | baseline for comparing RL gains | | `latest` | Last saved state of the general RL run | earlier RL checkpoint | | `stage-a-b64` | Early checkpoint of the first RL phase | earlier RL checkpoint | | `stage-a-final` | End of the first RL phase | earlier RL checkpoint | | `stage-b1-b256` | Best checkpoint of the second RL phase | earlier RL checkpoint | | `stage-b1-final` | End of the second RL phase | earlier RL checkpoint | | `stage-g-weak-latest` | RL run focused on eight weak West-African languages | experimental, no gain, not recommended | | `science-sft` | Science fine-tuned model blended with the general model; starting point of the science model | earlier science checkpoint | | `science-sft-alpha1` | Science fine-tuned model without blending | experimental, not recommended | | `science-rl` | Earlier science RL checkpoint | earlier science checkpoint | | `science-rl-latest` | Intermediate science RL state | earlier science checkpoint | | `long-rl` | Experimental RL on long documents (best checkpoint) | experimental, whole-document translation still unreliable | | `long-rl-latest` | End of the same long-document run | experimental, not recommended | | `experiments-e04-seed2-step100` | Repeat run of the RL recipe | experimental, not recommended | | `experiments-e04-seed3-step100` | Second repeat run of the RL recipe | experimental, not recommended | | `experiments-e04-a_base-step100` | RL ablation run | experimental, not recommended | | `experiments-e04-c_noref-step100` | RL ablation run | experimental, not recommended | | `experiments-e04-d_noguide-step100` | RL ablation run | experimental, not recommended | | `experiments-e14-science-rl-only-final` | Science RL without the science fine-tuning step | experimental, weaker than `science-rl-final` | | `growth-a0` | Earlier, smaller base model that the 385M model was grown from | earlier base model | | `growth-a2-base` | Base-model ablation | experimental, not recommended | | `growth-a2-up6` | Base-model ablation | experimental, not recommended | | `growth-a2-up12` | Base-model ablation | experimental, not recommended | The `growth-*` branches are smaller early models, not full translators. They use the same tag layout. ## How to load a branch The prompt is one user turn with two spaces after the colon. Use the language **name**, never the ISO code. The model answers with one language tag, then the translation. Tag stripping and vLLM work as described on the card of the final model. ```python import torch from transformers import AutoTokenizer, AutoModelForCausalLM repo, branch = "AletheiaAING/gemma-0.4B-translate-rl", "sft" # any branch name from the table above tok = AutoTokenizer.from_pretrained(repo, revision=branch) model = AutoModelForCausalLM.from_pretrained(repo, revision=branch, dtype=torch.bfloat16).to("cuda").eval() ``` ## Training summary 1. Base model: `google/gemma-3-270m-it`, grown to 385M parameters, with 125 single-token language tags ``. 2. SFT on English to African-language parallel and instruction data. 3. RL (GRPO) with a reference-free quality-estimation reward, run in several phases. The science models add a science fine-tuning step on AfriScience-MT. The cards of the final models have the full details. ## Intended use and limitations This repo is an archive of earlier checkpoints, kept so the runs can be reproduced. Use the final models for translation. * English to African language only. Other source languages and reverse directions are not trained. * Some tags have no SFT data and cannot be translated. * Very low-resource languages give rough drafts. * Translate one sentence or a short paragraph at a time. Whole documents are unreliable, even on the long-document branches. * Automatic metrics only, no human evaluation. * These are machine translations. Have them checked before using them where errors matter, such as 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](https://ai.google.dev/gemma/terms) and Prohibited Use Policy also apply.