/ Модель

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

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

nllb-600m-formosan-all-finetune-v3

ПереводТекст → текст3 профессии
176скачиваний за 30 дней0лайковвеса обновлены18 ноя 2026

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

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

Дообученная NLLB-модель для перевода между традиционным китайским и 42 диалектами коренных языков Тайваня.

NLLB-600M Formosan — дообученная модель на основе facebook/nllb-200-distilled-600M для перевода между традиционным китайским (мандарин) и 42 формозскими диалектами Тайваня в обоих направлениях. Она использует архитектуру M2M100ForConditionalGeneration и словарь на 256 512 токенов с отдельными токенами диалектов и резервным кодированием байтов для символов вне исходного словаря NLLB. Модель обучена на 585 896 парах предложений из десяти наборов данных; её нативный контекст — 1024 токена.

Модель предназначена для перевода предложений и коротких текстов, включая тексты с повторяющимися словами. В README описаны 42 диалекта и их коды, включая Amis, Bunun, Truku, Seediq, Yami и Rukai. Для длинных материалов рекомендуется переводить по предложениям: качество перевода абзацев заметно ниже. Качество различается между диалектами, а результаты на новостях и разговорной речи могут уступать оценкам на тестовых данных из источников обучения. Для сохранения byte fallback нужно загружать токенизатор способом из formosan_translate.py: стандартный AutoTokenizer может терять поддержку символов вне словаря. Репозиторий распространяется по лицензии CC BY-NC 4.0, которая ограничивает коммерческое использование.

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

  • перевод предложений с традиционного китайского на диалекты Тайваня
  • перевод текстов на формозских диалектах на мандарин
  • двусторонний перевод материалов на языке Amis
  • перевод обучающих материалов на диалектах Bunun, Truku и Seediq
  • перевод коротких текстов с повторяющимися словами

Ограничения

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

NLLB-600M Formosan (all dialects) finetune v3

A finetune of facebook/nllb-200-distilled-600M for translation between Mandarin (Traditional Chinese) and 42 Formosan dialects of Taiwan, in both directions. It succeeds ILRDF/nllb-600m-formosan-all-finetune-v2.

Changes from v2:

  • New training data (10 datasets). Test sentences are held out across dialects and datasets: no training pair shares a test sentence's Mandarin (in any dialect), a near-identical Mandarin, or its Formosan within the language family.
  • Glossary entries are dropped from every dataset, so the model is trained on sentence-level translation.
  • Byte-fallback tokenizer: characters outside NLLB's vocabulary (蕉, 猴, 橘, ...) are no longer lost as <unk>.
  • Sentence-initial casing normalized for Amis, Bunun, Truku and Seediq.
  • Klokah lessons merged into paragraphs, so the model also sees multi-sentence input.
  • Synthetic repeated-word pairs (fafoy, fafoy, fafoy ↔ 豬、豬、豬), which v2 collapses to one word.
  • Larger batches (256 sentences/step), higher learning rate and 15 epochs.

Files

FileDescription
model.safetensors, config.json, generation_config.jsonModel weights
tokenizer.json, tokenizer_config.jsonNLLB tokenizer + 256 byte-fallback tokens + 42 dialect tokens + 3 format tokens (vocabulary 256,512)
dialects.jsonlang_code → dialect token, dialect name
formosan_translate.pyInference (FormosanTranslator)

Usage

pip install torch transformers tokenizers huggingface_hub
import sys

from huggingface_hub import snapshot_download

repo_dir = snapshot_download("ILRDF/nllb-600m-formosan-all-finetune-v3")
sys.path.insert(0, repo_dir)
from formosan_translate import FormosanTranslator

mt = FormosanTranslator(repo_dir, device="cuda")
print(mt.translate(["Maolah kako komaen to pawli."], "ami-x-pswl", "zh"))  # 海岸阿美語 → 華語
print(mt.translate(["我喜歡吃香蕉。"], "zh", "ami-x-pswl"))               # 華語 → 海岸阿美語
  • Languages are formospeech lang_codes (table below) or "zh"; the model tokens (ami_Coas, zho_Hant) also work.
  • translate() takes a list and batches it (batch_size=32); decoding is greedy by default (num_beams=1), as in the evaluation.
  • Load the tokenizer as formosan_translate.py does. AutoTokenizer.from_pretrained() on this repo silently drops byte fallback (transformers 5.x rebuilds the tokenizer without it), and every character outside NLLB's vocabulary becomes <unk>.
  • Amis, Bunun, Truku and Seediq sentence starts are lower-cased in training; translate() lower-cases them in the input and capitalizes them in the output. Case is never changed in Kavalan and Saisiyat, where it marks different sounds.
