/ Модель

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

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

alexmt-gemma4-e4b-sft

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

alexmt-gemma4-e4b-sft — модель для перевода между английским и девятью разновидностями разговорного арабского диалекта, дообученная автором репозитория на базе google/gemma-4-E4B-it. Это полное supervised fine-tuning модели Gemma 4 E4B Instruct в формате bf16 на наборе Alexandria; архитектура — плотная Gemma 4, файлы весов сохранены в safetensors. Модель принимает запрос в формате JSON из одного пользовательского сообщения и возвращает перевод в поле translation.

Перевод учитывает до трёх предыдущих реплик, предметную область, участников разговора и направление гендерных характеристик говорящего и адресата. Обучение охватывает направления английский → диалектный арабский и диалектный арабский → английский для разновидностей EG, JO, LB, MR, OM, PS, SA, SY и YE. В приведённой автором оценке на публичной тестовой выборке Alexandria модель превзошла базовую Gemma 4 E4B Instruct по spBLEU и chrF++ в обоих направлениях.

Результаты ограничены одним seed и одним разбиением обучающих данных; точность передачи особенностей диалекта отдельно не оценивалась. Метрики получены с настройками автора и напрямую не сопоставимы с опубликованными результатами Alexandria или AlexandriaX. Лицензия — CC BY-NC 4.0, предусматривающая некоммерческое использование.

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

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

Ограничения

Оценка проведена с одним seed и одним разбиением данных; точность передачи особенностей диалектов отдельно не проверялась. Метрики автора нельзя напрямую сравнивать с результатами статьи Alexandria или соревнования AlexandriaX.

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

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

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

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

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

Открыть на Hugging Face

alexmt-gemma4-e4b-sft

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

Supervised fine-tuning (full fine-tune, bf16, 2 epochs, lr 2e-5, effective batch 64) of Gemma-4-E4B-it on the Alexandria train split.

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
Gemma-4-E4B-it, zero-shot (no training)24.4841.191.0440.7159.001.02
alexmt-gemma4-e4b-sft (this model)29.0644.100.9950.6165.810.98

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
Ревизия весов
c5f706a

0 моделей