Model reference · open weights

vllm-translategemma

LLMs Infomaniak-AI Vision + text 3 builds Open, with conditions 577k dl/mo

vllm-translategemma is an open-weight language model from Infomaniak-AI. vllm-translategemma-4b-it (BF16) weighs 8.6 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • vllm-translategemma is a 5.0B parameter image-text-to-text model by Infomaniak-AI, based on Google's TranslateGemma and optimized for vLLM deployment.
  • It supports translation across 55 languages with a context length of 131072 tokens and uses the gemma licence.

Summary of the Infomaniak-AI/vllm-translategemma-4b-it model card, 2026-10-01

What it is

Released byInfomaniak-AI
Released2026-01-26
Parameters5.0B
VRAM8.6 GB for the weights

What it runs on

Memory and cards for vllm-translategemma-4b-it (BF16)

8.6 GBweights, file size
20 MBcache per 1K tokens
629 MBwindow cache per request
2.1 GBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB113K11.6 GB
RTX 4060 Ti 16 GB53all 128K15.4 GB
RTX 3090 24 GB159all 128K23.4 GB
RTX 4090 24 GB159all 128K23.4 GB
RTX 5090 32 GB2515all 128K31.0 GB
L40S 48 GB4125all 128K44.0 GB
A100 80 GB8451all 128K78.2 GB
H100 80 GB5222all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB6627all 128K93.8 GB
DGX Spark (GB10) 128 GB unified7732all 128K107 GB
H200 141 GB10343all 128K138 GB
B200 180 GB13533all 128K176 GB
2× RTX 3060 12 GB
tensor parallel
138all 128K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
2213all 128K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
111.5 GB12.0 GB
514.7 GB17.2 GB
817.1 GB21.1 GB
1623.5 GB31.5 GB
3236.2 GB52.3 GB
6461.7 GB93.9 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
vllm-translategemma-4b-it (above) ↗ 5.0BBF16 8.6 GBRTX 3060 12 GB
vllm-translategemma-12b-it ↗ 13.2BBF16 24.4 GBRTX 5090 32 GB
vllm-translategemma-27b-it ↗ 28.8BBF16 54.9 GBH100 80 GB

From the model card

What Infomaniak-AI says about vllm-translategemma

Read the model card

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

Changes from Original Model

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": ">>cs>>de-DE>>V nejhorším případě i k prasknutí čočky."
    }
  ]
}

Format: >>{source_lang}>>{target_lang}>>{text_to_translate}

If you need to provide a custom prompt input

Format: >>{text}

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"
}

Generation Configuration

The EOS token has been corrected from to to ensure proper sequence termination.

Original readme

Resources and Technical Documentation:

Terms of Use: Terms Authors: Google Translate

Model Information

Summary description and brief definition of inputs and outputs.

Description

TranslateGemma is a family of lightweight, state-of-the-art open translation models from Google, based on the Gemma 3 family of models. TranslateGemma models are designed to handle translation tasks across 55 languages. Their relatively small size makes it possible to deploy them in environments with limited resources such as laptops, desktops or your own cloud infrastructure, democratizing access to state of the art translation models and helping foster innovation for everyone.

Inputs and outputs

  • Input:

    • Text string, representing the text to be translated
    • Images, normalized to 896 x 896 resolution and encoded to 256 tokens each
    • Total input context of 2K tokens
  • Output:

    • Text translated into the target language

Usage

TranslateGemma is designed to work with a specific chat template that supports direct translation of a text input, or text-extraction-and-translation from an image input. This chat template has been implemented with Hugging Face transformers' chat templating system and is compatible with the apply_chat_template() function provided by the Gemma tokenizer and Gemma 3 processor. Notable differences from other models' chat templates include:

  • TranslateGemma supports only User and Assistant roles.

  • TranslateGemma's User role is highly opinionated:

    • The content property must be provided as a list with exactly one entry.

    • The content list entry must provide:

      • A "type" property where the value must be either "text" or "image".
      • A "source_lang_code" property as a string
      • A "target_lang_code" property as a string
    • The content list entry should provide one of these:

      • A "url" property, if the entry's type is "image", from which the image will be loaded
      • A "text" property, if the entry's type is "text", containing only the text to translate
    • The "source_lang_code" and "target_lang_code" property values can take one of one of two forms:

    • If the "source_lang_code" and "target_lang_code" property value is not supported by the model, an error will be raised when the template is applied.

With Pipelines
from transformers import pipeline
import torch

pipe = pipeline(
    "image-text-to-text",
    model="google/translategemma-4b-it",
    device="cuda",
    dtype=torch.bfloat16
)

# ---- Text Translation ----
messages = [
    {
        "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.",
            }
        ],
    }
]

output = pipe(text=messages, max_new_tokens=200)
print(output[0]["generated_text"][-1]["content"])

# ---- Text Extraction and Translation ----
messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "source_lang_code": "cs",
                "target_lang_code": "de-DE

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms