Gemma 4 E4B
8B parameters · 128k context · apache-2.0 · released 2026-03-02
chatvision
In short
Gemma 4 E4B is an open model from Google with 8B parameters. At Q4_K_M, Gemma 4 E4B needs about 6 GB of memory at 8k context and 6 GB at 32k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the UK that runs Gemma 4 E4B fully in memory at 32k context is the Intel Arc A770 16GB, £364 at eBay, at about 31 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the UK today
NVIDIA Tesla P40, used at eBay
Runs Gemma 4 E4B at Q8_0 fully in memory at 32k context, about 23 tok/sest.
£280
In stock, checked
What to run it on in the UK
Fully in memory at 32k context, priced at retailers today.
Cheapest
Intel Arc A770 16GB31tok/sest.Q8_0
£364
Best value
NVIDIA GeForce RTX 506043tok/sest.Q5_K_M
£400
Fastest
NVIDIA GeForce RTX 5090121tok/sest.Q8_0
£5,000
Mac
Mac Studio M4 Max 64GB39tok/sest.Q8_0
£3,299
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 4.6 GB | 5.6 GB | 6.4 GB | 7.5 GB | 9.6 GB |
| mlx-4bitmlx | 4.8 GB | 5.8 GB | 6.6 GB | 7.7 GB | 9.8 GB |
| Q5_K_Mgguf | 5.1 GB | 6.1 GB | 6.9 GB | 8.0 GB | 10.1 GB |
| Q6_Kgguf | 6.6 GB | 7.6 GB | 8.4 GB | 9.4 GB | 11.6 GB |
| Q8_0gguf | 7.6 GB | 8.6 GB | 9.4 GB | 10.5 GB | 12.6 GB |
| mlx-8bitmlx | 8.3 GB | 9.3 GB | 10.1 GB | 11.1 GB | 13.3 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-E4B-it-GGUF:Q4_K_M - LM Studio
lms get unsloth/gemma-4-E4B-it-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/gemma-4-E4B-it-4bit - MLX
mlx_lm.server --model mlx-community/gemma-4-E4B-it-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-E4B-it-GGUF:Q5_K_M - LM Studio
lms get unsloth/gemma-4-E4B-it-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/gemma-4-E4B-it-GGUF:Q6_K - LM Studio
lms get unsloth/gemma-4-E4B-it-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/unsloth/gemma-4-E4B-it-GGUF:Q8_0 - LM Studio
lms get unsloth/gemma-4-E4B-it-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q8_0
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/gemma-4-E4B-it-8bit - MLX
mlx_lm.server --model mlx-community/gemma-4-E4B-it-8bit
- LM Studio
Questions
- How much VRAM does Gemma 4 E4B need?
- At Q4_K_M, Gemma 4 E4B needs about 6 GB of memory at 8k context and 6 GB at 32k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running Gemma 4 E4B locally?
- The cheapest hardware in the UK that runs Gemma 4 E4B fully in memory at 32k context is the Intel Arc A770 16GB, £364 at eBay, at about 31 tok/s (estimated). The best value is the NVIDIA GeForce RTX 5060 (about 43 tok/s for £400). The fastest we price is the NVIDIA GeForce RTX 5090, at about 121 tok/s.
- What is the cheapest way to run Gemma 4 E4B in the UK today?
- The NVIDIA Tesla P40, £280 used at eBay, in stock: it runs Gemma 4 E4B at Q8_0 fully in memory at 32k context, at about 23 tok/s (estimated).
- Can I run Gemma 4 E4B on a 16 GB GPU?
- Yes: at Q8_0 it fits fully in 16 GB at 32k context. On the NVIDIA GeForce RTX 5080 it runs at about 65 tok/s (estimated).
- Can I run Gemma 4 E4B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 32k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 68 tok/s (estimated).
- How do I run Gemma 4 E4B locally?
- With Ollama: ollama run hf.co/unsloth/gemma-4-E4B-it-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Gemma 4 E4B released under?
- apache-2.0, which allows commercial use.