Instructions to use 42ailab/TranslateGemma-12B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use 42ailab/TranslateGemma-12B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf 42ailab/TranslateGemma-12B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/42ailab/TranslateGemma-12B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use 42ailab/TranslateGemma-12B-GGUF with Ollama:
ollama run hf.co/42ailab/TranslateGemma-12B-GGUF:Q4_K_M
- Unsloth Studio
How to use 42ailab/TranslateGemma-12B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 42ailab/TranslateGemma-12B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 42ailab/TranslateGemma-12B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for 42ailab/TranslateGemma-12B-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use 42ailab/TranslateGemma-12B-GGUF with Docker Model Runner:
docker model run hf.co/42ailab/TranslateGemma-12B-GGUF:Q4_K_M
- Lemonade
How to use 42ailab/TranslateGemma-12B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 42ailab/TranslateGemma-12B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.TranslateGemma-12B-GGUF-Q4_K_M
List all available models
lemonade list
TranslateGemma-12B · Fully Local Multilingual Translation (Balanced Tier)
English | 简体中文 · Also on ModelScope · 42ailab.com
Give it text in any language and this model translates it into the language you want — 55 languages, entirely on your own computer. No cloud, free, private.
The model was built by the Google Translate team and released under the Gemma Terms of Use (TranslateGemma, based on Google's Gemma 3). The GGUF quantization was produced by community contributor bullerwins. This repo is neither a new model nor our own quantization — what we did was mirror that quantization byte for byte and wire it into the 42model inference engine so you can translate through an ordinary chat interface.
1. The problem it solves
Reading, writing and communicating across languages is part of daily life, but mainstream translation usually means uploading your text to someone else's server:
- Privacy-sensitive content: contracts, medical records, internal documents, personal letters — things you would rather not hand to a cloud service;
- Everyday translation: reading foreign-language material, writing email in another language, browsing foreign sites — you want a translator always at hand;
- Offline or poor-connectivity settings: travel, flights, air-gapped networks, where cloud translation simply is not available.
This model keeps translation entirely local: your text never leaves your device — free, private, and usable offline. 12B is the balanced tier of this family — more accurate than the 4B tier, while using less than half the memory of the 27B tier, so a 16 GB machine can run it.
2. How it works
The translation capability comes from Google's TranslateGemma (based on Gemma 3). Per the official model card:
- Fine-tuned from Gemma 3 and trained specifically for translation, covering 55 languages (including Chinese);
- Trained on large volumes of parallel data, including high-quality Gemini-generated translations and public parallel documents;
- Small enough to run locally on a laptop or desktop.
What we did (no model training, no quantization):
- Mirrored the community GGUF quantization byte for byte, with sha256 identical to the source;
- Made it usable through ordinary chat: the upstream official usage requires passing source/target language codes through a structured format that regular chat clients cannot produce. On the engine side we switched to a standard Gemma 3 conversational form driven by a plain instruction (e.g. "Translate the following text into English"), and exposed 34 common translation directions for direct selection in the desktop app — the model weights themselves are unmodified;
- Tuned the defaults: translation calls for reproducibility, so the local defaults lower randomness (temperature 0.3 / top-p 0.95 / top-k 64), making repeated translations of the same sentence more consistent;
- Kept the same Gemma Terms of Use as upstream.
3. How well it performs
The table below reports the 12B tier results from Google's official technical report (arXiv:2601.09012; quoted only, not measured by us):
| Benchmark (Google official report) | 12B result |
|---|---|
| WMT24++ (55 languages) · MetricX (lower is better) | 3.60 |
| WMT24++ (55 languages) · Comet (higher is better) | 83.5 |
| WMT25 (10 languages) · MQM (lower is better) | 7.94 |
For reference, the 4B tier of the same family scores MetricX 5.32 / Comet 81.6 and the 27B tier 3.09 / 84.4 — so 12B lands much closer to 27B.
What we verified ourselves: our files are byte-for-byte identical to the community source (same sha256 and size, no re-compression). We did not re-run the public benchmarks above, so we make no claims about "points lost to quantization".
4. Limitations and what's next
- This build is text-only: upstream TranslateGemma also supports recognizing and translating text in images; this quantization does not include the vision component, so image translation is not supported.
- Suited to paragraphs, not very long documents: upstream context is about 2K tokens per call, which fits sentence- and paragraph-level translation; split long documents into chunks.
- The prompt is not the upstream official template: to make ordinary chat work, we use an instruction-style prompt. Upstream notes that only its structured template is officially supported; results from other prompting styles are for the user to evaluate.
- The usual caveats for language models: slang, puns and irony may be handled imprecisely, and inaccurate output is possible — have a human review anything that matters.
- Next: open up more language directions as real demand appears; evaluate our own quantizations and image-translation support.
5. How to download and use it
This model is packaged for 42model, which is the recommended way to get it:
Desktop app Open Model Library → Translation, find TranslateGemma, pick the 12B tier and download it, then click Start to translate offline.
Recommended memory: 16 GB or more.
Files and license
| File | Role | Size |
|---|---|---|
translategemma-12b-it-Q4_K_M.gguf |
Translation decoder (Q4_K_M quantization) | ~7.3 GB |
Per-file sha256 values are listed on the Files page and can be verified independently.
License: the model itself is TranslateGemma, © Google, under the Gemma Terms of Use (official sources: Hugging Face · ModelScope · release blog · technical report · Gemma Terms). The GGUF quantization was produced by community contributor bullerwins; this repo mirrors that quantization and is likewise governed by the Gemma Terms of Use: commercial use is permitted, subject to Google's Gemma Terms of Use and Prohibited Use Policy. By using it you agree to those terms.
Citation
Please cite upstream Google (the TranslateGemma technical report):
@article{gemmatranslate2026,
title={{TranslateGemma Technical Report}},
url={https://arxiv.org/pdf/2601.09012},
publisher={Google DeepMind},
author={{Google Translate Research Team} and
Finkelstein, Mara and
Caswell, Isaac and
Domhan, Tobias and
Peter, Jan-Thorsten and
Juraska, Juraj and
Riley, Parker and
Deutsch, Daniel and
Dilanni, Cole and
Cherry, Colin and
Briakou, Eleftheria and
Nielsen, Elizabeth and
Luo, Jiaming and
Agrawal, Sweta and
Xu, Wenda and
Kats, Erin and
Jaskiewicz, Stephane and
Freitag, Markus and
Vilar, David
},
year={2026}
}
This repo only mirrors and adapts for local use; we claim no credit for the model or the quantization.
Contact us: contact@42ailab.com
About us
42ailab — an AI research lab exploring the boundaries of intelligence. Grounded in cognitive science, we work toward a deep integration of AI and human intelligence — to truly understand and augment intelligence, carbon-based and silicon-based alike.
42model — a high-performance local inference engine from 42ailab that runs translation, transcription, recognition, chat and coding on your own machine, free and private; with optional cloud compute for fine-tuning your own models and bringing them back to run locally.
- Downloads last month
- 189
4-bit
Model tree for 42ailab/TranslateGemma-12B-GGUF
Base model
google/translategemma-12b-it