GGUF build of the text component of google/translategemma-4b-it, Google's translation-specialized Gemma 3 model (55 languages), for llama.cpp and clients built on it.
Built for local, fully offline translation in Celerando (Menterium IT Solutions GmbH); usable with any llama.cpp-based client.
| File | Quantization | Size | SHA-256 | Intended for |
|---|---|---|---|---|
translategemma-4b-it-Q8_0.gguf |
Q8_0 | 4.13 GB | cb8ef0b14bc7f80297ac219399fb17c6504742b00b6b4c8173069fd5d55b1063 |
GPU (Vulkan, CUDA, Metal) |
translategemma-4b-it-Q4_K_M.gguf |
Q4_K_M | 2.49 GB | e7d9523174272fca61264b339f06d10c6115426267bb0f752b0124084e487b8e |
CPU and GPUs with little memory |
On 74 test sentences (greedy, repetition penalty 1.1), Q8_0 produced the same translation as bf16 in 71 cases, Q4_K_M in 47; the differences are word choice of the 4B model. On 8 CPU cores Q4_K_M needs about 3 s for a short sentence, Q8_0 about 5 s.
815a2a5, 2026-08-01): convert_hf_to_gguf.py on the
multimodal checkpoint, which writes the text decoder only (the vision tower is not
included), output bf16; then llama-quantize with default settings (output/embedding
tensor quantized as well).config.json
unchanged. llama.cpp applies the window itself, so long texts can be translated in one
piece: whole documents with prompt plus translation up to 1,757 tokens finished
correctly, where DirectML builds of Gemma 3 loop or drop text beyond 1024 tokens.Gemma requires <bos> at the start of the prompt. llama.cpp adds it when the client
tokenizes with BOS enabled (the GGUF sets tokenizer.ggml.add_bos_token); do not add it
twice:
<bos><start_of_turn>user
Translate the following text into English. Reply with ONLY the translation.
Text:
Wie heißt die Hauptstadt von Frankreich?<end_of_turn>
<start_of_turn>model
Generation ends with <end_of_turn>.
All model files in this repository are modified versions of the files published in google/translategemma-4b-it: the text decoder was extracted, converted to GGUF and quantized (Q8_0, Q4_K_M). The weights were not otherwise changed.
Gemma is provided under and subject to the Gemma Terms of Use found at
ai.google.dev/gemma/terms (see also NOTICE).
A copy of the Gemma Terms of Use and the Gemma Prohibited Use Policy is included as
GEMMA_TERMS_OF_USE.txt.
Use of this model is subject to the use restrictions of the
Gemma Prohibited Use Policy,
which apply to every downstream user and to every further redistribution.
This repository redistributes a quantized derivative of TranslateGemma; all
rights in the underlying model remain with Google.
google/translategemma-4b-it