/ Модель

Характеристики

Контекст
32 768 токенов
Параметры
1 млрд
Лицензия
Своя лицензия
Архитектура
gemma3_text · dense
Базовая модель
gemma-3-1b-it
Библиотека
transformers
Опубликована
13 ноя 2026

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

Генерация текстаТекст → текст3 профессии
191скачиваний за 30 дней0лайковвеса обновлены20 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная Gemma 3 1B для перевода с английского на африканские языки, предназначенная главным образом для дальнейшего обучения и сравнительных экспериментов.

gemma-3-1b-translate-sft-best — компактная модель перевода Aletheia AI: Gemma 3 с примерно 1 млрд параметров, дообученная методом supervised fine-tuning на переводе с английского на африканские языки. Она принимает текстовые инструкции и выдаёт перевод текстом; модель построена на Gemma 3 1B Instruct, использует архитектуру Gemma3ForCausalLM и поддерживает контекст до 32 768 токенов. В README заявлены 125 языковых тегов, однако для 20 из них не было обучающих примеров, поэтому перевод на эти языки практически не работает.

Модель предназначена прежде всего как исходная точка для дальнейшего обучения с подкреплением или другого дообучения, а также как базовый вариант для сравнения. Для прямого перевода автор рекомендует более позднюю RL-модель: этот чекпойнт может повторять фрагменты или не завершать генерацию, а качество заметно различается между языками. Лучше подавать короткие тексты, например отдельные предложения, и проверять результаты перед использованием, особенно в ответственных областях.

Лицензия указана как other. README разрешает коммерческое использование при обязательном указании авторства Aletheia AI и цитировании сопроводительной статьи; также применяются условия использования Gemma и политика запрещённого использования Google.

Сценарии применения

  • черновой перевод коротких английских фраз на суахили
  • перевод английских текстов на хауса или игбо
  • сравнение SFT- и RL-моделей перевода африканских языков
  • дальнейшее дообучение модели для машинного перевода

Ограничения

