Geode · Gemma 4 E2B for phones
A model pack for Geode, an Android app that runs language models entirely on the phone: no cloud, no account. Gemma 4 E2B is Google's small multimodal model: it reads images, watches video, hears voice and sound, and calls the agent's tools. Geode runs it with its own engine (not LiteRT-LM), from Google's quantization-aware-trained (QAT) 4-bit weights.
Packs
| Folder | Weights | Size | Quality (KL vs BF16 / top-1) | For |
|---|---|---|---|---|
Q4/ | Google's QAT Q4_0 weights, 4-bit with a searched scale per 16 values; vision and audio encoders 8-bit; the MTP drafter 8-bit | 3.2 GB (2.94 GiB): 1.3 GB in memory, the per-layer embeddings read from flash | 0.213 / 85.1% | any 64-bit phone with 6 GB of RAM or more |
The scale search lowers the error below Google's own Q4_0 rounding of the same QAT weights (KL 0.244); the same search on the original, not QAT-trained weights gives 0.296.
What is in the pack: the language model (dense.bin), its per-layer embeddings (ple.bin, read from flash as they
are needed), the vision encoder (vision.bin: photos, and video frames at 70 tokens each), the audio encoder
(audio.bin: up to 30 s of sound, one token per 40 ms), the multi-token-prediction drafter (drafter.bin, from
Google's QAT assistant model: the same answer, every draft checked) and the tokenizer.
Speed on a Snapdragon 720G phone (Redmi Note 9 Pro, the processor only): answers ~7-7.5 tokens/s, up to ~13 with the drafter on code (1.3-1.7x on English text); a prompt ~17 tokens/s; a photo at 280 tokens ~18 s to encode.
On a Snapdragon 8 Elite phone (RedMagic 10 Pro), the default run mode (NPU + GPU): a 1,300-token prompt reads at ~1,440 tokens/s on the NPU (Hexagon: whole layers, attention included, on its matrix units), and the answer is written on the Adreno graphics chip at ~42-55 tokens/s with the drafter. A photo is encoded in ~0.9 s and 10 s of sound in ~0.3 s, on the NPU too. Where the NPU is not available, an Adreno 7xx or newer graphics chip takes the prompt instead (~380 tokens/s); other graphics chips (Mali, older Adreno) are not used. In Geode's Model settings you can choose which units run it.
The packs are Geode's own format (geode.json describes the files). They are not GGUF and do not load in other
runtimes.
Fewer refusals (optional add-on, off by default)
Q4/refusal/ holds a small optional add-on (56 KB, not part of the base download): refusal.gguf, one direction of
1,536 values for each of layers 18-25 (llama.cpp control-vector format), and refusal.json, its settings and scores.
With the model's Fewer refusals switch on (or "fewer_refusals": true in a request to Geode's local API), the engine
removes that layer's direction from the residual stream after each of those layers (h -= s (h . v) v, s = 1.0), and
the model declines far fewer requests. It acts on the activations, so it needs no other weights. Off, nothing of it
is loaded and the model runs exactly as without it.
Made from Gemma 4 E2B's weights (the refusal direction of 320 harmful vs 320 harmless prompts) and measured against the stock model: KL 0.028, the same top token 94.5% (teacher-forced on the model's own replies), no measurable change in how soon it ends its thinking. Held-out harmful requests refused without it / with it, thinking off (Geode's default): English 100/104 -> 4/104, Ukrainian 28/30 -> 1/30. With thinking on the reduction is partial: English 101/104 -> 58/104, Ukrainian 28/30 -> 16/30. Harmless requests 1/64 either way. On this pack in Geode's engine on a phone: 5 English + 5 Ukrainian requests, 10/10 refused without it and 10/10 answered with it; every run mode (CPU, GPU, NPU and their mixes) stays as close to the CPU with it on as with it off.
License: Apache-2.0, as the rest of the pack (Gemma 4). Removing refusals removes a safety behaviour of the model: you are responsible for what it writes with the switch on.
All six run modes
Geode's six-mode test on a RedMagic 10 Pro (Snapdragon 8 Elite, 16 GB), 2026-11-16: a 1,968-token prompt and the answer to a short story prompt (48 tokens) with the drafter, one run each (the numbers drift by about 15% with the phone's temperature). In the two-unit modes one unit reads the prompt and the other writes the answer (CPU + GPU: the GPU reads, the CPU writes). The mode is chosen in Geode's Model settings.
| Run mode | Prompt, tokens/s | Answer, tokens/s |
|---|---|---|
| CPU | 116 | 23.7 |
| GPU | 209 | 33.6 |
| NPU | 1515 | 15.9 |
| CPU + GPU | 209 | 39.6 |
| NPU + GPU | 1557 | 42.1 |
| NPU + CPU | 1640 | 36.8 |
Speeds on other phones
Geode's public speed table, geode.tifu.xyz/board, compares phones on Qwen3.5-2B, Ternary Bonsai 2 9B, Qwen3.6-35B-A3B and Qwen3.8-Flash-Next (this model is not among them yet). The speeds are measured by Geode's own engine on each phone, with synthetic packs of the models' real sizes in every run mode; where a case did not run, the speed is estimated from the phone's own test results and marked as an estimate. The CPU, GPU, NPU and APU are shown each on its own, phones are grouped by model, chip and RAM size, and every row shows the app version it was measured with. Only phones whose owners choose to publish are listed, with no personal data. The table is new: the app's Speed & ranking screen and its Publish these results in the public table checkbox arrive with the next app update.
Use
- Install Geode, free on Google Play (site: geode.tifu.xyz). Gemma 4 E2B is in Geode 0.9.13 and newer.
- Models → pick Gemma 4 E2B in Geode's catalog (or Download from Hugging Face →
Maximilian228/Geode-Gemma-4-E2B). - In a chat: attach a photo or a video, hold the microphone button to say what you want, or attach a sound file.
Voice messages, sound and video are processed on the phone and kept with their chat there; nothing is sent anywhere.
Requirements: Android 11+, a 64-bit ARM processor with the dot-product instructions (ARMv8.2), and free storage for the pack.
Photo analysis and sound analysis (the vision and audio encoders) are optional add-ons in Geode 0.10.13 and newer: download the model without them and add them later; switched off, they use no memory. When the files of a pack improve, the model shows Update in Geode (0.10.13 and newer), which downloads only the files that changed; when the phone has no room for the old and the new files together, Geode 0.10.15 and newer update the model in place, a file at a time, and an interrupted update continues where it stopped.
License
Apache-2.0, as the base model: this pack is a quantized derivative of
google/gemma-4-E2B-it-qat-q4_0-unquantized and
its QAT assistant by Google (see LICENSE and the Gemma 4 license).
Answers come from an AI model and can be wrong.