/ Модель

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

Контекст
1 024 токена
Лицензия
CC BY-NC 4.0
Архитектура
m2m_100 · dense
Базовая модель
nllb-200-1.3B
Библиотека
transformers
Опубликована
14 ноя 2026

nllb1.3b-67languages

ПереводТекст → текст3 профессии

Модель Sunbird AI на базе NLLB-200 1.3B переводит между английским и африканскими языками, включая поддерживаемые переводы между двумя неанглийскими языками.

134скачиваний за 30 дней0лайковвеса обновлены20 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Sunflower Translate — модель перевода Sunbird AI, полученная дообучением NLLB-200 1.3B с последующим этапом GRPO. Она использует архитектуру M2M100ForConditionalGeneration и предназначена для перевода между английским и африканскими языками, преимущественно распространёнными в Уганде, а также между поддерживаемыми неанглийскими языками. По README, модель охватывает 74 языка, включая французский; пять дополнительных языков имеют токены, но их качество не оценивалось. Метаданные указывают NLLB-200 1.3B как базовую модель, библиотеку Transformers, формат safetensors и контекст 1024 токена.

На тесте salt-69 модель показала средний результат 45,4 chrF против 31,6 у исходного чекпойнта NLLB-200 1.3B. GRPO сократил чрезмерно длинные и повторяющиеся ответы, но не устранил их. Качество сильно зависит от языка: для ряда низкоресурсных языков перевод на них слаб, а некоторые коды могут приводить к тексту на другом языке. Обучающие данные преимущественно общего и разговорного характера, поэтому для длинных и специализированных документов модель подходит хуже. Для входа требуется нормализованный текст; выход использует ASCII-пунктуацию. Лицензия CC-BY-NC-4.0 запрещает коммерческое использование.

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

  • перевод с английского на африканские языки
  • перевод с африканских языков на английский
  • перевод между поддерживаемыми африканскими языками
  • перевод коротких разговорных фраз и предложений

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Sunflower Translate (NLLB-1.3B, salt-69)

Sunbird-experimental/nllb1.3b-67languages is NLLB-200 1.3B fine-tuned by Sunbird AI to translate between English and 74 other languages. Most are spoken in Uganda; the rest are from elsewhere in Africa, plus French. It translates in any direction between these languages, including between two non-English languages.

It is a small, fast alternative to the Sunflower LLMs for translation only. On the salt-69 benchmark it averages 45.4 chrF, against 46.5 for Sunflower-Qwen3.5-27B -- about 1 chrF point behind a model 20x its size -- and 31.6 for the NLLB-200 1.3B checkpoint it was fine-tuned from. In the eng->xx directions the two are level (41.8 against 42.0), and this model is ahead in 38 of the 69. See Evaluation.

This release adds a GRPO post-training stage on top of supervised fine-tuning. Its clearest effect is on degenerate output rather than on average quality: the length ratio falls from 1.27 to 1.16, the number of eng->xx directions that generate more than twice the reference length falls from 12 to 4, and repetition loops in eng->xx output fall from 6.6% of sentences to 5.5%. Average chrF is 1.7 points above the previous release, of which 0.3 comes from GRPO and the rest from a revised SFT recipe. See Training details.

Additions to standard NLLB:

  • 42 languages NLLB doesn't support, through repurposed language tokens (see Language codes). Almost all of the gain over base NLLB-200 sits here: 14.7 -> 36.5 chrF on those languages, against 51.1 -> 55.7 on the 32 that NLLB-200 already covered.
  • The source language is optional. The model was trained to translate with or without being told the source language. This is useful for code-switched text, or when the source language is unknown. Leaving it out costs only about 0.3 chrF on average.

Status: experimental. Quality varies a lot by language: from strong (Afrikaans, Zulu, Swahili, Chichewa) to unusable (Ikposo, Lendu, and Berber eng->xx). Read Limitations before using it for a particular language.

Quick start

pip install torch transformers sentencepiece sacremoses huggingface_hub
import json
import re

import torch
from huggingface_hub import hf_hub_download
from sacremoses import MosesPunctNormalizer
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

MODEL_ID = 'Sunbird-experimental/nllb1.3b-67languages'
device = 'cuda' if torch.cuda.is_available() else 'cpu'

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSeq2SeqLM.from_pretrained(
    MODEL_ID, dtype=torch.bfloat16).to(device).eval()