Модель может зацикливаться или не завершать перевод; качество сильно зависит от языка, а 20 заявленных языков не имеют обучающих примеров. Она поддерживает только направление с английского, лучше работает на коротких входах, а автоматические метрики не заменяют проверку человеком.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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 promptTagScriptSFT datachrF++ (benchmark)
Yoruba<yor>Latinyes22.86 (FLORES+)
Hausa<hau>Latinyes48.22 (FLORES+)
Igbo<ibo>Latinyes41.34 (FLORES+)
Pidgin<pcm>Latinyes55.56 (MAFAND)
Efik<efi>Latinyesn/a
Twi<twi>Latinyes35.45 (FLORES+)
Ewe<ewe>Latinyes28.27 (FLORES+)
Fon<fon>Latinyes19.80 (FLORES+)
Wolof<wol>Latinyes30.22 (FLORES+)
Swahili<swh>Latinyes60.44 (FLORES+)
Kinyarwanda<kin>Latinyes36.53 (FLORES+)
Somali<som>Latinyes40.42 (FLORES+)
Oromo<orm>Latinyes23.68 (FLORES+)
Amharic<amh>Ethiopic (Ge'ez)yes30.25 (FLORES+)
Tigrinya<tir>Ethiopic (Ge'ez)yes17.19 (FLORES+)
Luganda<lug>Latinyes25.48 (FLORES+)
Lingala<lin>Latinyes39.13 (FLORES+)
Zulu<zul>Latinyes51.26 (FLORES+)
Xhosa<xho>Latinyes48.34 (FLORES+)
Afrikaans<afr>Latinyes65.53 (FLORES+)
Shona<sna>Latinyes40.00 (FLORES+)
Chichewa<nya>Latinyes42.29 (FLORES+)
Sesotho<sot>Latinyes44.00 (FLORES+)
Setswana<tsn>Latinyes44.87 (FLORES+)
Malagasy<mlg>Latinyes46.33 (FLORES+)
Ibibio<ibb>Latinnone (cannot translate)n/a
Urhobo<urh>Latinyesn/a
Bemba<bem>Latinyes27.10 (FLORES+)
Tumbuka<tum>Latinyes30.36 (FLORES+)
Kirundi<run>Latinyes29.96 (FLORES+)
Venda<ven>Latinyes35.51 (NTREX)
Tsonga<tso>Latinyes41.03 (FLORES+)
Sepedi<nso>Latinyes45.16 (FLORES+)
Swati<ssw>Latinyes31.58 (FLORES+)
South Ndebele<nbl>Latinyesn/a
North Ndebele<nde>Latinyes32.54 (NTREX)
Sango<sag>Latinyes28.29 (FLORES+)
Tiv<tiv>Latinyesn/a
Umbundu<umb>Latinyes19.12 (FLORES+)
Kimbundu<kmb>Latinyes20.03 (FLORES+)
Mossi<mos>Latinyes18.23 (FLORES+)
Kikuyu<kik>Latinyes26.57 (FLORES+)
Luo<luo>Latinyes28.79 (FLORES+)
Kamba<kam>Latinyes20.41 (FLORES+)
Edo<bin>Latinnone (cannot translate)n/a
Dagbani<dag>Latinnone (cannot translate)n/a
Okpe<oke>Latinyesn/a
Tachelhit<shi>Latinyes0.82 (NTREX)
Dyula<dyu>Latinyes12.14 (FLORES+)
Bambara<bam>Latinyes23.59 (FLORES+)
Kabiye<kbp>Latinyes18.13 (FLORES+)
Ghomala<bbj>Latinnone (cannot translate)n/a
Kongo<kon>Latinyesn/a
Kabuverdianu<kea>Latinyes23.89 (FLORES+)
Fante<fat>Latinnone (cannot translate)n/a
Kanuri<knc>Latinyes7.48 (FLORES+)
Ga<gaa>Latinnone (cannot translate)n/a
Kabyle<kab>Latinyes25.06 (FLORES+)
Nuer<nus>Latinyes16.69 (FLORES+)
Congo Swahili<swc>Latinyesn/a
Luba-Kasai<lua>Latinyes26.62 (FLORES+)
Kaonde<kqn>Latinyesn/a
Lunda<lun>Latinyesn/a
Isoko<iso>Latinyesn/a
Lozi<loz>Latinyesn/a
Wolaytta<wal>Latinyesn/a
Acholi<ach>Latinyesn/a
Tswa<tsc>Latinyesn/a
Makhuwa<vmw>Latinyes20.98 (FLORES+)
Kuanyama<kua>Latinyesn/a
Sena<seh>Latinyes25.29 (FLORES+)
Nyankore<nyn>Latinyesn/a
Herero<her>Latinnone (cannot translate)n/a
Yao<yao>Latinyesn/a
Sidamo<sid>Latinyesn/a
Ndau<ndc>Latinyesn/a
Mende<men>Latinnone (cannot translate)n/a
Krio<kri>Latinyesn/a
Luyia<luy>Latinnone (cannot translate)n/a
Esan<ish>Latinnone (cannot translate)n/a
Duala<dua>Latinnone (cannot translate)n/a
Basaa<bas>Latinyesn/a
Cameroon Pidgin<wes>Latinnone (cannot translate)n/a
Tamazight<tzm>Latinyesn/a
Fulah<ful>Latinyesn/a
Gun<guw>Latinyesn/a
Luvale<lue>Latinyesn/a
Tetela<tll>Latinyesn/a
Zande<zne>Latinyesn/a
Luba-Katanga<lub>Latinyesn/a
Seychellois Creole<crs>Latinyesn/a
Mauritian Creole<mfe>Latinyes37.58 (FLORES+)
Ruund<rnd>Latinyesn/a
Nyaneka<nyk>Latinyesn/a
Kwangali<kwn>Latinyesn/a
Ndonga<ndo>Latinyesn/a
Zarma<dje>Latinyesn/a
Adangme<ada>Latinyesn/a
Egyptian Arabic<arz>Arabicyes12.55 (FLORES+)
Songe<sop>Latinyesn/a
Mambwe<mgr>Latinyesn/a
Konzo<koo>Latinyesn/a
Chokwe<cjk>Latinyes20.52 (FLORES+)
Coptic<cop>Copticyesn/a
Lelemi<dop>Latinyesn/a
Bulu<bum>Latinyesn/a
Nyemba<nba>Latinyesn/a
Nyungwe<nyu>Latinyesn/a
Dinka<dik>Latinyes10.40 (FLORES+)
Chopi<cce>Latinyesn/a
Chuabo<chw>Latinyesn/a
Tooro<ttj>Latinyesn/a
Lamba<lam>Latinyesn/a
Nupe<nup>Latinyesn/a
Tamasheq<taq>Latinyes8.09 (FLORES+)
Alur<alz>Latinyesn/a
Tonga<toi>Latinyesn/a
Berber<ber>Latinnone (cannot translate)n/a
Standard Moroccan Tamazight<zgh>Tifinaghnone (cannot translate)11.85 (FLORES+)
Afar<aar>Latinnone (cannot translate)n/a
Baoule<bci>Latinnone (cannot translate)n/a
Moroccan Arabic<ary>Arabicnone (cannot translate)13.10 (FLORES+)
Tunisian Arabic<aeb>Arabicnone (cannot translate)9.51 (FLORES+)
Teso<teo>Latinnone (cannot translate)n/a
Adhola<adh>Latinnone (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.1FLORES+ spBLEUFLORES+ AfriCOMETNTREX chrF++MAFAND chrF++MAFAND sentences (n)
Afrikaans (afr)65.5365.5345.670.78565.82n/an/a
Amharic (amh)26.9630.2512.630.64216.9316.251,014
Bambara (bam)19.2023.592.470.486n/an/an/a
Bemba (bem)22.9627.103.490.52019.74n/an/a
Chichewa (nya)40.0442.2912.960.66242.5341.281,003
Chokwe (cjk)14.9620.521.03n/an/an/an/a
Dinka (dik)4.1710.400.22n/an/an/an/a
Dyula (dyu)8.3912.140.39n/an/an/an/a
Egyptian Arabic (arz)8.2412.550.49n/an/an/an/a
Ewe (ewe)26.3428.276.300.59622.61n/an/a
Fon (fon)17.1319.802.560.545n/an/an/a
Hausa (hau)45.2248.2220.490.67245.6733.191,498
Igbo (ibo)39.7341.3418.790.66343.0147.931,458
Kabiye (kbp)13.3618.131.260.546n/an/an/a
Kabuverdianu (kea)17.8823.892.73n/an/an/an/a
Kabyle (kab)20.4625.063.550.614n/an/an/a
Kamba (kam)17.3020.412.140.465n/an/an/a
Kanuri (knc)2.707.480.11n/an/an/an/a
Kikuyu (kik)23.1426.574.250.592n/an/an/a
Kimbundu (kmb)14.5920.030.850.429n/an/an/a
Kinyarwanda (kin)33.4536.539.290.65932.0143.711,005
Kirundi (run)27.0129.965.520.626n/an/an/a
Lingala (lin)34.8939.137.690.595n/an/an/a
Luba-Kasai (lua)21.4326.621.970.508n/an/an/a
Luganda (lug)20.3425.482.160.536n/a31.731,500
Luo (luo)26.0228.795.200.626n/a28.861,500
Makhuwa (vmw)14.7820.981.29n/an/an/an/a
Malagasy (mlg)44.8046.3317.970.67641.43n/an/a
Mauritian Creole (mfe)34.3537.589.05n/an/an/an/a
Moroccan Arabic (ary)9.0813.100.64n/an/an/an/a
Mossi (mos)14.9218.231.370.504n/an/an/a
North Ndebele (nde)n/an/an/an/a31.65n/an/a
Nuer (nus)9.9716.691.080.427n/an/an/a
Oromo (orm)17.9023.681.510.54913.47n/an/a
Pidgin (pcm)n/an/an/an/an/a55.491,562
Sango (sag)25.1628.293.57n/an/an/an/a
Sena (seh)19.2225.291.72n/an/an/an/a
Sepedi (nso)41.7045.1615.020.66326.55n/an/a
Sesotho (sot)42.6444.0017.440.664n/an/an/a
Setswana (tsn)43.0544.8718.550.68043.4851.341,500
Shona (sna)38.7340.0014.690.63638.4934.041,004
Somali (som)39.2240.4213.200.64340.82n/an/a
Standard Moroccan Tamazight (zgh)5.6211.850.34n/an/an/an/a
Swahili (swh)59.7960.4438.520.73559.2953.721,822
Swati (ssw)26.6331.584.990.56724.51n/an/a
Tachelhit (shi)n/an/an/an/a0.38n/an/a
Tamasheq (taq)3.238.090.10n/an/an/an/a
Tigrinya (tir)14.5017.194.690.61113.20n/an/a
Tsonga (tso)37.9541.0311.980.642n/an/an/a
Tumbuka (tum)27.1930.366.740.592n/an/an/a
Tunisian Arabic (aeb)6.669.510.44n/an/an/an/a
Twi (twi)33.3435.4510.380.651n/a33.771,500
Umbundu (umb)15.3219.120.650.491n/an/an/a
Venda (ven)n/an/an/an/a28.58n/an/a
Wolof (wol)29.1530.229.380.65027.14n/an/a
Xhosa (xho)47.2648.3422.810.66442.9956.771,001
Yoruba (yor)21.0322.866.030.58821.5824.431,550
Zulu (zul)50.8851.2628.590.71044.0047.52998

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

systemFLORES+ chrF++, 44 languages shared with NLLBTranslatePsy 19 languagesNTREX 21 languagesMAFAND 14 languagesAfriCOMET-STL (40 languages)
1B SFT (this model), no penalty28.7538.9834.5438.900.603
1B SFT (this model), frequency penalty 0.131.8741.1136.8640.220.613
1B RL (gemma-3-1b-translate-best)37.9345.1842.0643.690.681
385M SFT (general)25.59n/an/an/a0.550
385M RL (general)34.8841.0439.0039.880.623
NLLB-200-distilled-600M35.9442.58n/an/a0.662
NLLB-200-3.3B38.0944.6643.2644.610.677
TranslatePsy-AfriSLM-0.8Bn/a45.27n/an/an/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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma3ForCausalLM
Ревизия весов
d6e602c

0 моделей