lang_codeDialectToken
ami-x-frng馬蘭阿美語ami_Mala
ami-x-iams南勢阿美語ami_Sout
ami-x-pld恆春阿美語ami_Heng
ami-x-pswl海岸阿美語ami_Coas
ami-x-skl秀姑巒阿美語ami_Xiug
bnn-x-bkh卡群布農語bnn_Kaqu
bnn-x-bnz巒群布農語bnn_Luan
bnn-x-isbk郡群布農語bnn_Junq
bnn-x-td卓群布農語bnn_Zhuo
bnn-x-vtn丹群布農語bnn_Tanq
ckv噶瑪蘭語ckv_Kava
dru-x-kgdv多納魯凱語dru_Dona
dru-x-lbw大武魯凱語dru_Dawu
dru-x-ngdr霧臺魯凱語dru_Wuta
dru-x-opnh萬山魯凱語dru_Wans
dru-x-tldr茂林魯凱語dru_Maol
dru-x-trmk東魯凱語dru_East
pwn-x-kcdsn東排灣語pwn_East
pwn-x-pnvn中排灣語pwn_Cent
pwn-x-vnrn北排灣語pwn_Nrth
pwn-x-ynvl南排灣語pwn_Sout
pyu-x-ksvk建和卑南語pyu_Jian
pyu-x-ktrp知本卑南語pyu_Zhib
pyu-x-mkzy西群卑南語pyu_Xiqu
pyu-x-pym南王卑南語pyu_Nanw
ssf邵語ssf_Thao
sxr拉阿魯哇語sxr_Saar
szy撒奇萊雅語szy_Saki
tao雅美語tao_Yami
tay-x-cql四季泰雅語tay_Four
tay-x-kls宜蘭澤敖利泰雅語tay_Yzea
tay-x-mtuw汶水泰雅語tay_Wens
tay-x-plngw萬大泰雅語tay_Wand
tay-x-sql賽考利克泰雅語tay_Seko
tay-x-sul澤敖利泰雅語tay_Zeao
trv-x-td都達賽德克語trv_Duda
trv-x-tgdy德固達雅賽德克語trv_Tegu
trv-x-trk德鹿谷賽德克語trv_Delu
trv-x-truku太魯閣語trv_Truk
tsu鄒語tsu_Tsou
xnb卡那卡那富語xnb_Kana
xsy賽夏語xsy_Sais

Training

Data

train splits of ten datasets. Every pair is used in both directions (Formosan → Mandarin and Mandarin → Formosan). Records below are both directions, after the row filters (step 1) and before test-set exclusion and deduplication.

DatasetRevisionRecords
formospeech/klokah70ebc0bc593,426
formospeech/ilrdf_dicts55b7cf23195,488
formospeech/formosan_bible65fac6b3180,022
ILRDF/formosan_dbb0faf438140,506
formospeech/ithuan_formosan_textb4776d9343,246
formospeech/nchu_pangcahad3893cb39,458
formospeech/ithuan_formosanf9f9f76432,168
formospeech/ntu_formosan_corpusc361416027,846
formospeech/nchc_formosane9c856d021,286
formospeech/klokah_pccc71b17049,034
Synthetic repeated-word pairs—12,600

After removing 10,494 records that overlap the test sets and 112,794 duplicates: 1,171,792 records (585,896 pairs).

Processing:

  1. Dropped: rows whose Formosan or Mandarin side is empty or punctuation only; glossary entries (ids containing word, and entries of at most two Formosan words whose Mandarin is a gloss rather than a sentence, e.g. ha = 哈); rows whose Mandarin side also carries the Formosan text; and dialects outside the 42.
  2. Leading punctuation removed; a trailing , / : becomes ., a trailing ,、: becomes 。.
  3. Sentence starts lower-cased for Amis, Bunun, Truku and Seediq, whose orthographies capitalize them but whose ASR-derived transcripts are mostly lower case.
  4. Klokah reading lessons (cu_practice, rd_practice) are merged into paragraphs ending on a Chinese full stop and used only as paragraphs. 10% of the texts go to the paragraph test set, split by text across all its dialect versions.
  5. Repeated-word pairs: 150 klokah glossary words per dialect, repeated 2–6 times, separated by , or a space.
  6. Test-set exclusion. A training pair is removed if it matches a test pair; if its Mandarin matches a test sentence's Mandarin in any dialect (punctuation and whitespace removed, 臺/台 and 甚麼/什麼 unified, personal names masked); if its Mandarin is near-identical to one (character 3–5-gram Jaccard ≥ 0.85); or if its Formosan matches a test sentence's Formosan in the same language family.
  7. Deduplication on (dialect, Formosan, Mandarin), across all datasets, keeping the first occurrence.

