/ Модель

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

Лицензия
CC BY-NC 4.0
Архитектура
gemma4 · dense
Базовая модель
gemma-4-E4B-it
Опубликована
28 сен 2026

alexmt-gemma4-e4b-dpo-bwspbleu-lr2e6

Генерация текстаТекст → текст3 профессии

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

165скачиваний за 30 дней0лайковвеса обновлены28 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

alexmt-gemma4-e4b-dpo-bwspbleu-lr2e6 — диалоговая модель перевода, разработанная на базе Gemma 4 E4B Instruct и дообученная командой, опубликовавшей чекпойнт, методом DPO. Она переводит в обе стороны между английским языком и девятью разновидностями диалектного арабского: египетской, иорданской, ливанской, марокканской, оманской, палестинской, саудовской, сирийской и йеменской. Для перевода учитывает до трёх предыдущих реплик, предметную область беседы, участников и направление рода говорящего и адресата. Ожидает JSON-промпт Alexandria в одном пользовательском сообщении и возвращает перевод в поле translation; для генерации требуется шаблон чата токенизатора с add_generation_prompt=True и отключённым thinking.

Модель основана на плотной архитектуре Gemma 4 E4B и распространяется в формате safetensors. На публичном тестовом наборе Alexandria авторы сообщают усреднённые по девяти разновидностям оценки spBLEU 30,12 и chrF++ 45,24 для перевода с английского на диалекты и 53,14 и 67,55 соответственно для перевода с диалектов на английский. Результаты получены с одним seed и одним разбиением данных; сравнение вариантов DPO на тестовой выборке предварительное, а показатели нельзя напрямую сопоставлять с результатами других протоколов. Лицензия CC-BY-NC-4.0 разрешает некоммерческое использование с соблюдением её условий.

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

  • Перевод английских реплик на египетский арабский диалект
  • Перевод арабских диалектных реплик на английский
  • Перевод диалогов с учётом предыдущих реплик
  • Локализация разговорного диалога для девяти арабских разновидностей
  • Перевод беседы с учётом говорящего, адресата и предметной области

Ограничения

Оценка основана на одном seed и одном разбиении; выбор DPO learning rate проводился по тестовой выборке, поэтому небольшие различия между вариантами не подтверждены. Проверялись только метрики совпадения текста, верность диалекту отдельно не оценивалась.

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

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

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

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

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

Открыть на Hugging Face

alexmt-gemma4-e4b-dpo-bwspbleu-lr2e6

Context-aware English ↔ dialectal Arabic translation for conversational turns, trained on Alexandria.

DPO (beta 0.1, lr 2e-6, 3 epochs, effective batch 32) on top of alexmt-gemma4-e4b-sft.

Preference pairs. The SFT model generated 5 candidates (1 greedy + 4 sampled) for each source turn of a train fold held out from SFT. Candidates were ranked by sentence spBLEU against the human reference; chosen = best, rejected = worst (both are model outputs; the reference is only the yardstick).

Data. Alexandria train split, 9 varieties (EG, JO, LB, MR, OM, PS, SA, SY, YE), both directions. The train split is divided into 5 conversation-level folds; SFT uses folds 1-4, and fold 0's source turns feed the preference pairs. Each example includes up to 3 prior turns as context, the domain, the participants, and the speaker/addressee gender direction.

Results

Alexandria public test split, 9 varieties, macro-average over varieties; greedy decoding, max 128 new tokens, our own prompt/decoding setup (not the Alexandria paper's).

modelen→dialect spBLEUchrF++len/refdialect→en spBLEUchrF++len/ref
alexmt-gemma4-e4b-sft29.0644.100.9950.6165.810.98
alexmt-gemma4-e4b-dpo-bwspbleu-lr5e729.2744.310.9951.1466.220.98
alexmt-gemma4-e4b-dpo-bwspbleu-lr2e6 (this model)30.1245.241.0153.1467.550.99
alexmt-gemma4-e4b-dpo-bwspbleu-lr5e631.2046.021.0054.5368.330.99

Please read these before comparing: single training seed; one data fold; the DPO learning rate was compared on the test split itself (a held-out-dev selection is in progress), so small differences between the DPO rows are not established. Scores come from this setup and are not directly comparable to the Alexandria paper's tables (zero-shot models, different decoding) or to the AlexandriaX shared task (a different, private test set). Only overlap metrics (spBLEU, chrF++) have been computed; dialect fidelity has not been evaluated.

Files. model-kv-shared-unused.safetensors holds the k/v projections and k-norms of layers 24-41, which Gemma-4-E4B shares from earlier layers and never uses in the forward pass. transformers omits them on save; they are copied unchanged from the base model so that vLLM (which loads strictly) can load this checkpoint. processor_config.json is also copied from the base model for the same reason.

Usage

The model expects Alexandria's JSON prompt as a single user turn and answers with {"translation": "..."}. Apply the tokenizer's chat template with add_generation_prompt=True, enable_thinking=False.

Translate the given turn of a conversation from English to Egyptian Arabic (Cairene) Dialect, considering the previous context if provided.

Input: {"country": "EG", "domain": "Agriculture and farming", "participants": ["Waterresourcemanager", "Farmer"], "context": [], "current_turn": {"speaker": "Waterresourcemanager", "gender_direction": "male -> male", "text": "Good morning. Is the water reaching your land properly according to the schedule?"}}

Guidelines:
- Return the result strictly in valid JSON.
- Translate to Egyptian Arabic (Cairene) Dialect using Arabic script.
- Do not add any code, explanations, comments, or any other extra text.
- Keep the meaning and tone and respect the gender direction.
- Consider the country, the domain, the participants, and the speaker in your translation.
- Only translate the "text" field of the "current_turn".
- If a context is provided, do not translate it, and use it to inform your translation.

Output scheme: { "translation": "translation of the text from the current turn" }

Licence

CC BY-NC 4.0 (non-commercial), because the training data (Alexandria) is CC BY-NC 4.0. The base model, Gemma-4-E4B-it is Apache-2.0 (Gemma 4 terms).

Citation

If you use this model, please cite the Alexandria dataset:

@inproceedings{elmekki2026alexandria,
  title     = {Alexandria: A Multi-Domain Dialectal Arabic Machine Translation Dataset for Culturally Inclusive and Linguistically Diverse LLMs},
  author    = {El Mekki, Abdellah and others},
  booktitle = {Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL)},
  year      = {2026},
  url       = {https://aclanthology.org/2026.acl-long.1503/}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma4ForConditionalGeneration
Ревизия весов
9ba5d08

0 моделей