# SALT language code (e.g. 'lug') -> NLLB language token (e.g. 'lug_Latn').
with open(hf_hub_download(MODEL_ID, 'nllb_language_codes.json')) as f:
    LANG_CODES = json.load(f)
UNKNOWN_SOURCE = 'und'  # Source language not specified

_punct = MosesPunctNormalizer(
    pre_replace_unicode_punct=True, post_remove_control_chars=True,
    norm_quote_commas=False, norm_numbers=False)


def normalize(text):
    '''Applies the same normalization as in training: typographic quotes and
    dashes -> ASCII, whitespace collapsed, control characters removed.'''
    text = re.sub(r'\s+', ' ', text)
    text = text.replace('̇', '').replace('̦', '')
    return _punct.normalize(text)


@torch.no_grad()
def translate(texts, tgt_lang, src_lang=None, num_beams=4):
    '''Translates a list of texts into tgt_lang (a SALT code such as 'lug').
    src_lang is optional; leave it as None if unknown or code-switched.'''
    src_token = LANG_CODES[src_lang or UNKNOWN_SOURCE]
    inputs = tokenizer([normalize(t) for t in texts], return_tensors='pt',
                       padding=True, truncation=True, max_length=512).to(device)
    # NLLB puts the source-language token first: set it explicitly.
    inputs['input_ids'][:, 0] = tokenizer.convert_tokens_to_ids(src_token)
    # Cap the output length to stop runaway repetition on weaker languages.
    max_new_tokens = min(512, 2 * inputs['input_ids'].shape[1] + 10)
    outputs = model.generate(
        **inputs,
        forced_bos_token_id=tokenizer.convert_tokens_to_ids(LANG_CODES[tgt_lang]),
        num_beams=num_beams, max_new_tokens=max_new_tokens, max_length=None)
    return tokenizer.batch_decode(outputs, skip_special_tokens=True)


print(translate(['How are you this morning?',
                 'Farmers should plant their crops before the rains begin.'],
                tgt_lang='lug', src_lang='eng'))
# ['Oli otya enkya eno?',
#  "Abalimi basaanidde okusimba ebirime byabwe ng'enkuba tennatandika."]

print(translate(['Abaana bagenda ku ssomero.'], tgt_lang='eng'))  # no source language
# ['Children go to school.']

print(translate(['Abaana bagenda ku ssomero.'], tgt_lang='ach', src_lang='lug'))
# ['Lutino gicito i cukul.']

The model needs about 3 GB of GPU memory in bfloat16. It also runs on CPU, more slowly.

Why not tokenizer.src_lang / pipeline('translation')?

The standard NLLB recipe (tokenizer.src_lang = 'lug_Latn', or the translation pipeline with src_lang/tgt_lang) works for languages with a native NLLB code. The code above is more general:

  • It uses the SALT codes from nllb_language_codes.json. You don't need to know which NLLB token stands for each language.
  • It supports src_lang=None (the und token), which the standard tokenizer doesn't know about.
  • It applies the input normalization the model was trained with.

Language codes

Use the SALT codes (mostly ISO 639-3) below for src_lang and tgt_lang. nllb_language_codes.json in this repo maps each one to an NLLB language token:

  • Native codes: 33 languages (including English) use their own NLLB token, e.g. lug → lug_Latn, swa → swh_Latn, orm → gaz_Latn, mlg → plt_Latn.
  • Repurposed codes: 42 languages NLLB doesn't support reuse the token of a European language that this model doesn't translate. For example, Acholi ach → fur_Latn (Friulian), Runyankole nyn → lim_Latn, and Ateso teo → lmo_Latn. The NLLB language named in such a token is not a supported language. For example, asking for fur_Latn gives Acholi, not Friulian.
  • Unknown source: und → smo_Latn. Use it only on the source side, to translate without saying what the source language is. It is not a valid target.

The full mapping, with each language's scores, is in the per-language results. The model has tokens for five more languages that salt-69 doesn't cover: Thur (lth), Lulubo (lzm), Kebu (ndp), Sebei (sbx) and So (soc). Their quality has not been measured.

