Instructions to use atlas-associates/TranslateGemma-4B-IT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use atlas-associates/TranslateGemma-4B-IT with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
| license: gemma | |
| base_model: google/translategemma-4b-it | |
| pipeline_tag: text-generation | |
| tags: | |
| - translation | |
| - on-device | |
| - mediapipe | |
| - litert | |
| - gemma | |
| - flutter_gemma | |
| library_name: mediapipe | |
| # atlas-associates/TranslateGemma-4B-IT | |
| This repository is a **mirror / redistribution** of [`litert-community/TranslateGemma-4B-IT`](https://huggingface.co/litert-community/TranslateGemma-4B-IT) provided under the [Gemma license](https://ai.google.dev/gemma/terms). | |
| ## Why this mirror exists | |
| [Arc](https://www.atlasassociates.io/) — a privacy-first end-to-end-encrypted messenger — uses TranslateGemma 4B as the on-device translation engine ("Rosetta") via the `flutter_gemma` package + MediaPipe LLM Inference. The upstream `litert-community` repository is **gated** (requires a Hugging Face login + Gemma license acknowledgement per user). Distributing the model through this mirror lets Arc download the model from end users' devices without bundling a Hugging Face access token in the Arc app or in app-config Firestore. | |
| By downloading the model file from this mirror, you implicitly accept the upstream Gemma license terms. Atlas Associates Inc. acts only as a distribution mirror; the model weights are the property of Google. | |
| ## Attribution | |
| | Item | Source | | |
| |---|---| | |
| | Original model weights | Google ([`google/translategemma-4b-it`](https://huggingface.co/google/translategemma-4b-it)) | | |
| | LiteRT-LM `.task` packaging | Google AI Edge / LiteRT community ([`litert-community/TranslateGemma-4B-IT`](https://huggingface.co/litert-community/TranslateGemma-4B-IT)) | | |
| | License | [Gemma Terms of Use](https://ai.google.dev/gemma/terms) | | |
| | Mirror operator | Atlas Associates Inc. (this repository) | | |
| ## Files | |
| | File | Size | Format | Notes | | |
| |---|---|---|---| | |
| | `translategemma-4b-it-int8-web.task` | ~3.63 GiB | MediaPipe LiteRT `.task` (int8, GPU/CPU) | Verbatim copy of the upstream file (`sha256` matches upstream). | | |
| ## Usage | |
| This file is consumed by the [`flutter_gemma`](https://pub.dev/packages/flutter_gemma) package via: | |
| ```dart | |
| await FlutterGemma.installModel(modelType: ModelType.gemmaIt) | |
| .fromNetwork( | |
| 'https://huggingface.co/atlas-associates/TranslateGemma-4B-IT/resolve/main/translategemma-4b-it-int8-web.task', | |
| foreground: true, | |
| ) | |
| .install(); | |
| ``` | |
| The model runs entirely on-device — no data is sent to any server during inference. See [Rosetta on-device translation in Arc](https://www.atlasassociates.io/arc) for the user-facing product context. | |
| ## License | |
| Gemma — see [https://ai.google.dev/gemma/terms](https://ai.google.dev/gemma/terms) and the `LICENSE` file in this repository. | |
| By downloading, you agree to the Gemma Terms of Use as specified by Google. The terms include responsible-use commitments and prohibited-use limitations that you must read and comply with. | |
| ## Contact | |
| Issues with the **mirror itself** (broken file, missing version, takedown requests): | |
| - [Atlas Associates Inc. contact](https://www.atlasassociates.io/) | |
| - Open an issue on [GitHub: Atlas-Associates-Inc/Arc-V2](https://github.com/Atlas-Associates-Inc/Arc-V2/issues) | |
| Issues with the **model behavior** (translation quality, performance): | |
| - Refer upstream: [`google/translategemma-4b-it`](https://huggingface.co/google/translategemma-4b-it) and [`litert-community/TranslateGemma-4B-IT`](https://huggingface.co/litert-community/TranslateGemma-4B-IT). | |