VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

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
NVFP4 repo (Blackwell)
unsloth/gemma-4-E4B-it-NVFP4
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?

QuantizationWeightsGB8K contextGB32K contextGB128K context (max)GB
1-bit2est.3.23.65.3
2-bit3.8GGUF55.47
3-bit4.6GGUF5.86.27.8
4-bit5GGUF6.26.68.2
5-bit5.5GGUF6.77.18.7
8-bit8.2GGUF9.49.811.4
BF16/FP1615.1GGUF16.316.718.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.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$37024 listings114.2128K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings61.8128K
Tesla V100 32GB32 GB$89518 listings114.2128K
Radeon RX 7900 XTX24 GB$1,25029 listings120.5128K
GeForce RTX 309024 GB$1,799107 listings118128K
GeForce RTX 409024 GB$3,75868 listings125.5128K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings36.7128K
RTX A600048 GB$4,89916 listings99.8128K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings147.3128K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings82.1128K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings39128K
GeForce RTX 509032 GB$8,395123 listings196.3128K
RTX PRO 600096 GB$22,50011 listings196.3128K

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

  1. 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.

  2. 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 to enable_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: temperature 1.0, top_p 0.95, top_k 64.

  3. 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.

  4. 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
Terminal
ollama run gemma4:e4b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
Terminal
llama-server -hf unsloth/gemma-4-E4B-it-GGUF:Q4_K_M -c 8192

vLLM

  • Linux
  • NVIDIA
  • AMD
Original weights
Terminal
vllm serve google/gemma-4-E4B-it
NVFP4 · Blackwell

Blackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.

Terminal
vllm serve unsloth/gemma-4-E4B-it-NVFP4

MLX

  • 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.

Terminal
mlx_vlm.server --model mlx-community/gemma-4-e4b-it-4bit

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the Gemma family

ModelTotal paramsActive params4-bit size
Gemma 4 12BDense12B12B7.1 GB
Gemma 4 26B A4BMoE25.2B3.8B16.9 GB
Gemma 4 31BDense30.7B30.7B18.3 GB

About Gemma