Inference tips

  • Normalize inputs. NLLB's vocabulary has no typographic quotes or dashes, so the model was trained on text normalized as in normalize() above. Output uses ASCII punctuation (' " -); post-process it if you need typographic punctuation.

  • Preserve line breaks. The tokenizer turns newlines into spaces. To keep the layout of multi-line text, split it into lines, translate the non-empty lines as one batch, and re-join:

    def translate_multiline(text, tgt_lang, src_lang=None):
        lines = text.split('\n')
        nonempty = [l for l in lines if l.strip()]
        translated = iter(translate(nonempty, tgt_lang, src_lang)) if nonempty else iter([])
        return '\n'.join(next(translated) if l.strip() else '' for l in lines)
    

    The model was also trained on whole multi-line dialogues, so translating a short paragraph in one go works too.

  • Input length. Training pairs were at most 512 tokens. Longer inputs are truncated, so split long documents into sentences or paragraphs first.

  • Source language: give it if you know it. It helps slightly (+0.3 chrF on average), mostly for xx→eng into English. Leave it out for code-switched or mixed-language text.

  • Mixed target languages in one batch. forced_bos_token_id sets one target language per generate call. To translate into several target languages in one batch, pass decoder_input_ids=[[2, tgt_token_id], ...] (decoder start token, then each row's target-language token) instead.

  • Decoding. The reported scores use beam search with 4 beams. Greedy decoding (num_beams=1) is faster and only slightly worse. The length cap in translate() matters for the weaker languages: without it, some outputs repeat a phrase until they reach the token limit.

Evaluation

All results are on the sunflower test split of salt-69: 100 sentences per language, each translated eng->xx and xx->eng. Scores are chrF (x100), averaged over sentences and then over directions. Before scoring, predictions and references are normalized with Whisper's BasicTextNormalizer. Decoding uses beam search (4 beams, up to 256 new tokens). None of the salt-69 texts were used in training: training pairs containing any salt-69 sentence were removed.

The two comparison models were evaluated with the same metric code and test set: Sunflower-Qwen3.5-27B, Sunbird's 27B translation LLM, and NLLB-200 1.3B, the stock checkpoint this model was fine-tuned from.

ModelParamsAvg chrFeng->xx chrFxx->eng chrFAvg BLEULength ratio
This model, source language given1.3B45.441.849.019.61.16
This model, source language not given1.3B45.141.848.419.41.16
  its SFT checkpoint, before GRPO1.3B45.141.548.819.61.18
  previous release (SFT only)1.3B43.740.047.419.01.27
Sunflower-Qwen3.5-27B27B46.542.050.920.91.02
NLLB-200 1.3B (base, not fine-tuned)1.3B31.629.234.012.71.15

Notes:

  • eng->xx is level with Qwen. 41.8 against 42.0, and this model scores higher in 38 of 69 eng->xx directions (the previous release won 22). These include Zulu, Swahili, Sotho, Igbo, Bambara, Kanuri, Dinka, Ateso, Lugbara and most of the larger Southern, Eastern and West African languages.
  • xx->eng favours Qwen, which leads in 56 of 69 xx->eng directions. A 27B LLM writes more fluent English than a 1.3B translation model. Across both directions Qwen leads in 52 of 69 languages.
  • Against base NLLB-200, this model is ahead in all 69 languages, by 13.8 chrF on average. The base figures above are with the source language given; stock NLLB-200 has no unknown-source token, so its "not given" column is not meaningful and is omitted.
  • Translating without the source language costs 0.3 chrF overall. eng->xx is unchanged, because the model recognizes English. xx->eng loses 0.6, most for Kanuri, Kikuyu, Lumasaba, Lingala, Lugbara and Xhosa (-1.8 to -3.5).
  • Length ratio 1.16, down from 1.27 before GRPO training. What remains is almost entirely eng->xx on the weakest languages (see Limitations). The length cap in the Quick start code limits it further.

Where the gain over base NLLB-200 sits, by whether the language has a native NLLB-200 token (avg chrF):

LanguagesNLLB-200 1.3BPrevious releaseThis modelQwen 27B
32 with a native NLLB token51.155.255.756.4
37 with a repurposed token14.733.736.537.9

How many of the 69 languages reach a given average chrF (mean of eng->xx and xx->eng):

Avg chrF>= 50>= 40>= 30< 30
This model29425613
Previous release26385217
Qwen 27B31445514
NLLB-200 1.3B20263039

Per-language results

chrF x100, source language given unless marked "no src". Bold marks the higher score of this model and Qwen in each direction. A dagger on the token marks a repurposed language code, for which base NLLB-200 was never trained. Sorted by this model's average.

CodeLanguageTokeneng->xxxx->engeng->xx (no src)xx->eng (no src)Qwen eng->xxQwen xx->engNLLB eng->xxNLLB xx->eng
afrAfrikaansafr_Latn80.083.179.983.182.285.180.080.4
zulZuluzul_Latn70.175.670.175.168.879.672.471.0
nyaChichewanya_Latn69.271.469.170.071.473.565.264.7
xhoXhosaxho_Latn66.174.266.472.466.576.662.969.3
swaSwahiliswh_Latn67.270.567.269.466.272.662.667.3
pcmNigerian Pidgindeu_Latn †61.775.962.075.358.078.419.159.2
fraFrenchfra_Latn67.170.066.970.567.172.867.767.6
somSomalisom_Latn62.871.162.770.961.377.160.667.9
sotSothosot_Latn64.868.864.668.559.771.056.364.5
linLingalalin_Latn62.569.962.368.063.773.559.862.4
iboIgboibo_Latn64.267.364.366.258.670.356.561.7
mlgMalagasyplt_Latn61.166.161.865.260.171.560.963.2
amhAmharicamh_Ethi52.671.352.971.649.578.048.868.9
tsnTswanatsn_Latn56.564.256.063.855.864.955.558.6
hauHausahau_Latn57.161.956.760.555.765.354.153.9
kinKinyarwandakin_Latn60.458.061.257.859.162.162.253.2
lugLugandalug_Latn57.758.357.958.157.563.848.252.3
yorYorubayor_Latn50.465.450.565.850.371.348.061.1
snaShonasna_Latn52.561.552.261.552.663.747.756.7
nblNdebeleita_Latn †48.064.448.164.249.168.112.720.3
eweEweewe_Latn52.557.952.058.651.059.047.752.7
bamBambarabam_Latn50.859.150.157.341.153.845.049.0
nyoRunyorodan_Latn †51.757.451.957.050.961.211.916.1
luoLuoluo_Latn53.555.153.555.050.057.947.447.5
runKirundirun_Latn50.357.950.057.950.865.946.953.3
nynRunyankolelim_Latn †51.351.351.050.449.654.913.116.7
ormOromogaz_Latn47.255.047.354.446.158.941.447.4
xogLusogaltg_Latn †47.155.047.054.445.660.112.617.8
achAcholifur_Latn †50.651.550.650.551.252.714.315.1
cggRukigafao_Latn †47.851.448.051.946.454.312.716.6
bemBembabem_Latn45.153.545.051.745.452.638.747.9
akaAkanaka_Latn42.056.441.856.342.758.639.848.1
kikKikuyukik_Latn40.154.340.552.140.764.436.847.1
ttjRutooroscn_Latn †44.649.244.649.943.654.313.117.4
rucRuruulifin_Latn †40.350.040.150.638.656.813.815.8
lggLugbaralij_Latn †41.948.041.846.141.244.813.215.3
lajLangomlt_Latn †39.649.539.750.239.850.113.616.1
teoAtesolmo_Latn †43.844.344.043.642.846.714.016.3
kdiKumamgle_Latn †38.947.639.146.938.445.913.415.4
gwrLugwereoci_Latn †37.946.737.847.038.351.213.517.7
rubLugunguest_Latn †37.946.737.746.239.951.112.315.6
myxLumasabasrd_Latn †40.143.840.241.839.644.013.115.3
kabKabylekab_Latn33.844.533.942.834.149.432.639.6
wolWolofwol_Latn34.543.234.241.532.848.926.034.6
nujLunyolenob_Latn †38.438.638.338.436.943.111.714.5
dinDinkadik_Latn28.547.428.646.120.126.126.637.8
adhJopadholaszl_Latn †35.937.735.436.534.041.514.115.3
bfaBariast_Latn †34.638.734.838.134.840.914.318.4
kooRukonjoepo_Latn †35.836.235.936.036.437.113.316.2
tljLubwisinno_Latn †32.838.933.039.335.041.812.115.6
lsmSamiaals_Latn †34.936.134.635.134.839.113.315.9
keoKakwaeus_Latn †36.432.637.032.335.531.015.615.1
alzAlurvec_Latn †29.539.129.938.229.338.914.514.8
dagDagbaninld_Latn †32.832.032.631.033.436.111.312.4
kauKanuriknc_Latn25.339.225.135.714.524.319.432.4
kdjKaramojongcym_Latn †29.931.429.730.332.732.912.714.9
mhiMa'dislk_Latn †27.429.827.728.329.428.512.513.5
fulFulanifuv_Latn22.933.122.831.622.632.619.425.7
rwmKwambahun_Latn †23.227.223.027.727.127.111.714.4
luyLuhyapol_Latn †19.127.318.626.818.228.111.614.9
lucAringahrv_Latn †15.129.015.129.023.429.313.615.6
dgaDagaareswe_Latn †16.824.516.624.616.126.411.111.8
kpzKupsabinyltz_Latn †16.524.816.323.720.822.512.816.4
ikxIkgla_Latn †13.822.814.922.721.522.116.116.8
klnKalenjincat_Latn †14.021.514.221.116.423.814.315.8
pokPokotlvs_Latn †14.620.814.821.119.521.211.514.6
ledLenduisl_Latn †10.123.810.024.321.824.38.114.0
berBerbertzm_Tfng0.133.00.132.324.638.60.126.6
kpoIkposoglg_Latn †3.819.03.819.14.319.24.06.5

Limitations

Problems seen in salt-69 scores and in manual spot checks (eng->xx, beam search):

  • Weak languages. The 13 languages with average chrF below 30 (Ma'di through Ikposo in the table above) should not be used for eng->xx without human review. xx->eng into English is usually more usable (chrF 19-33) than eng->xx.
  • Output in the wrong language. For some repurposed codes, the model sometimes falls back to the European language whose token was reused. In spot checks, eng->Kalenjin (cat_Latn) gave Catalan and eng->Ikposo (glg_Latn) gave Galician. Kalenjin is the worst case and was deliberately left out of the GRPO wrong-language reward (see Training details), so it is no better here than in the previous release. Some languages also drift into a related, better-resourced language: eng->Ik and eng->Pokot gave text resembling Ateso.
  • Repetition. For several low-resource targets the decoder sometimes repeats a word or phrase until it reaches the length limit. GRPO reduced this -- 6.6% to 5.5% of eng->xx outputs, and only Ik, Kupsabiny, Lendu and Pokot still average more than twice the reference length, down from eight for the SFT checkpoint and twelve for the previous release -- but did not remove it. Lendu and Ik remain the worst (81 and 64 of 100 eng->xx sentences). The length cap in translate() limits the damage. Adding no_repeat_ngram_size=4 to generate also helps, but it doesn't recover a correct translation.
  • Berber script. The Berber (ber) training data is in Tifinagh script, so eng->ber output is Tifinagh. The salt-69 references are presumably in Latin script, which would explain the near-zero eng->ber score (0.1). GRPO could not fix this and was never going to: the reward is chrF against those same references. Use the Kabyle (kab) code if you need Latin-script Berber output.
  • Domain. Training data is mostly general-domain and conversational sentences. Expect lower quality on specialised domains (legal, medical, technical) and on long documents.
  • Punctuation. Output uses ASCII punctuation only (see Inference tips).
  • Evaluation size. Each direction is scored on 100 sentences, so differences of 1-2 chrF points for a single language are within noise. The GRPO stage moved the overall average by 0.3, which is below that per-language threshold; it is reported as real because it is consistent in sign across 56 of 69 languages (sign test p = 8e-8), not because any one language moved a lot.

Training details

Three stages: supervised fine-tuning on all data, a second supervised epoch on the curated pairs alone, then GRPO.

Base and data

  • Base model: facebook/nllb-200-1.3B, fully fine-tuned (all parameters).
  • Data:
    • Sunbird/sunflower-pretrain-data (parallel_text): multi-way parallel text. Up to 15,000 pairs were sampled per eng->xx and per xx->eng direction. Non-English pairs were added, equal to 10% of the English-pivot pairs, with at most 2,000 per language pair.
    • Sunbird/sunflower-posttrain-data (sft_translations): curated translation pairs, upsampled 2x. Multi-line dialogues were included both whole and split line by line.
    • Pairs were removed if they were empty, identical on both sides, duplicated, had a length ratio over 3:1, or contained any salt-69 test sentence.
  • Source-language dropout: in 25% of training pairs, the source-language token was replaced with the unknown-source token (und/smo_Latn). This is what makes the source language optional at inference.
  • Source tagging. The two data sources differ in register: the curated posttrain pairs are clean and modern, the parallel_text rows are noisier and sometimes archaic. Every parallel_text pair was marked with a tag token inserted after its source-language token; the curated pairs were left untagged. Untagged input -- what evaluation and inference send -- therefore asks for the clean style, while the noisier rows still contribute. The tag reuses a spare embedding row of the base model (id 256204, which no string tokenizes to), so the tokenizer is unchanged and nothing at inference time has to know about it.

Supervised fine-tuning

  • AdamW 8-bit (torchao) in pure bfloat16 with stochastic rounding, no weight decay, linear schedule with 100 warmup steps.
  • Phase 1: 2 epochs on all data at learning rate 1e-4.
  • Phase 2: 1 epoch on the curated pairs alone at 5e-5.
  • Token-budgeted batches: <= 6,144 padded tokens per micro-batch, 6 micro-batches per optimizer step (~37k padded tokens per step). Max 512 tokens per side. Seed 42.
  • Evaluated every 500 steps with greedy-decoded chrF on the sft_translations dev split; best checkpoint kept (dev chrF 0.5623).

GRPO

Group-relative policy optimization on the model's own samples, using rl_translations from Sunbird/sunflower-posttrain-data: 5,097 pairs with a reference translation and 3,093 with none.

  • Reward = chrF against the reference, minus penalties for repetition, for output length outside 0.9-1.1x the expected length, for copying the source untranslated, and for replying in the wrong language. The summed repetition and length penalties are capped at 1.0, and the total is then clipped at 0: a repetition loop and a wrong-language reply are equally useless, so ordering them would only add gradient noise.
  • Wrong-language penalty: a flat charge, applied only when the target language falls outside the top 5 labels of Sunbird/sunflower_language_classification. The classifier is neither reliable nor calibrated, and many of these languages are mutually confusable, so only the rank is read, and coarsely.
  • Rows with no reference are scored by round trip: the rollout is translated back to English by a frozen copy of the SFT checkpoint and chrF is measured against the original English. Freezing the back-translator keeps the reward meaning the same at the last step as at the first. Kalenjin was excluded from this branch: its NLLB token is cat_Latn and the classifier has no Kalenjin label, so it is the one language that is both reward-inverted and unguarded.
  • Rollouts: 12 per prompt, 16 prompts per step (192 rollouts per step), temperature 1.1, up to 256 new tokens. Prompt blocks mix target languages, so each step averages over several languages rather than concentrating a long-tail language's few hundred rows into a handful of isolated updates. Advantages are group-mean-centred and scaled by the group's own standard deviation.
  • Optimization: 512 steps (1 epoch over 8,190 prompts), learning rate 2e-6 with 20 warmup steps, gradient clipping at 1.0. Much lower than the supervised learning rate: this is a policy gradient on the model's own samples, on top of an already trained model.
  • Model selection: greedy-decoded chrF on the same dev split every 50 steps. The best checkpoint was step 450 of 512, at dev chrF 0.5670, and it was still improving when the schedule ran out.
  • Hardware: one NVIDIA RTX 5090 (32 GB). ~2.5 hours.
  • Code: notebooks/training/translation_nllb_grpo_69_languages.py in the SunbirdAI/salt repository. The supervised stages are translation_nllb_training_69_languages.py (prepare / train / eval, run with --base_model facebook/nllb-200-1.3B).

License

This model is derived from NLLB-200, which is released under CC-BY-NC-4.0, and is therefore also for non-commercial use.

Citation

If you use this model, please cite Sunbird AI and the NLLB paper:

@article{nllb2022,
  title   = {No Language Left Behind: Scaling Human-Centered Machine Translation},
  author  = {{NLLB Team} and Costa-juss{\`a}, Marta R. and others},
  journal = {arXiv preprint arXiv:2207.04672},
  year    = {2022}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
M2M100ForConditionalGeneration
Ревизия весов
1d894d7

0 моделей