Instructions to use litert-community/gemma-4-E2B-it-litert-lm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT-LM
How to use litert-community/gemma-4-E2B-it-litert-lm with LiteRT-LM:
# LiteRT-LM runs on various platforms (Android, iOS, Windows, Linux, macOS, IoT, Web/WASM) # and supports many APIs (C++, Python, Kotlin, Swift, JavaScript, Flutter). # For platform-specific integration guides, please refer to the official developer website: # https://ai.google.dev/edge/litert-lm # To try LiteRT-LM, the easiest way is to use our CLI tool. # 1. Install the LiteRT-LM CLI tool: pip install litert-lm # 2. Download and run this model locally: # See: https://ai.google.dev/edge/litert-lm/cli litert-lm run \ --from-huggingface-repo=litert-community/gemma-4-E2B-it-litert-lm \ model.litertlm \ --prompt="Write me a poem"
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -44,46 +44,46 @@ It uses the Gemma quantization scheme that employs a mixture of 2bit, 4bit and 8
|
|
| 44 |
*Note: On [supported Android devices](https://developers.google.com/ml-kit), Gemma 4 is available through Android AI Core as [Gemini Nano](https://developer.android.com/ai/gemini-nano#architecture), which is the recommended path for production applications.*
|
| 45 |
|
| 46 |
|
| 47 |
-
| Device | Backend |
|
| 48 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 49 |
-
| **S26 Ultra** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 50 |
-
| **S26 Ultra** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 51 |
|
| 52 |
|
| 53 |
**iOS**
|
| 54 |
|
| 55 |
-
| Device | Backend |
|
| 56 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 57 |
-
| **iPhone 17 Pro** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 58 |
-
| **iPhone 17 Pro** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 59 |
|
| 60 |
**Linux**
|
| 61 |
|
| 62 |
-
| Device | Backend |
|
| 63 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 64 |
-
| **Arm 2.3 & 2.8GHz** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 65 |
-
| **NVIDIA GeForce RTX 4090** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 66 |
|
| 67 |
**macOS**
|
| 68 |
|
| 69 |
-
| Device | Backend |
|
| 70 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 71 |
-
| **MacBook Pro M4** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 72 |
-
| **MacBook Pro M4** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 73 |
|
| 74 |
**Windows**
|
| 75 |
|
| 76 |
-
| Device | Backend |
|
| 77 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 78 |
-
| **Windows** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 79 |
-
| **Windows** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 80 |
|
| 81 |
**IoT**
|
| 82 |
|
| 83 |
-
| Device | Backend |
|
| 84 |
-
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 85 |
-
| **Raspberry Pi 5 16GB** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 86 |
-
| **Qualcomm IQ-8275 EVK** | NPU | TODO | TODO | TODO | TODO | TODO |
|
| 87 |
|
| 88 |
|
| 89 |
## Gemma 4 E2B Performance on Web
|
|
|
|
| 44 |
*Note: On [supported Android devices](https://developers.google.com/ml-kit), Gemma 4 is available through Android AI Core as [Gemini Nano](https://developer.android.com/ai/gemini-nano#architecture), which is the recommended path for production applications.*
|
| 45 |
|
| 46 |
|
| 47 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 48 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 49 |
+
| **S26 Ultra** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 50 |
+
| **S26 Ultra** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 51 |
|
| 52 |
|
| 53 |
**iOS**
|
| 54 |
|
| 55 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 56 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 57 |
+
| **iPhone 17 Pro** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 58 |
+
| **iPhone 17 Pro** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 59 |
|
| 60 |
**Linux**
|
| 61 |
|
| 62 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 63 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 64 |
+
| **Arm 2.3 & 2.8GHz** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 65 |
+
| **NVIDIA GeForce RTX 4090** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 66 |
|
| 67 |
**macOS**
|
| 68 |
|
| 69 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 70 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 71 |
+
| **MacBook Pro M4** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 72 |
+
| **MacBook Pro M4** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 73 |
|
| 74 |
**Windows**
|
| 75 |
|
| 76 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 77 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 78 |
+
| **Windows** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 79 |
+
| **Windows** | GPU | TODO | TODO | TODO | TODO | TODO |
|
| 80 |
|
| 81 |
**IoT**
|
| 82 |
|
| 83 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first-token</span> (sec) | Model size (MB) | CPU Memory (MB) |
|
| 84 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 85 |
+
| **Raspberry Pi 5 16GB** | CPU | TODO | TODO | TODO | TODO | TODO |
|
| 86 |
+
| **Qualcomm IQ-8275 EVK** | NPU | TODO | TODO | TODO | TODO | TODO |
|
| 87 |
|
| 88 |
|
| 89 |
## Gemma 4 E2B Performance on Web
|