/ Модель

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

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

nllb-200-egyptian-translator-v2

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

Дообученная модель NLLB-200 переводит английские тексты на разговорный египетский арабский (масри).

44скачиваний за 30 дней0лайковвеса обновлены27 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Модель abdullah-khaled/nllb-200-egyptian-translator-v2 разработана на основе NLLB-200 Distilled 600M и дообучена на наборе данных abdullah-khaled/masry_yasta для перевода с английского на египетский разговорный арабский (масри). Это плотная последовательностная модель семейства M2M-100 с архитектурой M2M100ForConditionalGeneration; она предназначена для машинного перевода и локализации текстов на египетский диалект. В README описаны supervised fine-tuning, сбалансированная выборка языковых групп и повышенная частота примеров с редкими токенами. Модель оценивали на 1 216 примерах из отложенных групп языковых конструкций; лучшие значения в логах составили chrF 63,72 и BLEU 39,56, причём они получены на разных эпохах и не подтверждают, что загруженная версия соответствует одному из этих чекпойнтов.

Модель принимает текст и выдаёт текст перевода. В обучении использован код целевого языка ary_Arab, обозначающий марокканский арабский в NLLB; README уточняет, что египетский диалект усвоен из обучающих данных, поэтому этот код не является идентификатором египетского арабского. Максимальный контекст составляет 1 024 токена, а README указывает ограничение источника в 64 токена. Лицензия CC-BY-NC-4.0 запрещает коммерческое использование. Перед применением результат следует проверять на точность смысла, естественность масри и соответствие диалекту.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

NLLB-200 Egyptian Arabic Translator

English → Egyptian Arabic (Masri)

A fine-tuned version of NLLB-200 Distilled 600M, trained on the Masry Yasta dataset to adapt multilingual neural machine translation to colloquial Egyptian Arabic.

The model uses supervised fine-tuning, family-balanced sampling, and rare-token upsampling, with evaluation across held-out linguistic pattern families.

Model Details

PropertyDescription
ModelNLLB-200 Distilled 600M, fine-tuned
Base modelfacebook/nllb-200-distilled-600M
Training datasetabdullah-khaled/masry_yasta
TaskEnglish-to-Egyptian Arabic translation
ArchitectureEncoder-decoder Transformer
FrameworkPyTorch, Hugging Face Transformers
Source language codeeng_Latn
Target language codeary_Arab
Training examples14,885
Validation examples1,216
Training epochs30

Language-code note: The training configuration uses ary_Arab, which is the NLLB language code for Moroccan Arabic. Egyptian Arabic is the intended output dialect, learned through fine-tuning on the dataset. The language code should not be interpreted as an Egyptian Arabic identifier.

Evaluation Results

The model was evaluated on 1,216 examples from held-out linguistic pattern families.

MetricBest observed scoreEpoch
chrF63.7226
BLEU39.5629

These are corpus-level automatic evaluation scores calculated with SacreBLEU.

  • chrF measures character n-gram overlap between generated translations and reference translations.
  • BLEU measures word n-gram precision with a brevity penalty.

The best chrF and BLEU scores were obtained at different epochs. The values above represent the best observed results in the training logs; they do not independently establish that the final uploaded model corresponds to either checkpoint.

Validation Strategy

Eight sentence-level linguistic families were excluded from training and used for validation:

  • Verb-hearing patterns
  • Time adverbs
  • Comparatives
  • Passive constructions
  • Imperatives
  • Conditionals
  • WH-questions
  • Work-related verb patterns

This structured split evaluates performance on selected held-out families. It does not guarantee complete separation of related linguistic patterns or eliminate potential duplicate examples.

Training Methodology

Family-balanced sampling

Training examples are weighted inversely to the size of their (task_type, family) group. This increases the relative sampling probability of examples from smaller linguistic families.

Rare-token upsampling

Tokens appearing no more than three times in the training split are treated as rare. Examples containing rare tokens in either language receive an additional sampling multiplier, capped at 4.0.

The final sample weight combines family balancing and rare-token upsampling:

[ w_i = w_{\text{family},i}\times w_{\text{rare},i} ]

Weighted random sampling with replacement is used during training.

Fine-tuning configuration

ParameterValue
Learning rate2e-5
OptimizerAdafactor
Warmup steps100
Training epochs30
Per-device batch size16
Gradient accumulation steps2
Maximum source length64 tokens
Maximum target length64 tokens
Random seed42
Learning-rate scheduleLinear
Gradient checkpointingEnabled

Mixed precision uses BF16 when supported by the available CUDA device and FP16 otherwise.

Usage

Install the required libraries:

pip install torch transformers sentencepiece

Load the model and translate English text:

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
import torch

HUB = "abdullah-khaled/nllb-200-egyptian-translator-v2"

# ⚠️ Force tie_word_embeddings=True at load time to restore the tie
model = AutoModelForSeq2SeqLM.from_pretrained(HUB, tie_word_embeddings=True)
tok   = AutoTokenizer.from_pretrained(HUB, src_lang="eng_Latn", tgt_lang="ary_Arab")

texts = [
    "Can you hear me?",
    "when you will finish work?",
    "go away"
]

for text in texts:
    inputs = tok(text, return_tensors="pt")
    with torch.no_grad():
        out = model.generate(
            **inputs,
            forced_bos_token_id=tok.convert_tokens_to_ids("ary_Arab"),
            max_length=64,
        )
    print(f"Input: {text}")
    print(f"Output: {tok.decode(out[0], skip_special_tokens=True)}\n")

Example Output

Input: Can you hear me?
Output: انت سامعني؟

Input: when you will finish work?
Output: هتخلص الشغل إمتى؟

Input: go away
Output: امشي

The generated translation should be checked for meaning preservation, natural Egyptian phrasing, and dialect consistency.

Intended Use

Potential applications include:

  • English-to-Egyptian Arabic translation.
  • Egyptian Arabic localization.
  • Research on dialect-specific machine translation.
  • Experiments with low-resource and dialect-adapted multilingual models.

Limitations

  • Automatic metrics do not fully capture fluency, cultural context, idiomatic expressions, or semantic correctness.
  • Performance may vary across dialectal expressions, spelling variations, code-switching, and conversational contexts.
  • The 64-token source limit may truncate longer inputs.
  • The model uses the NLLB Moroccan Arabic target-language code despite being fine-tuned for Egyptian Arabic.
  • The reported evaluation is based on a structured held-out split and should not be treated as an independent benchmark.

Human evaluation by native Egyptian Arabic speakers and comparisons against appropriate baseline models are recommended before production deployment.

Acknowledgments

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей