File size: 2,459 Bytes
04c976b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
license: apache-2.0
---

# ๐Ÿค– Gemma TFLite Models for Android Demos

This repository hosts quantized TensorFlow Lite (`.tflite`) versions of Google's Gemma models, specifically for use in Android sample applications, hackathons, and educational projects.

The goal is to provide a frictionless, anonymous download path for on-device integration without requiring app users to log in or developers to embed secret API keys.

## ๐Ÿค” Why This Repository Exists

The original Gemma models are created by Google and are officially hosted on platforms like [Kaggle](https://www.kaggle.com/models/google/gemma-3n) and the [official Google Hugging Face account](https://huggingface.co/google).

These official repositories are often **"gated,"** meaning they require a user to be logged in and to have explicitly accepted the license terms before a download can start. This is a necessary compliance step for Google to ensure users agree to their Responsible AI terms.

However, this authentication requirement prevents direct, anonymous downloads from within a mobile application and would create a poor user experience (e.g., asking an app user to log in to a developer service).

This repository acts as a public, non-gated mirror. The models are redistributed here under the permissions granted by their **Apache 2.0 License**. This allows mobile demo apps to fetch the model file via a direct URL without any user-side authentication, while still respecting the original license terms.

## ๐Ÿ“ฑ Intended Use

The models here are intended for developers who need to quickly integrate a Gemma model into an Android application for demonstration or prototyping purposes.

They can be downloaded directly within an app using Android's `DownloadManager` or a networking library like OkHttp, providing a seamless "first-run" experience for the end-user.

## ๐Ÿ“ฆ Models Included

*   `gemma-3n-e2b-it-int4.task`
*   `gemma-3n-e4b-it-int4.task`
*   *(More models may be added)*

## ๐Ÿ“œ License and Attribution

All models in this repository are the property of Google and are governed by the **Apache 2.0 License** and the **Gemma Terms of Use**.

**Official Gemma Terms of Use:** [https://ai.google.dev/gemma/terms](https://ai.google.dev/gemma/terms)

**โš ๏ธ IMPORTANT:** If you use these models in your application, you **must include proper attribution to Google** and provide a copy of or link to the license in your app, as required by the license terms.