BeardedMonster commited on
Commit
3a41b5d
·
verified ·
1 Parent(s): 3fee887

Model card: shorter summary (performance, usage, licence, training overview)

Browse files
Files changed (1) hide show
  1. README.md +64 -102
README.md CHANGED
@@ -130,7 +130,6 @@ language:
130
  - adh
131
  base_model: google/gemma-3-270m-it
132
  license: other
133
- license_name: sabiyarn-commercial-use-with-attribution
134
  license_link: https://huggingface.co/AletheiaAING/gemma-0.4B-translate-rl/blob/main/LICENSE.md
135
  tags:
136
  - translation
@@ -140,134 +139,97 @@ tags:
140
  - english-to-african
141
  - grpo
142
  - archive
143
- - 385m
144
- - private-archive
145
  - branches
146
  ---
147
 
148
- **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 (in preparation). This model is a derivative of Google Gemma 3, so the Gemma Terms of Use and Prohibited Use Policy (https://ai.google.dev/gemma/terms) also apply.**
149
 
150
- # AletheiaAING/gemma-0.4B-translate-rl: archive of the 385M English-to-African translator line (private)
151
 
152
- **What this is.** A **private archive repository**: one Hugging Face branch per checkpoint of the 385M study (SFT, the RL stages, the science line, the long-document RL, seed and ablation runs, and the grown base models).
153
- Every branch holds one `Gemma3ForCausalLM` checkpoint (385,144,448 parameters, 39 layers, 125 single-token language tags) except the `growth-*` branches, which are smaller models.
154
- **This archive holds every branch of the 385M line and is kept for reproduction of the paper tables; the final models are the public best repositories listed below.** The task is English to African languages only, with the prompt
155
- `Translate the text to Yoruba: Good morning, how are you?` (language name, two spaces after the colon; answer = tag token + translation + `<end_of_turn>`). Optimiser states are not stored.
156
 
157
- **Final models:** general model [`BeardedMonster/gemma-3-385m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-translate-best) (= branch `main`), science model
158
- [`BeardedMonster/gemma-3-385m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-science-translate-best) (= branch `science-rl-final`). Per-language results are on those cards.
159
- No per-language table is given here.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
  ## How to load a branch
162
 
 
 
163
  ```python
164
  import torch
165
  from transformers import AutoTokenizer, AutoModelForCausalLM
166
 
167
- repo, branch = "AletheiaAING/gemma-0.4B-translate-rl", "stage-a-final" # any branch name from the table below
168
- tok = AutoTokenizer.from_pretrained(repo, revision=branch, token=True) # private repo: log in with `huggingface-cli login` or pass a token
169
- model = AutoModelForCausalLM.from_pretrained(repo, revision=branch, dtype=torch.bfloat16, token=True).to("cuda").eval()
170
  ```
171
 
172
- Prompting, tag stripping and vLLM usage are identical to the general card. The `growth-*` branches are not translators in the same sense (A0 and the A2 arms are early SFT stages with a different layer count); they use the same tag layout.
173
-
174
- ## Branch-by-branch description
175
-
176
- The training chain is: **`growth-a0`** (A0) -> grown to 385M -> **`sft`** -> RL stage **`stage-a-*`** -> **`stage-b1-*`** -> mixed (**`main`**, `latest`) ->
177
- (i) weak-group run `stage-g-weak-latest`; (ii) science SFT `science-sft` -> science RL `science-rl*` -> long-document RL `long-rl*`. The `experiments-*` branches branch off the SFT (E-04, E-11) or off `main` (E-14).
178
- FLORES+ numbers are language-macro chrF++ over 54 languages (greedy, 768 new tokens, vLLM bf16, clean rows; FLORES+ has no flagged rows). "Supports" refers to sections and tables of `paper_385m/paper.md`.
179
-
180
- | branch | what it is | stage / step | purpose | headline metric where measured | supports |
181
- |---|---|---|---|---|---|
182
- | `main` | Final general RL model, the **mixed-stage best**. Published as [`BeardedMonster/gemma-3-385m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-translate-best). | mixed RL stage, step 50 of 60 (dev chrF++ 40.9033), start = B1 best | Headline general model of the study. | FLORES+ 31.66 chrF++ (54 languages), NTREX 37.17 (24), MAFAND 40.78 (15), all 93 cells 34.55; held-out AfriCOMET 0.6284 (76 cells) | Sections 7.2 and 7.3 (RL against SFT; chain), Section 9 |
183
- | `latest` | Last saved weights of the mixed stage. | mixed RL stage, step 60 | Resume point / last state of the stage. | not measured (only `main`, the step-50 best, was evaluated) | none |
184
- | `stage-a-b64` | RL stage A, dev-best checkpoint at the time it was saved. | RL stage A step 200 (dev chrF++ 40.4697, 720-sentence FLORES+ dev subset) | Early checkpoint of stage A. | dev chrF++ 40.47 (benchmarks not measured; every benchmark table uses step 400) | Section 7.3 (dev curve only) |
185
- | `stage-a-final` | End of RL stage A (the stage that carries 94% of the RL gain). | RL stage A step 400 (start = SFT final) | Evaluated as "RL stage A" in all tables. | FLORES+ 30.81 chrF++ (+7.96 [+7.76, +8.16] over the SFT), NTREX +7.43, MAFAND +5.04 | Section 7.3 table; Section 7.6 comparison rows |
186
- | `stage-b1-b256` | RL stage B1 best checkpoint (longer windows, b256 bin, reference domain). | B1 step 50 (dev chrF++ 40.7425), start = stage A step 400 | Start point of the mixed stage. | FLORES+ 31.35 chrF++ (+0.54 over stage A), NTREX +0.30, MAFAND -0.00 | Section 7.3 table |
187
- | `stage-b1-final` | End of B1 (dev-plateau wind-down). | B1 step 135 | Checks whether the choice of the B1 checkpoint mattered (E-20). | FLORES+ +0.04 [+0.00, +0.08] chrF++ over B1 best; over all 93 cells +0.01 [-0.02, +0.04] | Section 7.3 (E-20 table) |
188
- | `stage-g-weak-latest` | Continued RL on eight weak West-African languages (mos fon kbp bam wol ewe twi dyu); no `best/` was written, this is the final. | weak-group run, step 85 (stopped at the plateau rule at step 75), start = `main` | Test whether targeted RL helps weak languages (negative result). | targets +0.03 [-0.06, +0.12] chrF++ (pre-registered: at least +1.0); other 46 languages -0.09 [-0.13, -0.05]; FLORES+ 54-language macro 31.59 against 31.66 for `main` | Section 7.4; Section 11 (negative results) |
189
- | `science-sft` | Science SFT on AfriScience-MT train, **interpolated with its start at alpha 0.5**. | AdamW 3e-6, 283 steps; weights = 0.5 x `main` + 0.5 x science-SFT end point | Start of the science RL. | AfriScience-MT test (6 languages) chrF 46.63 (`main`: 45.40), SSA-COMET-QE 0.6118 (no gain), NTREX 36.90, MAFAND 41.05 chrF++ | Section 7.8 (alpha sweep table) |
190
- | `science-sft-alpha1` | Science SFT end point (no interpolation, alpha 1.0). | same run, alpha 1.0 | Shows the cost of the full science SFT; not used further. | AfriScience-MT chrF 44.92 (below `main`), NTREX 34.71, MAFAND 39.58 chrF++ | Section 7.8 (alpha sweep table) |
191
- | `science-rl` | Science RL **best** checkpoint (trainer's own dev rule). | science RL step 75 (dev chrF++ 45.19) | Checkpoint choice comparison. | AfriScience test chrF 46.79 (final minus best +0.30 [+0.11, +0.49]) | Section 7.8; science evaluation report |
192
- | `science-rl-latest` | Science RL state at step 100 (not the end of the run). | science RL step 100 | Intermediate state. | not evaluated on test (trainer dev chrF++ 45.06 on its 200-sentence-per-language subset) | none |
193
- | `science-rl-final` | End of the science RL. Published as [`BeardedMonster/gemma-3-385m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-science-translate-best). | science RL step 160 (150 + 10-step wind-down), start = `science-sft` | Final science model. | AfriScience test chrF 47.10 (+0.46 [+0.27, +0.65] over `science-sft`, +1.70 over `main`); AfriCOMET 0.6932; NTREX 37.33, MAFAND 41.15 chrF++ | Section 7.8 tables; Section 7.10 |
194
- | `long-rl` | Long-document RL **best** checkpoint (documents up to 2,048 source tokens in the RL prompts). | long-document RL step 50 of 80, start = `science-rl-final` | Test whether RL on long prompts fixes whole-document decoding. | whole-document (168 test documents): finished 0.70 -> 0.82, loop 0.85 -> 0.73, chrF 27.4 -> 30.9; sentence and chunked quality unchanged; whole-document decoding still unusable | Section 7.9 |
195
- | `long-rl-latest` | Long-document RL final. | long-document RL step 80 (the repository also carries a tag `rl-step-50`; the sources do not say which commit it marks) | End of the run. | whole-document finished 0.85, loop 0.72, chrF 29.7 | Section 7.9 |
196
- | `sft` | Final general SFT (former repo `AletheiaAING/gemma-0.4B-translate-sft`, also `gemma3-up6-g15-g1b-s6`, commit 31ebb30). Start of every RL branch except the science ones. | SFT-1 1,500 steps + 31,353 steps of stage B = step 32,853 | Baseline of the RL gain. | FLORES+ 22.85 chrF++ (54 languages), NTREX 29.25, MAFAND 35.77, all 93 cells 26.59; validation loss macro 1.3412 | Sections 7.1, 7.2 |
197
- | `experiments-e04-seed2-step100` | Seed run of the stage-A recipe (seed 20261105), 100 steps from the SFT. | RL stage-A recipe, step 100, 20-language evaluation set | Training-seed spread (E-04); full-feature arm of the ablation. | chrF++ 38.51 over 49 cells (gain over SFT +5.96 [+5.80, +6.11]) | Section 8 (E-04, E-11 table) |
198
- | `experiments-e04-seed3-step100` | Second seed (20261106), otherwise identical. | stage-A recipe, step 100 | Training-seed spread (E-04). | chrF++ 38.46 over 49 cells (+5.90); the two seeds differ by 0.06 chrF++ [-0.02, +0.14] | Section 8 (E-04) |
199
- | `experiments-e04-a_base-step100` | E-11 arm (a): none of the four stage-A features (dynamic sampling, std floor, beam guide, reference domain). Fork of seed 2's step-40 state. | step 100 | Ablation of the stage-A features. | chrF++ 38.19 over 49 cells (-0.32 [-0.41, -0.23] against seed 2) | Section 8 (E-11 table) |
200
- | `experiments-e04-c_noref-step100` | E-11 arm (c): without the reference domain (no reference prompts, no reference-anchored reward). | step 100 | Ablation. | chrF++ 38.35 (-0.16 [-0.25, -0.08] against seed 2) | Section 8 (E-11 table) |
201
- | `experiments-e04-d_noguide-step100` | E-11 arm (d): without the beam-guided group member. | step 100 | Ablation. | chrF++ 38.42 (-0.09 [-0.17, -0.01] against seed 2; not separable from seed noise against seed 3: -0.04 [-0.11, +0.04]) | Section 8 (E-11 table) |
202
- | `experiments-e14-science-rl-only-final` | Science RL started from `main` **without the science SFT** (E-14). The trainer wrote no `best/`; this is the final. | science RL step 160 (150 + 10 wind-down) | Test whether the science SFT is needed (it is). | AfriScience test chrF 45.66 (`science-rl-final` 47.10; difference -1.44 [-1.61, -1.25]); 93-cell chrF++ +0.13 [+0.10, +0.15] over `main` | Section 7.8 (E-14 tables) |
203
- | `growth-a0` | Model **A0**: the 270M `gemma-3-270m-it` with six inserted local-attention layers ("up6", 24 layers), trained on a UniMax-style schedule; the base that the 385M grew from (former `AletheiaAING/gemma3-270m-clean-a0`). | 5,625 SFT steps | Growth step 1; control for the effect of the later growth and SFT. | FLORES+ 20.20 chrF++ (46 languages shared with the 385M SFT, which has 25.52); NTREX 23.01 (24), MAFAND 25.56 (15) | Section 7.1 table |
204
- | `growth-a2-base` | Growth ablation arm A2-base: plain 270M (no inserted layers), same hyper-parameters and the same shared 25% stratified subset of A0's schedule. | short SFT on the shared A2 subset | Does inserting layers help? | FLORES+ held-out-half (H_sel, 296 ids x 46 languages), greedy 256 tokens: chrF++ 14.60 | not in `paper.md`; `reports/data/clean_rerun_hsel_2026-10-31/a2_base/` |
205
- | `growth-a2-up6` | A2 arm with 6 inserted local-attention layers (24 layers; 301,539,968 parameters by arithmetic). | same subset and hyper-parameters as the other A2 arms | Growth ablation. | same protocol: chrF++ 14.83 | same, `a2_up6/` |
206
- | `growth-a2-up12` | A2 arm with 12 inserted local-attention layers (30 layers, 334,981,760 parameters). | same subset and hyper-parameters | Growth ablation. | same protocol: chrF++ 14.90 | same, `a2_up12/` |
207
 
208
- **Notes on the metrics.** All numbers are one training seed, greedy decoding, evaluated with the harness of Section 6 of the paper (sacreBLEU 2.6.0, chrF++ with word order 2; plain chrF with word order 0 for AfriScience-MT). Intervals are 95% paired bootstraps over test sentences.
209
- `stage-a-b64`, `latest` and `science-rl-latest` were saved as intermediate states and have no benchmark evaluation. The three A2 arms were evaluated on the FLORES+ held-out half only (46 languages, 296 sentence ids, 256 new tokens), so their numbers are not comparable with the 768-token devtest numbers of the other branches; the A0 row uses the paper's devtest number.
210
- The A2 results are not tabulated in the paper; the CSV/JSON files named above are the only record, and the identification of `growth-a0` with the evaluation folder `a0u_up6` (held-out half, chrF++ 24.50) is by name only.
211
- Reward-family warning: SSA-COMET-QE, AfriCOMET and the loop/finished rates are inside the RL rewards; chrF++ and chrF against human references are the independent evidence.
212
 
213
- ## Training summary and disclosures
214
-
215
- Stage details (SFT recipe, RL recipe per stage, reward, features, costs) are in the general card and in Sections 4, 5 and 9 of the paper. Points that matter for an archive:
216
 
217
  ### Data disclosures
218
 
219
- * **NLLB-derived data.** NLLB-mined bitext is 14.4% of the stage-B SFT pack tokens (18.7% with NLLB-Seed and the NLLB-3.3B-output Aya part, 22.8% with machine-translated Tumbuka instruction sets of unstated system). `sft` and every branch descended from it carry this. A0 contains none of the three.
220
- * **NLLB-3.3B pseudo-reference reward** (reward signal only, never a training target) for kea, kbp, nus, bam, kab in all RL stages, the seed/ablation branches and the science RL (including `experiments-e14-science-rl-only-final`).
221
- * **Other data sources.** `*_mt560` OPUS sets (69% of the main pair output), further sources listed in `DISCLOSURES.md`, IbomMT (also a human-reference source in the RL reference domain), BBC / Wikinews / Global Voices / Wikivoyage English windows as RL prompt text only, AfriScience-MT train (Apache-2.0). LibreTexts was excluded from the science RL and removed from the long-document RL pool before it started.
222
- * **No TranslatePsy data** is in any branch of this repository. The matched-compute SFT control (E-03) that used TranslatePsy English-to-X rows (NLLB-3.3B targets) is **not** here and was never pushed.
223
- * **Experiment branches.** The `experiments-*` branches use the executed stage-A recipe and the reward-side data of Section 14.2 of the paper; they start from the SFT (or `main` for E-14) and therefore inherit the SFT data disclosures.
224
- * **Process disclosures:** overridden RL gates, mid-run restarts of stage A, B1 and the mixed stage, a stage-A learning rate cut three times by a KL guard, one out-of-memory restart in E-14 (steps 21-38 replayed), checkpoint storage in RAM-backed `/dev/shm` (weights on the Hub, optimiser states not), a changed long-document start model. Details: `paper_385m/DISCLOSURES.md` section 4.
225
- * The base model `google/gemma-3-270m-it` is under the Gemma terms; its pretraining text is unknown.
226
- * One seed everywhere except the two E-04 seed runs; no human evaluation.
227
-
228
- Hub branch map source: `reports/ledger_hygiene_e23_2026-11-04.md` (read from each branch's `training_state.json`) and `reports/overnight_log_2026-11-04.md` (long-RL branches).
229
 
230
- ## Family map
231
 
232
- All repositories are under the `BeardedMonster` namespace unless marked private.
233
 
234
- | repo | what it is | when to use it |
235
- |---|---|---|
236
- | [`BeardedMonster/gemma-3-270m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-270m-translate-best) | 270M general translator, English to 77 languages (text tags, not single-token tags) | smallest and fastest; older preliminary study, different prompt tags |
237
- | [`BeardedMonster/gemma-3-385m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-translate-best) | 385M general translator, 125 single-token tags (final general RL model) | default small model for general text |
238
- | [`BeardedMonster/gemma-3-385m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-science-translate-best) | 385M science translator (science SFT + science RL on top of the general RL model) | scientific text in amh, hau, lug, nso, yor, zul |
239
- | [`BeardedMonster/gemma-3-1b-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-1b-translate-best) | 1B general translator, same recipe and tags (follow-up study, Section 17 of the paper) | best quality of the family; 105 of 125 tags have SFT text |
240
- | [`BeardedMonster/gemma-3-1b-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-1b-science-translate-best) | 1B science translator | science text; whole-paper input is better handled than in the 385M model |
241
- | [`BeardedMonster/gemma-3-270m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-270m-science-translate-best) | 270M science translator | smallest science model |
242
- | [`BeardedMonster/gemma-3-270m-science-translate-best-GGUF`](https://huggingface.co/BeardedMonster/gemma-3-270m-science-translate-best-GGUF) | Q8_0 GGUF of the 270M science model | llama.cpp / llama-cpp-python, CPU |
243
- | [`BeardedMonster/gemma-3-0.8b-translate-Q8`](https://huggingface.co/BeardedMonster/gemma-3-0.8b-translate-Q8) | General 1B, Q8_0 GGUF (full vocabulary) | llama.cpp on any GPU from a T4, CPU, Apple Silicon |
244
- | [`BeardedMonster/gemma-3-0.8b-science-translate-Q8`](https://huggingface.co/BeardedMonster/gemma-3-0.8b-science-translate-Q8) | Science 1B, Q8_0 GGUF (full vocabulary) | llama.cpp on any GPU from a T4, CPU, Apple Silicon |
245
- | [`BeardedMonster/gemma-3-1b-translate-sft-best`](https://huggingface.co/BeardedMonster/gemma-3-1b-translate-sft-best) | best 1B SFT (RL start point) | SFT-only checkpoint; the starting point for further fine-tuning or RL |
246
- | `BeardedMonster/gemma-3-1b-rl-translate-best` (private) | Identical copy of `gemma-3-1b-translate-best` (byte-identical weights) | either id loads the same model |
247
- | [`BeardedMonster/gemma-3-1b-science-sft`](https://huggingface.co/BeardedMonster/gemma-3-1b-science-sft) | 1B science SFT | science SFT checkpoint; the starting point for science RL or further fine-tuning |
248
- | `AletheiaAING/gemma-3-270m-translate-rl` (private) | Archives of the 270M and 385M RL runs and ablations | kept for reproduction of the paper tables |
249
- | `AletheiaAING/gemma-0.4B-translate-rl` (private) | archive of the 385M line, many branches (the weights of the two 385M "best" repos above are its `main` and `science-rl-final` branches) | archive branches, kept for reproduction of the paper tables |
250
- | `BeardedMonster/gemma-3-1b-translate-rl` (private) | Archive of the 1B RL arms (branches latest-m1, main, dpo-trial) | kept for reproduction of the paper tables |
251
 
252
  ## Citation and licence
253
 
254
- Paper in preparation (working title: "What Does Reinforcement Learning Add to a Small Translator for African Languages?"). Until it is out, cite this repository.
255
 
256
- ```bibtex
257
- @misc{sabiyarn_gemma385m_archive,
258
- title = {AletheiaAING/gemma-0.4B-translate-rl (archive)},
259
- note = {Hugging Face model repository, paper in preparation},
260
- year = {2026}
261
  }
262
  ```
263
 
264
- **Licence.** `license: other` (`sabiyarn-commercial-use-with-attribution`); the full text is in [`LICENSE.md`](https://huggingface.co/AletheiaAING/gemma-0.4B-translate-rl/blob/main/LICENSE.md). Commercial and non-commercial use, modification and redistribution are allowed, with required attribution: credit "Translation models by Aletheia AI" and cite the accompanying paper (in preparation). 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. The training data sources are listed under "Data disclosures".
265
-
266
-
267
- ## Provenance of the numbers
268
-
269
- `main`, `stage-a-final`, `stage-b1-b256`, `sft`: `reports/data/rl_vs_sft_evidence_2026-11-04/tables.md` Tables 1 and 3, `paper_385m/paper.md` Sections 7.2, 7.3. `stage-b1-final`: `reports/e20_b1_final_2026-11-04.md`.
270
- `stage-g-weak-latest`: `reports/eval_weak_group_385m_2026-11-03.md` and `reports/data/eval_weak_group_2026-11-03/results/results_weakfinal.csv` (MACRO rows; the `system` column of these files reads `sft` for every file, the values are those of the file's model).
271
- Science branches: `reports/eval_science_rl_385m_2026-11-04.md` (Tables S1a, S2, S3, section 3), `reports/e14_science_rl_without_science_sft_2026-11-05.md`, paper Section 7.8. Long-document branches: `reports/eval_long_document_rl_385m_2026-11-04.md`, paper Section 7.9.
272
- Experiment branches: `reports/e04_rl_seeds_2026-11-05.md`, `reports/e11_rl_ablations_2026-11-05.md`, paper Section 8. `growth-a0`: paper Section 7.1 (`reports/data/eval_385m_results_2026-11-03/greedy_macro_385m_vs_a0.csv`). A2 arms: `reports/data/clean_rerun_hsel_2026-10-31/{a2_base,a2_up6,a2_up12,a0u_up6}/results.json`, config `gemma_mt/configs/clean_rerun_sft/a2_up12.yaml`.
273
- Branch identities and steps: `reports/ledger_hygiene_e23_2026-11-04.md`, `paper_385m/DISCLOSURES.md`, `paper_385m/paper.md` Section 15.
 
130
  - adh
131
  base_model: google/gemma-3-270m-it
132
  license: other
 
133
  license_link: https://huggingface.co/AletheiaAING/gemma-0.4B-translate-rl/blob/main/LICENSE.md
134
  tags:
135
  - translation
 
139
  - english-to-african
140
  - grpo
141
  - archive
 
 
142
  - branches
143
  ---
144
 
145
+ **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.**
146
 
147
+ # gemma-0.4B-translate-rl
148
 
149
+ **What this is.** A research **archive** of earlier and alternative checkpoints of the 385M English to African-language translator (125 single-token language tags, English to African language only). One Hub branch per checkpoint; each loads like the final models. **For normal use, take the final models:** general [`BeardedMonster/gemma-3-385m-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-translate-best) (= branch `main` here) or science [`BeardedMonster/gemma-3-385m-science-translate-best`](https://huggingface.co/BeardedMonster/gemma-3-385m-science-translate-best) (= branch `science-rl-final`). Their cards have the prompt format, code and per-language results.
 
 
 
150
 
151
+ Headline of the final general model (FLORES+ devtest, 54 languages, greedy decoding): chrF++ 31.66; held-out AfriCOMET 0.628.
152
+
153
+ ## Branches
154
+
155
+ | branch | what it is | status |
156
+ |---|---|---|
157
+ | `main` | Final general model | **recommended** (same as `gemma-3-385m-translate-best`) |
158
+ | `science-rl-final` | Final science model | **recommended** (same as `gemma-3-385m-science-translate-best`) |
159
+ | `sft` | General model after supervised fine-tuning, before RL | baseline for comparing RL gains |
160
+ | `latest` | Last saved state of the general RL run | earlier RL checkpoint |
161
+ | `stage-a-b64` | Early checkpoint of the first RL phase | earlier RL checkpoint |
162
+ | `stage-a-final` | End of the first RL phase | earlier RL checkpoint |
163
+ | `stage-b1-b256` | Best checkpoint of the second RL phase | earlier RL checkpoint |
164
+ | `stage-b1-final` | End of the second RL phase | earlier RL checkpoint |
165
+ | `stage-g-weak-latest` | RL run focused on eight weak West-African languages | experimental, no gain, not recommended |
166
+ | `science-sft` | Science fine-tuned model blended with the general model; starting point of the science model | earlier science checkpoint |
167
+ | `science-sft-alpha1` | Science fine-tuned model without blending | experimental, not recommended |
168
+ | `science-rl` | Earlier science RL checkpoint | earlier science checkpoint |
169
+ | `science-rl-latest` | Intermediate science RL state | earlier science checkpoint |
170
+ | `long-rl` | Experimental RL on long documents (best checkpoint) | experimental, whole-document translation still unreliable |
171
+ | `long-rl-latest` | End of the same long-document run | experimental, not recommended |
172
+ | `experiments-e04-seed2-step100` | Repeat run of the RL recipe | experimental, not recommended |
173
+ | `experiments-e04-seed3-step100` | Second repeat run of the RL recipe | experimental, not recommended |
174
+ | `experiments-e04-a_base-step100` | RL ablation run | experimental, not recommended |
175
+ | `experiments-e04-c_noref-step100` | RL ablation run | experimental, not recommended |
176
+ | `experiments-e04-d_noguide-step100` | RL ablation run | experimental, not recommended |
177
+ | `experiments-e14-science-rl-only-final` | Science RL without the science fine-tuning step | experimental, weaker than `science-rl-final` |
178
+ | `growth-a0` | Earlier, smaller base model that the 385M model was grown from | earlier base model |
179
+ | `growth-a2-base` | Base-model ablation | experimental, not recommended |
180
+ | `growth-a2-up6` | Base-model ablation | experimental, not recommended |
181
+ | `growth-a2-up12` | Base-model ablation | experimental, not recommended |
182
+
183
+ The `growth-*` branches are smaller early models, not full translators; they use the same tag layout.
184
 
185
  ## How to load a branch
186
 
187
+ The prompt is one user turn (two spaces after the colon, the language **name**, never the ISO code); the model answers with a single language tag, then the translation. Tag stripping and vLLM use are as on the card of the final model.
188
+
189
  ```python
190
  import torch
191
  from transformers import AutoTokenizer, AutoModelForCausalLM
192
 
193
+ repo, branch = "AletheiaAING/gemma-0.4B-translate-rl", "sft" # any branch name from the table above
194
+ tok = AutoTokenizer.from_pretrained(repo, revision=branch)
195
+ model = AutoModelForCausalLM.from_pretrained(repo, revision=branch, dtype=torch.bfloat16).to("cuda").eval()
196
  ```
197
 
198
+ ## Training summary
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
 
200
+ 1. **Base model.** `google/gemma-3-270m-it`, grown to 385M parameters, with 125 single-token language tags `<iso>`.
201
+ 2. **SFT** on English to African-language parallel and instruction data.
202
+ 3. **RL (GRPO)** with a reference-free quality-estimation reward, in several phases; the science models add a science fine-tuning step on AfriScience-MT.
 
203
 
204
+ Full details are on the cards of the final models.
 
 
205
 
206
  ### Data disclosures
207
 
208
+ * **NLLB-derived data.** SFT includes NLLB-mined bitext, data derived from NLLB-3.3B outputs, and machine-translated instruction sets with unstated systems. `sft` and every branch descended from it carry this.
209
+ * **NLLB-3.3B pseudo-reference reward** (reward signal only, never a training target) for a few languages (kea, kbp, nus, bam, kab) in the RL branches, including the science RL.
210
+ * **Other data sources.** OPUS MT560 sets (largely religious text), IbomMT, further public sources; BBC / Wikinews / Global Voices / Wikivoyage English text as RL prompts only; AfriScience-MT train (Apache-2.0) for the science branches.
211
+ * **No TranslatePsy data** is in any branch of this repository.
212
+ * The base model `google/gemma-3-270m-it` is under the Gemma terms. No human evaluation was done.
 
 
 
 
 
213
 
214
+ ## Intended use and limitations
215
 
216
+ Use: archive of earlier checkpoints, kept for reproduction. Use the final models for translation.
217
 
218
+ * **English to African language only.** Other source languages and reverse directions are not trained.
219
+ * **Tags with no SFT data** cannot be translated; several low-resource languages give rough drafts at best.
220
+ * **Short inputs.** Translate one sentence or a short paragraph at a time; whole-document translation is unreliable even on the long-document branches.
221
+ * **Automatic metrics only.** No human evaluation was done. Outputs are machine translations without human verification; review them before use where errors matter (for example medical, legal or safety-critical text).
 
 
 
 
 
 
 
 
 
 
 
 
 
222
 
223
  ## Citation and licence
224
 
225
+ Paper in preparation
226
 
227
+ ```
228
+ @misc{Gemma_mt_2026,
229
+ title = {English-to-African-language translation with small Gemma-3 models: supervised fine-tuning and reinforcement learning},
230
+ author = {{AletheiaAI}},
231
+ year = {2026},
232
  }
233
  ```
234
 
235
+ **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. The training data sources are listed under "Data disclosures".