How much VRAM does Gemma 4 E4B need?
In BF16 the weights alone take 14.9 GiB (16 GB). In FP8 that is 8.52 GiB, and about 4.36 GiB with 4-bit quantization (Q4_K_M). Each request then adds KV cache: 0.25 GiB at 8K tokens and 0.91 GiB at 32K (BF16 cache).
Can Gemma 4 E4B run on an 8 GB, 12 GB or 16 GB graphics card?
With a 32K context and llama.cpp: 8 GB (RTX 4060): yes, in Q4_K_M, about 34 tokens/s; 12 GB (RTX 3060): yes, in Q8_0, about 32 tokens/s; 16 GB (RTX 4060 Ti): yes, in Q8_0, about 26 tokens/s. A shorter context needs less memory.
How fast is Gemma 4 E4B on an RTX 4090 or an RTX 5090?
About 50 tokens/s on an RTX 4090 in BF16. About 85 tokens/s on an RTX 5090 in BF16. These are estimates for one request at a 32K context; against 23 published llama.cpp measurements on consumer and workstation GPUs, our estimates are 12% off at the median.
Can Gemma 4 E4B run without a graphics card?
Yes, slowly: about 7.7 tokens/s in Q5_K_M on a processor with 32 GB of dual-channel DDR5 RAM (llama.cpp, 32K context).
Can Gemma 4 E4B run a coding agent on an RTX 4090 or an RTX 5090?
On an RTX 4090: yes, in BF16 with a 64K context, about 46 tokens/s. One step (2,000 new tokens read, 300 written) takes about 6.7 s; reading the whole context again takes about 6.1 s. On an RTX 5090: yes, in BF16 with a 64K context, about 79 tokens/s. One step (2,000 new tokens read, 300 written) takes about 4.0 s; reading the whole context again takes about 6.0 s. Coding agents need at least 64K of context (Ollama's guidance); the step sizes are an example. Gemma 4 E4B's chat template supports tool calling, which most agents rely on.
Can Gemma 4 E4B run on a single RTX 4090 (24 GB)?
Yes. In BF16 it fits on one RTX 4090 with an 8K-token context (15.1 GiB including the cache, with llama.cpp).
Can Gemma 4 E4B run on an RTX 5090 (32 GB)?
Yes. In BF16 (15.1 GiB with an 8K-token context) it fits on one RTX 5090, with llama.cpp.
Can Gemma 4 E4B run on a Mac?
Yes. In 4-bit (Q4_K_M with llama.cpp) it needs a Mac with 16 GB of unified memory or more, of which macOS gives the GPU about 12 GB, for one request with an 8K-token context. The same Mac also holds it in 8-bit (Q8_0).
Can Gemma 4 E4B run on a DGX Spark or a Ryzen AI Max+ 395 (128 GB)?
Yes. In BF16 (15.1 GiB with an 8K-token context) it fits on a DGX Spark (128 GB) and on a Ryzen AI Max+ 395 with 128 GB, whose GPU gets up to 96 GB, with llama.cpp and one request.
What is the cheapest way to run Gemma 4 E4B?
On 2026-11-30, the cheapest on-demand setup is 1 × RTX A4000 (16 GB) with Q8_0 weights on Vast.ai, at $0.072 per hour (about $52.56 per month). Next: 1 × GeForce RTX 4090 (24 GB) with BF16 weights on Vast.ai, at $0.100 per hour. Sized for one 8K-token request; prices are checked every hour.
How many H100 GPUs does Gemma 4 E4B need?
With one request and an 8K-token context: 1 in BF16, 1 in FP8 and 1 in 4-bit (vLLM, 90% of memory usable). Serving many users at once needs more memory for their KV caches: the calculator sizes that for you.
Can Gemma 4 E4B read images?
Yes. Gemma 4 E4B reads text, images, video and audio. Images add tokens to the context, so they also add KV cache.
Does Gemma 4 E4B support tool calling?
Yes, Gemma 4 E4B supports tool (function) calling: it can ask your application to run a function and use the result.
Does Gemma 4 E4B have a thinking mode?
Thinking mode you can switch on or off. With vLLM or SGLang, set it per request with "chat_template_kwargs": {"enable_thinking": false} (or true). Reasoning tokens count toward the context and the KV cache.
What temperature should I use with Gemma 4 E4B?
The official defaults are temperature 1, top-p 0.95, top-k 64.