/ Модель

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

Размер весов
24,4 ГБ
Лицензия
Gemma
Архитектура
gemma3 · dense
Базовая модель
translategemma-12b-it
Библиотека
transformers
Опубликована
29 янв 2026

vllm-translategemma-12b-it

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

Версия TranslateGemma 12B Instruct с изменёнными конфигурацией и шаблоном чата для перевода между 55 языками через vLLM.

46 071скачиваний за 30 дней4лайкавеса обновлены29 янв 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это версия TranslateGemma 12B Instruct от chbae624, подготовленная для запуска с vLLM. Веса совпадают с google/translategemma-12b-it: модель не переобучалась, изменены только конфигурационные файлы и шаблон чата. Архитектура — плотная Gemma 3; файлы весов представлены в safetensors, библиотека — Transformers.

Модель предназначена для перевода между 55 языками через стандартный чат API vLLM. Шаблон передаёт языки и текст в формате `>>{source_lang}>>{target_lang}>>{text_to_translate}`; для пользовательского запроса предусмотрен формат `>>{text}`. Лицензия — Gemma.

Обучение ориентировано примерно на последовательности длиной 2 тыс. токенов; заметно более длинный ввод может ухудшить качество перевода. Эта версия адаптирует интерфейс и конфигурацию для vLLM, сохраняя исходные веса.

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

  • Перевод текста между поддерживаемыми языками через чат API vLLM
  • Развёртывание TranslateGemma 12B на сервере vLLM
  • Передача исходного и целевого языка вместе с текстом перевода
  • Перевод текста в пользовательском режиме с собственным промптом

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

vLLM-Compatible TranslateGemma 12B

This is a modified version of google/translategemma-12b-it optimized for deployment with vLLM.

No retraining was performed. Only configuration files and the chat template were modified. Model weights are identical to the original.

Why This Exists

As of 2025-01-29, vLLM does not natively support TranslateGemma's custom structured input format. See vllm-project/vllm#32446 for the upstream tracking issue. Until that is merged, this repo provides a workaround by modifying configuration files to make TranslateGemma compatible with vLLM's standard chat API.

Acknowledgements

This conversion is based entirely on the work done by Infomaniak-AI/vllm-translategemma-4b-it. The same conversion approach was applied to the 12B model. Full credit goes to the Infomaniak AI team for figuring out the necessary changes.

Modified Files

The following files were modified from the original google/translategemma-12b-it for vLLM compatibility. All other files (model weights, tokenizer, etc.) are unchanged.

  • config.json — RoPE parameters simplified for vLLM
  • generation_config.json — Added temperature, bos_token_id, max_length; adjusted eos_token_id ordering
  • chat_template.jinja — Replaced structured content format with delimiter-based string format

Changes from Original Model

1. Chat Template

The original TranslateGemma model requires a structured payload with dedicated source_lang_code and target_lang_code fields:

{
  "role": "user",
  "content": [
    {
      "type": "text",
      "source_lang_code": "cs",
      "target_lang_code": "de-DE",
      "text": "V nejhorším případě i k prasknutí čočky."
    }
  ]
}

However, vLLM does not support these custom content parameters. To maintain compatibility, the chat template has been modified to encode language codes directly in the message content using a delimiter-based format:

{
  "model": "model",
  "messages": [
    {
      "role": "user",
      "content": "<<<source>>>cs<<<target>>>de-DE<<<text>>>V nejhorším případě i k prasknutí čočky."
    }
  ]
}

Format: <<<source>>>{source_lang}<<<target>>>{target_lang}<<<text>>>{text_to_translate}

If you need to provide a custom prompt input:

Format: <<<custom>>>{text}

2. Model Configuration (RoPE)

The original model uses the new Transformers RoPE configuration format with separate attention type settings:

"rope_parameters": {
  "full_attention": {
    "factor": 8.0,
    "rope_type": "linear"
  },
  "sliding_attention": {
    "rope_type": "default"
  }
}

This has been simplified for vLLM compatibility:

"rope_parameters": {
  "factor": 8.0,
  "rope_type": "linear"
}

3. Generation Configuration

Added temperature, bos_token_id, and max_length fields. The EOS token ordering was adjusted to [106, 1] for proper sequence termination.

Usage with vLLM

Start the server

vllm serve chbae624/vllm-translategemma-12b-it --max-model-len 4096

Send a translation request

curl -s http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chbae624/vllm-translategemma-12b-it",
    "messages": [
      {
        "role": "user",
        "content": "<<<source>>>en<<<target>>>ko<<<text>>>The weather is beautiful today."
      }
    ],
    "temperature": 0.15,
    "max_tokens": 256
  }'

Custom prompt mode

curl -s http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "chbae624/vllm-translategemma-12b-it",
    "messages": [
      {
        "role": "user",
        "content": "<<<custom>>>Translate the following Japanese text to English: 今日はいい天気ですね。"
      }
    ],
    "temperature": 0.15,
    "max_tokens": 256
  }'

Supported Languages

TranslateGemma supports translation across 55 languages. See the original model card for the full list.

Notes

  • Input/Output length: The model was fine-tuned with ~2K token sequences. Inputs significantly exceeding 2048 tokens may produce degraded translation quality.
  • Model weights: Identical to google/translategemma-12b-it. No retraining was performed.
  • Conversion method: Follows the exact same approach as Infomaniak-AI/vllm-translategemma-4b-it.

License

This model is subject to the Gemma Terms of Use. See the NOTICE file included in this repository.

Citation

@article{gemmatranslate2026,
    title={{TranslateGemma Technical Report}},
    url={https://arxiv.org/pdf/2601.09012},
    publisher={Google DeepMind},
    author={{Google Translate Research Team}},
    year={2026}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma3ForConditionalGeneration
Ревизия весов
81d99b4

0 моделей