Google DeepMind Shrinks Gemma 4 E4B to 5GB Without Losing Reasoning Power
Google released quantization-aware trained Q4_0 GGUF checkpoints of Gemma 4 E4B, delivering near-bfloat16 quality in a 5.15 GB on-device package.
Takeaways
- Google released Gemma 4 E4B QAT Q4_0 GGUF, a 5.15 GB on-device multimodal model.
- Quantization-Aware Training preserves near-bfloat16 quality while cutting memory roughly 4x.
- E4B is 4.5B effective parameters, 128K context, handles text, image, and audio inputs.
- Beats Gemma 3 27B on MMLU Pro, AIME, LiveCodeBench v6, and GPQA Diamond.
- Runs out of the box with Ollama, llama.cpp, LM Studio, Jan, and Docker Model Runner.
- Apache 2.0 license; see the Gemma 4 technical report for details.
Google DeepMind has released the E4B checkpoint as a quantization-aware trained Q4_0 GGUF. The roughly 5.15 GB package targets compatible versions of llama.cpp, Ollama, LM Studio, and similar local-inference tools. Google says it reduces weight storage to about one-quarter of the bfloat16 baseline while preserving comparable model quality, bringing multimodal reasoning to laptops and high-memory phones.
QAT trims the weight file
Conventional post-training quantization converts an already trained model to lower precision and can reduce accuracy. Quantization-aware training simulates the target format’s rounding during training, allowing the model to adapt before its weights are exported. Google’s model card reports quality close to the bfloat16 checkpoint with substantially lower storage requirements.
The 5.15 GB figure covers the GGUF weight file. Actual memory use is higher because inference also requires runtime buffers, a key-value cache, input data, and application overhead. Long contexts consume more memory, so loading the model does not guarantee that a device can use the full 128K-token window.
Google distributes the QAT model in four formats for different runtimes:
- Unquantized QAT: Half-precision weights from the QAT pipeline for research, conversion, and custom compilation.
- GGUF
Q4_0: A 4-bit package for local runners such as llama.cpp, Ollama, and LM Studio. - Mobile
wNa8o8: A hardware-oriented format with selected 2-bit decoder layers, optimized key-value caches, and static activations. - Compressed Tensors
w4a16: Four-bit weights with 16-bit activations for optimized vLLM inference.
E4B counts active parameters
The “E” denotes effective parameters. E2B and E4B models use per-layer embeddings, or PLE, to improve parameter efficiency on constrained devices. Each decoder layer receives a small token embedding used for direct lookups, reducing the parameters involved in the main computation while retaining additional embedding weights in storage.
E4B has about 4.5 billion effective parameters and roughly 8 billion total parameters when embeddings are included. Its 42-layer architecture combines 512-token local attention windows with periodic global-attention layers; the final layer also uses global attention. This design limits attention costs across long inputs while allowing information to travel beyond each local window.
The model accepts text, images, and audio and produces text. Its advertised maximum context is 128K tokens, although usable context depends on available memory, runtime support, input modality, and cache configuration.
Reasoning gains come with caveats
Google’s reported results place E4B ahead of Gemma 3 27B in several reasoning evaluations. The comparison pairs E4B with a Gemma 3 baseline running without thinking mode, so it does not isolate the effects of parameter count, training data, reasoning mode, or quantization.
| Benchmark | Gemma 4 E4B | Gemma 3 27B, no think |
|---|---|---|
| MMLU Pro | 69.4% | 67.6% |
| AIME, no tools | 42.5% | 20.8% |
| LiveCodeBench v6 | 52.0% | 29.1% |
| GPQA Diamond | 58.6% | 42.4% |
| MATH-Vision | 59.5% | 46.0% |
| BigBench Extra Hard | 33.1% | 19.3% |
The largest gains appear in mathematics, coding, science, and visual reasoning. Results are weaker on agentic tasks and long-context retrieval: E4B scores 42.2% on Tau2, compared with 76.9% for the 31B dense model, and 25.4% on MRCR v2 with eight needles across a 128K-token context.
These benchmark figures describe the reported model capability. A direct QAT assessment requires matched evaluations of the Q4_0 and bfloat16 checkpoints under the same prompts, reasoning settings, runtime, and sampling parameters.
Local setup and memory
Recent Ollama builds can fetch and run the GGUF from Hugging Face:
ollama run hf.co/google/gemma-4-E4B-it-qat-q4_0-gguf:Q4_0
Compatible llama.cpp builds can launch either a server or an interactive command-line session:
llama-server -hf google/gemma-4-E4B-it-qat-q4_0-gguf:Q4_0
llama-cli -hf google/gemma-4-E4B-it-qat-q4_0-gguf:Q4_0
Runtime support varies by version, especially for vision, audio, long contexts, and model-specific prompt templates. Developers should verify architecture support, required multimodal assets, and chat formatting before deployment. The repository lists the applicable license; commercial users should review its terms and any obligations attached to redistributed builds. Google provides additional details in the launch post and technical report.
Prompting rules affect output
- Thinking mode uses a token. Add
<|think|>at the beginning of the system prompt to enable reasoning mode. Omit it to use the standard response path. - Modality order is fixed. Place image content before prompt text and audio content after it.
- Media duration is bounded. Audio inputs support up to 30 seconds. Video supports up to 60 seconds at one frame per second.
- Image budgets are configurable. Supported allocations are 70, 140, 280, 560, and 1,120 tokens per image. Larger budgets can improve OCR and visual detail at the cost of memory and latency.
- Speculative decoding requires matching precision. Multi-token prediction with a QAT target requires a QAT assistant checkpoint using the same precision.
- Conversation history should exclude prior reasoning. Store the model’s final answer for subsequent turns. Preserve intermediate reasoning only when the tool-calling protocol requires it.
Where E4B fits
E4B suits local applications that combine screenshot OCR, speech transcription, function calling, multilingual input, and structured reasoning. Its approximately 262,000-token vocabulary supports more than 35 languages directly, and its pretraining data covers more than 140 languages. Those capabilities can support private on-device workflows that restrict cloud processing.
A 16 GB laptop should have room for the 5.15 GB weights and moderate runtime overhead, although long contexts, multimodal inputs, and large image budgets can raise memory use substantially. Production evaluations should measure latency, peak memory, output quality, tool-call reliability, and thermal behavior on the intended hardware.
Quantization-aware training narrows the quality loss historically associated with 4-bit local models. For developers choosing between cloud inference and on-device execution, E4B offers a compact checkpoint with broad modality support, while its long-context retrieval and agentic results still warrant workload-specific testing.