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
|
@@ -50,7 +50,7 @@ It uses the Gemma quantization scheme that employs a mixture of 2bit, 4bit and 8
|
|
| 50 |
|
| 51 |
**iOS**
|
| 52 |
|
| 53 |
-
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first</span>-token (sec) | Model size (MB) | CPU Memory (MB) |
|
| 54 |
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 55 |
| iPhone 17 Pro | CPU | 532 | 25.0 | 1.9 | 2583 | 607 |
|
| 56 |
| iPhone 17 Pro | GPU | 2,878 | 56.5 | 0.3 | 2583 | 1450 |
|
|
@@ -64,7 +64,7 @@ It uses the Gemma quantization scheme that employs a mixture of 2bit, 4bit and 8
|
|
| 64 |
|
| 65 |
**macOS**
|
| 66 |
|
| 67 |
-
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first</span>-token (sec) | Model size (MB) | CPU Memory (MB) |
|
| 68 |
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 69 |
| MacBook Pro M4 | CPU | 901 | 41.6 | 1.1 | 2583 | 736 |
|
| 70 |
| MacBook Pro M4 | GPU | 7,835 | 160.2 | 0.1 | 2583 | 1623 |
|
|
|
|
| 50 |
|
| 51 |
**iOS**
|
| 52 |
|
| 53 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first</span>-token (sec) | Model size (MB) | CPU/GPU Memory (MB) |
|
| 54 |
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 55 |
| iPhone 17 Pro | CPU | 532 | 25.0 | 1.9 | 2583 | 607 |
|
| 56 |
| iPhone 17 Pro | GPU | 2,878 | 56.5 | 0.3 | 2583 | 1450 |
|
|
|
|
| 64 |
|
| 65 |
**macOS**
|
| 66 |
|
| 67 |
+
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first</span>-token (sec) | Model size (MB) | CPU/GPU Memory (MB) |
|
| 68 |
| :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 69 |
| MacBook Pro M4 | CPU | 901 | 41.6 | 1.1 | 2583 | 736 |
|
| 70 |
| MacBook Pro M4 | GPU | 7,835 | 160.2 | 0.1 | 2583 | 1623 |
|