Benagl5 commited on
Commit
219275f
·
verified ·
1 Parent(s): 761854e

Add README with attribution to Google + upstream litert-community

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ base_model: google/translategemma-4b-it
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - translation
7
+ - on-device
8
+ - mediapipe
9
+ - litert
10
+ - gemma
11
+ - flutter_gemma
12
+ library_name: mediapipe
13
+ ---
14
+
15
+ # atlas-associates/TranslateGemma-4B-IT
16
+
17
+ 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).
18
+
19
+ ## Why this mirror exists
20
+
21
+ [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.
22
+
23
+ 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.
24
+
25
+ ## Attribution
26
+
27
+ | Item | Source |
28
+ |---|---|
29
+ | Original model weights | Google ([`google/translategemma-4b-it`](https://huggingface.co/google/translategemma-4b-it)) |
30
+ | LiteRT-LM `.task` packaging | Google AI Edge / LiteRT community ([`litert-community/TranslateGemma-4B-IT`](https://huggingface.co/litert-community/TranslateGemma-4B-IT)) |
31
+ | License | [Gemma Terms of Use](https://ai.google.dev/gemma/terms) |
32
+ | Mirror operator | Atlas Associates Inc. (this repository) |
33
+
34
+ ## Files
35
+
36
+ | File | Size | Format | Notes |
37
+ |---|---|---|---|
38
+ | `translategemma-4b-it-int8-web.task` | ~3.63 GiB | MediaPipe LiteRT `.task` (int8, GPU/CPU) | Verbatim copy of the upstream file (`sha256` matches upstream). |
39
+
40
+ ## Usage
41
+
42
+ This file is consumed by the [`flutter_gemma`](https://pub.dev/packages/flutter_gemma) package via:
43
+
44
+ ```dart
45
+ await FlutterGemma.installModel(modelType: ModelType.gemmaIt)
46
+ .fromNetwork(
47
+ 'https://huggingface.co/atlas-associates/TranslateGemma-4B-IT/resolve/main/translategemma-4b-it-int8-web.task',
48
+ foreground: true,
49
+ )
50
+ .install();
51
+ ```
52
+
53
+ 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.
54
+
55
+ ## License
56
+
57
+ Gemma — see [https://ai.google.dev/gemma/terms](https://ai.google.dev/gemma/terms) and the `LICENSE` file in this repository.
58
+
59
+ 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.
60
+
61
+ ## Contact
62
+
63
+ Issues with the **mirror itself** (broken file, missing version, takedown requests):
64
+ - [Atlas Associates Inc. contact](https://www.atlasassociates.io/)
65
+ - Open an issue on [GitHub: Atlas-Associates-Inc/Arc-V2](https://github.com/Atlas-Associates-Inc/Arc-V2/issues)
66
+
67
+ Issues with the **model behavior** (translation quality, performance):
68
+ - 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).