How to Deploy Gemma 4 E4B Locally
Gemma 4 E4B is a dense model with 8B parameters. At Q4 it needs at least 7GB of VRAM, and 8GB is the comfortable amount for an 8K context. The cheapest card that runs it today is the Tesla V100 16GB at about $659, at roughly 116.8 tokens/s.
Gemma 4 E4B details
How much VRAM does Gemma 4 E4B need for local deployment?
| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| 1-bit | 1.9est. | 3.5 | 5.5 | 13.4 |
| 2-bit | 3.8GGUF | 4.6 | 6.6 | 14.5 |
| 3-bit | 4.6GGUF | 5.5 | 7.5 | 15.3 |
| 4-bit | 5GGUF | 6.1 | 8.1 | 16 |
| 5-bit | 5.5GGUF | 7.1 | 9 | 16.9 |
| 8-bit | 8.2GGUF | 9.9 | 11.9 | 19.8 |
| FP16 | 15.1GGUF | 17.3 | 19.3 | 27.1 |
Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 128K limit show a dash. Each tier takes whichever file of that bit width the repository has, preferring unsloth dynamic quants, so the exact file name varies by model.
Which GPUs can run Gemma 4 E4B?
AmazonJP
| Device | VRAMGB | Price | Est. t/s | Suggested context |
|---|---|---|---|---|
| 16 | $6594 listings | 116.8 | 128K | |
| 16 | $8848 listings | 62.2 | 128K | |
| 16 | $9249 listings | 61 | 128K | |
| 12 | $95610 listings | 89.4 | 32K | |
| 16 | $96610 listings | 60.7 | 128K | |
| 32 | $1,1413 listings | 116.8 | 128K | |
| 24 | $1,1643 listings | 40.6 | 128K | |
| 20 | $1,2449 listings | 76.8 | 128K | |
| 16 | $1,4044 listings | 56.3 | 128K | |
| 16 | $1,57610 listings | 116.4 | 128K | |
| 24 | $1,7389 listings | 91 | 128K | |
| 16 | $1,8684 listings | 123.9 | 128K | |
| 32 | $2,0743 listings | 53.6 | 128K | |
| 16 | $2,1878 listings | 94.9 | 128K | |
| 32 | $2,2446 listings | 62.2 | 128K | |
| 24 | $2,5209 listings | 121.1 | 128K | |
| 128 | $3,9136 listings | 25.6 | 128K | |
| 24 | $3,9565 listings | 89.4 | 128K | |
| 24 | $4,9059 listings | 129.4 | 128K | |
| 32 | $7,4899 listings | 212.9 | 128K | |
| 128 | $8,2233 listings | 37.9 | 128K | |
| 22 | —No listings | 82.4 | 128K | |
| 24 | —No listings | 166.8 | 128K | |
| 32 | —No listings | 53.6 | 128K | |
| 32 | —No listings | 97.2 | 128K | |
| 32 | —No listings | 212.9 | 128K | |
| 32 | —No listings | 114.2 | 128K | |
| 32 | —No listings | 96.6 | 128K | |
| 32 | —No listings | 56.3 | 128K | |
| 32 | —No listings | 116.4 | 128K | |
| 40 | —No listings | 189 | 128K | |
| 40 | —No listings | 189.5 | 128K | |
| 48 | —No listings | 129.4 | 128K | |
| 48 | —No listings | 82.5 | 128K | |
| 48 | —No listings | 166.8 | 128K | |
| 64 | —No listings | 182.6 | 128K | |
| 64 | —No listings | 147.8 | 128K | |
| 72 | —No listings | 166.8 | 128K | |
| 84 | —No listings | 190.4 | 128K | |
| 96 | —No listings | 212.9 | 128K | |
| Mac Studio M4 Max 128GB | 128 | —No listings | 58.6 | 128K |
| Mac Studio M5 Max 128GB | 128 | —No listings | 65.5 | 128K |
| MacBook Pro M4 Max 128GB | 128 | —No listings | 58.6 | 128K |
| MacBook Pro M5 Max 128GB | 128 | —No listings | 65.5 | 128K |
| Mac Studio M3 Ultra 512GB | 512 | —No listings | 85.8 | 128K |
Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.
Deploy Gemma 4 E4B locally with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve google/gemma-4-E4B-it
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does Gemma 4 E4B need?
At Q4_K_M with an 8K context Gemma 4 E4B needs about 7GB of VRAM; 8GB leaves comfortable headroom.
What is the cheapest GPU that runs Gemma 4 E4B?
The Tesla V100 16GB: 16GB of VRAM, currently about $659, at roughly 116.8 tokens/s.
Can you run Gemma 4 E4B with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.