How to Deploy Gemma 4 E4B Locally
Gemma 4 E4B is a small on-device model that Google released in April 2026, and an 8GB card can run it. It accepts images and audio clips of up to 30 seconds as direct input. The E in the name stands for “effective parameters”: counting the per-layer embedding tables it has 8B in total, but only about 4.5B actually take part in computation. At 4-bit with 32K of context it takes about 6.6 GB, and even the full 128K needs only about 8.2 GB.
Gemma 4 E4B details
- Min VRAM at 4-bit7 GB · 8K
- Parameters8B
- Max context128K
- Architecture
- Dense
- License
- Apache-2.0
- Launch date
- Apr 2, 2026
- Vendor
- Google DeepMind
- Hugging Face repo
- google/gemma-4-E4B-it
- GGUF repo
- unsloth/gemma-4-E4B-it-GGUF
- NVFP4 repo (Blackwell)
- unsloth/gemma-4-E4B-it-NVFP4
- MLX repo (Apple)
- mlx-community/gemma-4-e4b-it-4bit
- Ollama tag
- gemma4:e4b
- Layers
- 42
- Hidden size
- 2,560
- KV heads
- 2
- Head dim
- 256
How much VRAM does Gemma 4 E4B need for local deployment?
| Quantization | WeightsGB | 8K contextGB | 32K contextGB | 128K context (max)GB |
|---|---|---|---|---|
| 1-bit | 2est. | 3.2 | 3.6 | 5.3 |
| 2-bit | 3.8GGUF | 5 | 5.4 | 7 |
| 3-bit | 4.6GGUF | 5.8 | 6.2 | 7.8 |
| 4-bit | 5GGUF | 6.2 | 6.6 | 8.2 |
| 5-bit | 5.5GGUF | 6.7 | 7.1 | 8.7 |
| 8-bit | 8.2GGUF | 9.4 | 9.8 | 11.4 |
| BF16/FP16 | 15.1GGUF | 16.3 | 16.7 | 18.3 |
Full calculation rules are on the Methodology page.
Can a single GPU run Gemma 4 E4B?
Almost any discrete GPU will run it, so the real question is which quant to use. 4-bit with 8K of context is only about 6 GB, and with memory this plentiful there's no reason to squeeze it that hard. 8-bit with the full 128K is about 11.4 GB, small enough for a 12GB card, and the RTX 5060 Ti 16GB runs it at about 39 tokens/s, well ahead of reading speed. A 16GB card can even run the uncompressed original, just not with the full context. It's nominally 8B, but a large share of those parameters are only looked up, not computed, leaving about 4.5B parameters doing real work per token, so actual speed often beats the estimate.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 142.5 | 128K | |
| $86958 listings | 78.8 | 128K | |
| $89518 listings | 142.5 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 150 | 128K |
| $1,799107 listings | 147 | 128K | |
| $3,75868 listings | 155.8 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 47.3 | 128K |
| $4,89916 listings | 125.2 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 181.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 103.8 | 128K |
| $8,24022 listings | 50.2 | 128K | |
| $8,395123 listings | 236.9 | 128K | |
| $22,50011 listings | 236.9 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 114.2 | 128K | |
| $86958 listings | 61.8 | 128K | |
| $89518 listings | 114.2 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 120.5 | 128K |
| $1,799107 listings | 118 | 128K | |
| $3,75868 listings | 125.5 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 36.7 | 128K |
| $4,89916 listings | 99.8 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 147.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 82.1 | 128K |
| $8,24022 listings | 39 | 128K | |
| $8,395123 listings | 196.3 | 128K | |
| $22,50011 listings | 196.3 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 74.6 | 128K | |
| $86958 listings | 39.2 | 128K | |
| $89518 listings | 74.6 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 79.1 | 128K |
| $1,799107 listings | 77.3 | 128K | |
| $3,75868 listings | 82.6 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 22.9 | 128K |
| $4,89916 listings | 64.7 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 98.2 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 52.7 | 128K |
| $8,24022 listings | 24.4 | 128K | |
| $8,395123 listings | 134.7 | 128K | |
| $22,50011 listings | 134.7 | 128K |
Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.
What to know before running Gemma 4 E4B locally
The “E” in E4B
Every layer of E4B has its own embedding table. These tables are large, but during generation they are only looked up, with each token using just a few rows, so only about 4.5B parameters actually do computation; that's why Google calls it an “effective 4B.” This site estimates both VRAM and speed from 8B, so real generation may be somewhat faster than the speeds in the table.
Thinking is off by default
Thinking is off by default and only turns on when you add
<|think|>at the start of the system prompt (in Transformers that maps toenable_thinking=True, and llama.cpp's chat template handles it for you). With thinking off, it answers directly, unlike the 12B and larger models, which still output an empty thinking block. Google's sampling parameters apply to every use case:temperature1.0,top_p0.95,top_k64.How to feed it images and audio
Put images before the text and audio after it. Audio is limited to 30 seconds, and video is read at 1 frame per second for up to 60 seconds. You can choose how many tokens represent an image (several levels from 70 to 1120): use the higher levels for OCR and small text, and the lower ones for classification and video. llama.cpp has supported Gemma 4 audio input since April 12, 2026.
Where its limits are
Its knowledge and common sense are solid: in Google's model card, E4B scores 69.4 on MMLU Pro, slightly above the previous-generation Gemma 3 27B's 67.6 without thinking. But it clearly trails the next size up on hard reasoning problems, scoring only 58.6 on GPQA Diamond versus 78.8 for the 12B. It's better suited to speech transcription, image Q&A and a lightweight assistant on a laptop.
Launch commands
Ollama
- Windows
- macOS
- Linux
ollama run gemma4:e4bllama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q4_K_M -c 8192
vLLM
- Linux
- NVIDIA
- AMD
vllm serve google/gemma-4-E4B-itBlackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.
vllm serve unsloth/gemma-4-E4B-it-NVFP4MLX
- Apple Silicon
Vision models run on mlx-vlm: on a Mac, pip install mlx-vlm first; this command downloads the MLX weights from Hugging Face and starts a server.
mlx_vlm.server --model mlx-community/gemma-4-e4b-it-4bitFile names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the Gemma family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 12B | 12B | 7.1 GB | |
| 25.2B | 3.8B | 16.9 GB | |
| 30.7B | 30.7B | 18.3 GB |