Tokenizer

The NLLB tokenizer with new tokens appended after its vocabulary, so every original token id is unchanged:

  • 256 byte tokens <0x00>–<0xFF> with byte fallback on. 0.32% of the characters in the training data, in 23% of the Mandarin sentences, are outside NLLB's vocabulary.
  • 42 dialect tokens (ami_Coas, pwn_Cent, ...), one per dialect.
  • 3 format tokens (<bt>, <seg>, <gloss>) reserved for experiments; this model is not trained with them.

Configuration

  • 4× RTX A5000, 15 epochs (68,670 steps), 256 sentences per step (64 per GPU), lr 1.5e-3 (linear, 10% warmup), weight decay 0.01, AdamW, bf16, max input length 512 tokens.
  • Batches group sentences of similar length and are balanced across the GPUs by estimated compute.

Evaluation

  • Sentence test set: the eval splits of formospeech/klokah (revision 70ebc0bc, where every dialect version of a sentence is on the same side) and formospeech/ithuan_formosan, without glossary entries and sentences under four Chinese characters once names are removed: 41,489 sentences in each direction.
  • Paragraph test set: 2,255 klokah paragraphs in each direction (see Processing, step 4).
  • Metrics: sacrebleu corpus chrF, chrF++ (word n-gram order 2) and BLEU, case-insensitive except for Kavalan and Saisiyat targets. BLEU tokenizes Mandarin with zh (one token per character) and Formosan with 13a. For Mandarin targets, punctuation on both sides is converted to full width first, and chrF++ is not reported: its word n-grams split on whitespace, which unsegmented Mandarin does not have.
  • Greedy decoding; Amis, Bunun, Truku and Seediq sentence starts handled as in Usage.
  • Baseline: ILRDF/nllb-600m-formosan-all-finetune-v2. Its training data contains the Mandarin of 91.7% of the test sentences, so the comparison that matters is the 2,545 sentences (1,622 paragraphs) whose Mandarin and Formosan it has not seen (v2-unseen).
Test setDirectionv2 chrFv2 chrF++v2 BLEUv3 chrFv3 chrF++v3 BLEU
Sentences (41,489)Formosan → Mandarin71.91—75.1745.15—49.62
Sentences (41,489)Mandarin → Formosan66.3264.9144.8361.9860.2839.04
v2-unseen (2,545)Formosan → Mandarin13.90—14.4823.78—26.43
v2-unseen (2,545)Mandarin → Formosan40.0838.1512.5145.1842.9816.58
Paragraphs (2,255)Formosan → Mandarin9.85—9.3811.15—10.67
Paragraphs (2,255)Mandarin → Formosan32.2430.115.3236.2233.718.38
v2-unseen paragraphs (1,622)Formosan → Mandarin7.77—6.3311.07—10.67
v2-unseen paragraphs (1,622)Mandarin → Formosan30.4428.374.2636.1233.668.52
  • v2 is ahead over all sentences only because it was trained on most of them.
  • v2-unseen sentences are newer and longer klokah text than the rest of the test set, so both models score low on them.
  • Byte fallback matters: 18.2% of the v2-unseen Mandarin references contain a character v2 cannot produce. On those sentences v3 leads by 15.7 chrF, on the rest by 8.3.

→ zh: Formosan → Mandarin; zh →: Mandarin → Formosan; para: paragraph test set.

