/ Модель

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

Контекст
1 024 токена
Лицензия
CC BY 4.0
Архитектура
marian · dense
Базовая модель
opus-mt-tc-big-ar-en
Библиотека
transformers
Опубликована
17 окт 2026

darjacore-mt-base

ПереводТекст → текст4 профессии
23скачиваний за 30 дней1лайквеса обновлены17 окт 2026

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

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

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

DarjaCore-MT-Base — модель машинного перевода, разработанная в рамках открытого исследовательского проекта DarjaCore. Она переводит алжирскую даржу на английский в одном направлении. Модель построена на архитектуре Marian encoder-decoder Transformer и дообучена на базе Helsinki-NLP/opus-mt-tc-big-ar-en. Контекст составляет 1024 токена; модель доступна в формате safetensors для Transformers. Лицензия — CC BY 4.0.

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

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

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

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

Ограничения

Arabizi поддерживается слабо; короткие неоднозначные фразы, имена, идиомы и сленг часто переводятся неверно, а длинные предложения могут содержать повторы. Обучающие эталонные переводы частично созданы LLM, поэтому важные результаты требуют проверки носителем языка.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

DarjaCore-MT-Base: Algerian Darja → English

License: CC BY 4.0 Direction Base model Library CTranslate2 BLEU chrF Status DarjaCore

DarjaCore-MT-Base is a neural machine translation model that translates Algerian Darja (Algerian Arabic dialect, written mainly in Arabic script) into English. Translation runs in one direction only: Darja → English. It is a fine-tune of Helsinki-NLP/opus-mt-tc-big-ar-en and is part of DarjaCore, an open research effort to build datasets, translation models and tools for Algerian Darja.

Standard Arabic translation models handle Modern Standard Arabic well but struggle with Darja's vocabulary, French loanwords, spelling variation and informal social-media style. This model was adapted to that register.

DirectionAlgerian Darja → English
ArchitectureMarian encoder-decoder Transformer
Base modelHelsinki-NLP/opus-mt-tc-big-ar-en
Parameters~300M
TokenizerSentencePiece (source.spm, target.spm)
Languagesar (Darja) → en
LicenseCC-BY-4.0 (see License)

A quantized CTranslate2 version for fast CPU inference is available at DarjaCore/darjacore-mt-base-ct2-int8.

Quick start

from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_id = "DarjaCore/darjacore-mt-base"

tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=False)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)

texts = [
    "عندك حق",
    "وين رحتي",
    "ربي يسهلك اخويا و ربي يهدينا",
]

inputs = tokenizer(texts, return_tensors="pt", padding=True, truncation=True)
output_ids = model.generate(**inputs, num_beams=4, max_new_tokens=128)

for source, translation in zip(
    texts, tokenizer.batch_decode(output_ids, skip_special_tokens=True)
):
    print(f"{source} -> {translation}")

Requirements: pip install transformers torch sentencepiece. Installing sacremoses is optional and only silences a tokenizer warning.

The evaluation numbers below were produced with num_beams=4 and max_new_tokens=128. Different decoding settings will give slightly different outputs.

Faster CPU inference with CTranslate2

For CPU deployment, use the int8 CTranslate2 conversion. It uses much less memory and decodes considerably faster on CPU than fp32 PyTorch. All reported quality numbers were measured on this int8 version.

import ctranslate2
from huggingface_hub import snapshot_download
from transformers import AutoTokenizer

repo_id = "DarjaCore/darjacore-mt-base-ct2-int8"
model_dir = snapshot_download(repo_id)

tokenizer = AutoTokenizer.from_pretrained(model_dir, use_fast=False)
translator = ctranslate2.Translator(
    model_dir, device="cpu", compute_type="int8", intra_threads=6
)

texts = ["عندك حق", "وين رحتي"]
source = [
    tokenizer.convert_ids_to_tokens(tokenizer.encode(text, truncation=True, max_length=512))
    for text in texts
]
results = translator.translate_batch(
    source, beam_size=4, max_decoding_length=128, max_batch_size=16
)
for result in results:
    ids = tokenizer.convert_tokens_to_ids(result.hypotheses[0])
    print(tokenizer.decode(ids, skip_special_tokens=True))

Requirements: pip install ctranslate2 transformers sentencepiece huggingface_hub.

Intended use

  • Translating informal Algerian Darja text (social media posts, forum comments, chat messages) into English for comprehension, search, data exploration and research.
  • Building or bootstrapping downstream Darja NLP resources, with human review of the output.
  • A baseline for further research on Algerian dialectal Arabic machine translation.

Out-of-scope use

  • Legal, medical, financial, immigration or any other safety-critical translation.
  • Translating text where a mistranslation could cause harm without human review.
  • Translating Modern Standard Arabic or other Arabic dialects: other models are likely a better fit.
  • English → Darja translation. This model translates in one direction only.
  • Use as an authoritative source for religious texts. Religious formulas are often rendered loosely.

Training data

The model was fine-tuned on a parallel corpus of Algerian Darja sentences paired with English translations.

  • Source side: Darja text collected from public Algerian online sources such as forums and comment threads, cleaned and filtered (deduplication, removal of non-Arabic and low-quality posts).
  • Target side: English references that are at least partly machine-generated (LLM) and were not systematically reviewed by human translators.
  • Size: 245,734 parallel sentence pairs for training, 12,934 for validation, and 2,808 pairs in the held-out test set.

The training and test data are not redistributed in this repository. See Limitations for what this implies about quality.

Evaluation

Evaluated on the held-out test set (2,808 sentence pairs) with sacreBLEU default settings (BLEU with 13a tokenization, chrF and chrF++ with word_order=2).

VersionBLEUchrFchrF++
int8 (CTranslate2)16.5636.7535.40

Reading these numbers. The reference translations are partly machine-generated and noisy, and some contain explanatory notes or mistranslations, so absolute scores understate real translation quality and should not be compared directly with scores on clean benchmarks. They are most useful for comparing model versions and decoding settings on the same data.

Illustrative outputs

Selected outputs from internal testing (not cherry-picked for the best case; see failures under Limitations).

DarjaOutput
عندك حقYou are right
وين رحتيWhere did you go
تخافيش مراحش ناكلكDon't be afraid, I won't eat you
ربي يسهلك اخويا و ربي يهديناMay God make it easy for you my brother and may God guide us
لاتهتمDon't worry

Limitations

This is a research model with known weaknesses.

  • Noisy training signal. Because English references are partly LLM-generated, the model can inherit their errors, omissions and stylistic quirks.
  • Romanized Darja (Arabizi) is poorly supported. Inputs such as Rani cv hmdlh or Bdit ta3rag bred malk are usually copied or transliterated instead of translated.
  • Very short and ambiguous inputs are often mistranslated, since there is little context (for example, a single word can be rendered as a transliteration).
  • Proper nouns and place names can be wrong. In internal tests the Arabic word for Bahrain was translated as a different country.
  • Idioms and slang are frequently translated literally and lose their meaning.
  • Religious formulas and long sentences can degrade, and long inputs may trigger repeated phrases. Truncating very long inputs or splitting them into sentences helps.
  • Emoji, decorative Unicode and mixed scripts may be dropped or handled inconsistently.
  • Dialectal variation. Darja differs by region and speaker. Coverage is uneven across regions and spellings.
  • Bias. The model reflects the content and attitudes of the online sources it was trained on, including potentially offensive language, stereotypes and the loose translation of slurs.

Please have important translations reviewed by a fluent human speaker.

Training procedure

  • Method: full fine-tuning of the base model on Darja → English sentence pairs.
  • Tokenizer: the base model's SentencePiece vocabulary (source.spm, target.spm, vocab.json).
  • Hyperparameters: learning rate 2e-5, batch size 32, max sequence length 128, 20,000 training steps with 500 warmup steps, AdamW optimizer (betas=(0.9, 0.98), weight_decay=0.01), cosine learning rate schedule, gradient clipping 1.0, mixed precision (AMP).
  • Hardware: 2× NVIDIA T4 (training time: 4h 4m 5s).

Reproducing the evaluation

pip install transformers torch sentencepiece ctranslate2 sacrebleu

python scripts/test_helsinki.py --data data/processed/test.jsonl --count 2808 --seed 42 --backend ct2 --num-beams 4 --output runs/final_ct2_int8.jsonl

License

The base model Helsinki-NLP/opus-mt-tc-big-ar-en is released under CC-BY-4.0, and this fine-tuned model is released under the same license, with attribution to the OPUS-MT authors.

The fine-tuning data was collected from public online sources and its English side is machine-generated. The data is not included here, and no redistribution rights for it are granted or implied. If you build on this model, make sure your use also complies with the terms of any data you add.

Citation

If you use this model, please cite DarjaCore and the OPUS-MT work it builds on.

@misc{darjacore_darja_en_2026,
  title        = {DarjaCore-MT-Base: Algerian Darja to English machine translation},
  author       = {{DarjaCore}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/DarjaCore/darjacore-mt-base}}
}

@inproceedings{tiedemann-thottingal-2020-opus,
  title     = {{OPUS}-{MT} {--} Building open translation services for the World},
  author    = {Tiedemann, J{\"o}rg and Thottingal, Santhosh},
  booktitle = {Proceedings of the 22nd Annual Conference of the European Association for Machine Translation},
  year      = {2020},
  address   = {Lisboa, Portugal},
  publisher = {European Association for Machine Translation},
  url       = {https://aclanthology.org/2020.eamt-1.61},
  pages     = {479--480}
}

Contact

Questions, bug reports and contributions: open a discussion on this model's page or visit the DarjaCore organization.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей