Geode · Gemma 4 E4B for phones
A model pack for Geode, an Android app that runs language models entirely on the phone: no cloud, no account. Gemma 4 E4B is the larger of Google's two small multimodal models: it reads images, watches video, hears voice and sound, and calls the agent's tools - with noticeably better answers than E2B, at about two thirds of its speed. 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 | 4.8 GB (4.43 GiB): 2.6 GB in memory, the per-layer embeddings read from flash | not measured yet | any 64-bit phone with 8 GB of RAM or more |
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.
On a Snapdragon 8 Elite phone (RedMagic 10 Pro), the default run mode (NPU + GPU): a 1,300-token prompt reads at ~940 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 ~29-40 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 (~200 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 (81 KB, not part of the base download): refusal.gguf, one direction of
2,560 values for each of layers 24-30 (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.25), 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 E4B's weights (the refusal direction of 320 harmful vs 320 harmless prompts) and measured against the stock model: KL 0.013, the same top token 96.1% (teacher-forced on the model's own replies), its thinking slightly shorter. Held-out harmful requests refused without it / with it, thinking off (Geode's default): English 101/104 -> 1/104, Ukrainian 28/30 -> 0/30. With thinking on the reduction is partial: English 101/104 -> 72/104, Ukrainian 28/30 -> 19/30. Harmless requests 1/64 -> 0/64. On this pack in Geode's engine (CPU), thinking off: English 9/10 -> 0/10 and Ukrainian 8/10 -> 0/10 refused, KL to the engine without it 0.015 on its own tokens (the same top token 94.9%). The projection runs at the same place in every run mode.
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.
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 E4B is in Geode 0.9.16 and newer.
- Models → pick Gemma 4 E4B in Geode's catalog (or Download from Hugging Face →
Maximilian228/Geode-Gemma-4-E4B). - 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), 8 GB of RAM, and free storage for the pack. On a 6 GB phone choose Gemma 4 E2B instead.
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-E4B-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.