lang_codeDialectn→ zh chrF→ zh BLEUzh → chrFzh → chrF++zh → BLEUn (para)para → zh chrFpara zh → chrFpara zh → chrF++
ami-x-frng馬蘭阿美語71355.6560.9267.7266.2446.944717.5740.8039.27
ami-x-iams南勢阿美語73550.4755.4865.6964.3545.88369.3336.7534.49
ami-x-pld恆春阿美語70654.3459.2265.2763.4341.226014.2433.3031.40
ami-x-pswl海岸阿美語136946.6751.1164.2462.5040.934716.4641.5539.16
ami-x-skl秀姑巒阿美語75651.4756.2163.5161.8641.31439.8635.6933.52
bnn-x-bkh卡群布農語75143.5748.2351.7848.8421.44416.6726.8424.30
bnn-x-bnz巒群布農語77845.6250.6060.0057.2631.455710.6437.9134.93
bnn-x-isbk郡群布農語137042.6847.4060.7257.8031.544110.0536.3533.25
bnn-x-td卓群布農語73348.2452.0960.2357.5333.645311.7031.5428.22
bnn-x-vtn丹群布農語76047.2552.3559.7457.4132.41279.2036.0233.42
ckv噶瑪蘭語139545.1149.7166.9866.0446.525312.7643.3940.89
dru-x-kgdv多納魯凱語74143.7047.7660.8058.2333.98487.0232.5730.17
dru-x-lbw大武魯凱語75348.2452.3963.7961.6039.09938.8036.3233.62
dru-x-ngdr霧臺魯凱語138640.8243.8658.7956.1931.69518.4331.6827.60
dru-x-opnh萬山魯凱語76443.9248.5959.8456.5530.395313.1134.4929.88
dru-x-tldr茂林魯凱語77336.5639.6847.0144.8622.87314.0723.1320.84
dru-x-trmk東魯凱語74945.7349.5856.7853.9830.50588.6934.0630.25
pwn-x-kcdsn東排灣語76348.7453.5361.2159.1837.43619.2331.5028.66
pwn-x-pnvn中排灣語78044.0248.0059.2057.2236.37818.1530.9028.08
pwn-x-vnrn北排灣語139341.4944.5658.2856.4933.751567.4732.5629.51
pwn-x-ynvl南排灣語73948.0353.0460.8858.5734.92516.5029.5327.17
pyu-x-ksvk建和卑南語74851.5656.6167.2866.3047.6012017.9941.5239.40
pyu-x-ktrp知本卑南語74154.6058.8065.5064.2744.028313.1240.5838.37
pyu-x-mkzy西群卑南語75553.5658.6966.9766.0946.819711.6342.6839.97
pyu-x-pym南王卑南語134746.8551.3568.9367.9850.367512.9840.1737.81
ssf邵語133741.9346.2066.7465.1943.362912.4739.4137.61
sxr拉阿魯哇語129040.1343.8465.5861.3531.36606.8436.1930.78
szy撒奇萊雅語139443.6947.8464.7163.4042.173413.2735.8834.43
tao雅美語140736.3539.4853.5052.3931.59697.8831.9630.42
tay-x-cql四季泰雅語76648.6153.1757.5956.8337.08556.9428.6726.46
tay-x-kls宜蘭澤敖利泰雅語74953.2658.0563.6563.1045.141517.5131.3929.43
tay-x-mtuw汶水泰雅語73248.0952.6460.8259.1739.56236.1434.8932.46
tay-x-plngw萬大泰雅語73947.1551.8162.0060.9542.13438.1030.5228.94
tay-x-sql賽考利克泰雅語140642.4546.6553.8452.2529.75197.0225.3923.24
tay-x-sul澤敖利泰雅語70250.9855.6758.3457.4538.474013.2936.8034.84
trv-x-td都達賽德克語72951.4756.6459.1558.6038.141719.7041.3439.48
trv-x-tgdy德固達雅賽德克語144140.1844.5157.5056.7236.652312.0233.1631.43
trv-x-trk德鹿谷賽德克語72052.0457.2964.2363.5845.90910.0734.5631.80
trv-x-truku太魯閣語142546.6451.2667.5066.9749.276215.5242.8841.85
tsu鄒語137341.1844.5156.5654.7733.223710.9233.6331.04
xnb卡那卡那富語139443.3947.9467.9565.8541.119217.0744.4241.34
xsy賽夏語138744.2848.3768.3266.4947.736511.5743.4641.04

Limitations

  • Paragraph translation is much weaker than sentence translation (Formosan → Mandarin chrF 11.15). Translate long text sentence by sentence.
  • Quality varies widely by dialect; Yami (tao) and Maolin Rukai (dru-x-tldr) are the weakest. See the per-dialect table.
  • The test sets come from the same sources as the training data (klokah lessons, ithuan_formosan), so scores on other kinds of text (news, conversation) are likely lower.
  • Use the tokenizer loading in formosan_translate.py; a plain AutoTokenizer.from_pretrained() loses byte fallback.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей