Run Gemma 4 E4B Locally: VRAM & GPU Requirements
Gemma 4 E4B is a small on-device model released by Google in April 2026 that needs about 6.6 GB of VRAM at 4-bit with 32K context. An 8GB GPU can run it locally. Even the full 128K context needs only about 8.2 GB. It accepts images and audio clips of up to 30 seconds as direct input, and the E stands for "effective parameters": 8B in total with per-layer embedding tables, while only about 4.5B take part in computation.
Gemma 4 E4B details
- Min VRAM at 4-bit (8K context)7 GB
- 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?
| 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 can run Gemma 4 E4B locally, as 4-bit with 8K context takes only about 6 GB of VRAM. With VRAM that light, there is no need to squeeze it down to 4-bit: 8-bit with the full 128K context is about 11.4 GB, fits on a 12GB card, and runs at about 39 tokens/s on the RTX 5060 Ti 16GB. A 16GB card can even run the uncompressed original, just not at full context. Because many of its 8B parameters are only looked up rather than computed, leaving about 4.5B active per token, real speed often beats estimates.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $41316 listings | 142.5 | 128K | |
| $88045 listings | 78.8 | 128K | |
| $1,37813 listings | 142.5 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,40027 listings | 150 | 128K |
| $1,992116 listings | 147 | 128K | |
| $3,82574 listings | 155.8 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 47.3 | 128K |
| $4,89925 listings | 125.2 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 181.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 103.8 | 128K |
| $7,385128 listings | 236.9 | 128K | |
| $7,90037 listings | 50.2 | 128K | |
| $18,60020 listings | 236.9 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $41316 listings | 114.2 | 128K | |
| $88045 listings | 61.8 | 128K | |
| $1,37813 listings | 114.2 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,40027 listings | 120.5 | 128K |
| $1,992116 listings | 118 | 128K | |
| $3,82574 listings | 125.5 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 36.7 | 128K |
| $4,89925 listings | 99.8 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 147.3 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 82.1 | 128K |
| $7,385128 listings | 196.3 | 128K | |
| $7,90037 listings | 39 | 128K | |
| $18,60020 listings | 196.3 | 128K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $41316 listings | 74.6 | 128K | |
| $88045 listings | 39.2 | 128K | |
| $1,37813 listings | 74.6 | 128K | |
| Radeon RX 7900 XTX24 GB | $1,40027 listings | 79.1 | 128K |
| $1,992116 listings | 77.3 | 128K | |
| $3,82574 listings | 82.6 | 128K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,02531 listings | 22.9 | 128K |
| $4,89925 listings | 64.7 | 128K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $6,7995 listings | 98.2 | 128K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,00029 listings | 52.7 | 128K |
| $7,385128 listings | 134.7 | 128K | |
| $7,90037 listings | 24.4 | 128K | |
| $18,60020 listings | 134.7 | 128K |
Only common GPUs and systems are listed, from cheapest to most expensive.
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 |