/ Модель

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

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

alexmt-gemma4-e4b-dpo-bwspbleu-lr5e6

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

alexmt-gemma4-e4b-dpo-bwspbleu-lr5e6 — дообученная методом DPO модель на базе google/gemma-4-E4B-it, созданная для контекстного перевода разговорных реплик между английским и девятью разновидностями диалектного арабского языка. Обучение предпочтений проведено на данных Alexandria с настройками beta 0,1, learning rate 5e-6 и тремя эпохами; в качестве контекста примера используются до трёх предыдущих реплик, а также сведения о домене, участниках и направлении гендерного обращения.

Модель принимает сообщение в JSON-формате Alexandria и выдаёт перевод в поле translation. В описанном тестировании использовались жадное декодирование и ограничение в 128 новых токенов; приведены метрики spBLEU и chrF++, но точность передачи диалектных особенностей отдельно не оценивалась. Результаты получены с одним случайным seed и одним разбиением данных, а выбор learning rate проводился на тестовой выборке, поэтому небольшие различия между вариантами DPO не подтверждены. Модель распространяется в формате safetensors по лицензии CC BY-NC 4.0, допускающей некоммерческое использование.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

alexmt-gemma4-e4b-dpo-bwspbleu-lr5e6

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

DPO (beta 0.1, lr 5e-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-lr2e630.1245.241.0153.1467.550.99
alexmt-gemma4-e4b-dpo-bwspbleu-lr5e6 (this model)31.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
Ревизия весов
0b89fee

0 моделей