Model reference · open weights
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.
Summary of the Infomaniak-AI/vllm-translategemma-4b-it model card, 2026-10-01
What it is
| Released by | Infomaniak-AI |
|---|---|
| Released | 2026-01-26 |
| Parameters | 5.0B |
| VRAM | 8.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 1 | 13K | 11.6 GB | |
| RTX 4060 Ti 16 GB | 5 | 3 | all 128K | 15.4 GB |
| RTX 3090 24 GB | 15 | 9 | all 128K | 23.4 GB |
| RTX 4090 24 GB | 15 | 9 | all 128K | 23.4 GB |
| RTX 5090 32 GB | 25 | 15 | all 128K | 31.0 GB |
| L40S 48 GB | 41 | 25 | all 128K | 44.0 GB |
| A100 80 GB | 84 | 51 | all 128K | 78.2 GB |
| H100 80 GB | 52 | 22 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 66 | 27 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 77 | 32 | all 128K | 107 GB |
| H200 141 GB | 103 | 43 | all 128K | 138 GB |
| B200 180 GB | 135 | 33 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 13 | 8 | all 128K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 22 | 13 | all 128K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 11.5 GB | 12.0 GB |
| 5 | 14.7 GB | 17.2 GB |
| 8 | 17.1 GB | 21.1 GB |
| 16 | 23.5 GB | 31.5 GB |
| 32 | 36.2 GB | 52.3 GB |
| 64 | 61.7 GB | 93.9 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| vllm-translategemma-4b-it (above) ↗ | 5.0B | BF16 | 8.6 GB | RTX 3060 12 GB |
| vllm-translategemma-12b-it ↗ | 13.2B | BF16 | 24.4 GB | RTX 5090 32 GB |
| vllm-translategemma-27b-it ↗ | 28.8B | BF16 | 54.9 GB | H100 80 GB |
From the model card
This is a modified version of google/translategemma-4b-it optimized for deployment with vLLM.
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}
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"
}
The EOS token has been corrected from to to ensure proper sequence termination.
Resources and Technical Documentation:
Terms of Use: Terms Authors: Google Translate
Summary description and brief definition of inputs and outputs.
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.
Input:
Output:
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:
The content list entry should provide one of these:
The "source_lang_code" and "target_lang_code" property values can take one of one of two forms:
en; ororen-GB, similar to the Unicode Common Locale Data Repository format.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.
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-DEQuoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.