Downloads · 30 days
1.1K
7% of all-time downloads
litert-community/gemma-4-31B-it-litert-lm
gemma-4-31B-it-litert-lm is a machine learning model from litert-community. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for litert-lm. The card lists the license as apache-2.0.
Downloads · 30 days
1.1K
7% of all-time downloads
All-time downloads
14.7K
Public
Repo size
78.1 GB
Likes
6
Public
Click a slice to open those files.
.litertlm39.1 GB · 100%
From the Hugging Face model README
Main Model Card: google/gemma-4-31B-it
This model card provides the Gemma 4 31B model in LiteRT-LM format that is ready for deployment on web and desktop. Please check back here regularly for updates on wider platform support and further functionality improvements. The current LiteRT-LM version supports text and vision; multitoken prediction support will be available in a future update.
Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. This particular Gemma 4 model is a medium size so it is ideal for desktop use cases. By running this model on device, users can have private access to Generative AI technology without even requiring an internet connection.
These models are provided in the .litertlm format for use with the LiteRT-LM framework. LiteRT-LM is a specialized orchestration layer built directly on top of LiteRT, Google’s high-performance multi-platform runtime trusted by millions of Android and edge developers. LiteRT provides the foundational hardware acceleration via XNNPack for CPU and ML Drift for GPU. LiteRT-LM adds the specialized GenAI libraries and APIs, such as KV-cache management, prompt templating, and function calling. This integrated stack is the same technology powering the Google AI Edge Gallery showcase app.
The model is provided as a QAT quantized model with blockwise int4 weights and float activations, specially optimized for running on GPU.
Requirement: Running this model on Desktop requires LiteRT-LM v0.17.1 or later (v0.19.1 or later for vision).
Ready to integrate this into your product? Get started with LiteRT-LM documentation.
For sample apps, see google-ai-edge/litert-samples.
Desktop benchmarks were taken using 8192 prefill tokens and 512 decode tokens with a context length of 16384 tokens via LiteRT-LM CLI. Model size is the size of the file on disk.
Linux
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | Init. time (sec) | Model size (MB) |
|---|---|---|---|---|---|
| NVidia 4090 24GB | GPU | 1183 | 28 | 31.30 | 19835 |
macOS
| Device | Backend | Prefill (tokens/sec) | Decode (tokens/sec) | Init. time (sec) | Model size (MB) | GPU Memory (MB) |
|---|---|---|---|---|---|---|
| Macbook Pro 2024 (M4 Max) 48GB | GPU | 215 | 18 | 14.49 | 19835 | ~21170 |
Web
Web benchmarks were taken in Chrome using 1024 prefill tokens and 256 decode tokens with a context length of 1280 tokens. The model can support up to 80k context length.
| Device | Backend | Quantization | Prefill (tokens/sec) | Decode (tokens/sec) | <span style="white-space: nowrap;">Time-to-first</span>-token (sec) | Model size (MB) | GPU Memory (MB) | Peak CPU Memory (MB) |
|---|---|---|---|---|---|---|---|---|
| MacBook Pro 2024 (M4 Max) 48GB | GPU | Q4_0 | 148 | 7 | 17.1 | 19835 | ~19600 | ~4500 |