LLMs ·

Gemma 4 E2B

Parameters
5.1B
Architecture
Dense
Max context
128K tokens
License
apache-2.0
Released
2026-03

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

ollama run gemma4:e2b

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/unsloth/gemma-4-E2B-it-GGUF (opens in a new tab)

ollama run hf.co/unsloth/gemma-4-E2B-it-GGUF

Original weights · Hugging Face

Full-precision files from Google, for fine-tuning, vLLM, Transformers.

huggingface.co/google/gemma-4-E2B-it (opens in a new tab)

No sign-in needed.

Official repo · GitHub

Reference code, inference scripts and docs from Google. The weights themselves download from Hugging Face.

github.com/google-deepmind/gemma (opens in a new tab)

git clone https://github.com/google-deepmind/gemma

Google DeepMind’s official Gemma library.

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.

KV cache: sliding-window hybrid: the KV estimate counts the global-attention layers plus a small allowance for the sliding-window layers.

Quantization Quality Weights Total at 8K context Total at 32K context Download
Q2_K Low 2.0 GB 2.7 GB 2.9 GB GGUF (UD-Q2_K_XL) (opens in a new tab)
Q3_K_M Low 2.5 GB 3.2 GB 3.4 GB GGUF (opens in a new tab)
Q4_K_M Good 3.1 GB 3.8 GB 4.0 GB GGUF (opens in a new tab)
Q5_K_M High 3.6 GB 4.3 GB 4.5 GB GGUF (opens in a new tab)
Q6_K High 4.2 GB 4.9 GB 5.1 GB GGUF (opens in a new tab)
Q8_0 Very high 5.4 GB 6.1 GB 6.3 GB GGUF (opens in a new tab)
F16 Full 10.2 GB 10.9 GB 11.1 GB GGUF (opens in a new tab) Original weights (opens in a new tab)

Best hardware for Gemma 4 E2B

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q4_K_M.

Grade · points Hardware Quant Memory Speed Fit
82 ptsGreat (A) · 82 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4080 SUPER F16 11.7 GB / 16.0 GB 41.4 tok/s Runs well
82 ptsGreat (A) · 82 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 5070 Ti F16 11.7 GB / 16.0 GB 50.4 tok/s Runs well
82 ptsGreat (A) · 82 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 5080 F16 11.7 GB / 16.0 GB 54.0 tok/s Runs well
82 ptsGreat (A) · 82 of 100 points: Model quality 27.6/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4060 Q6_K 5.3 GB / 8.0 GB 45.2 tok/s Runs well
80 ptsGreat (A) · 80 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.9/15 Intel Arc B580 Q8_0 6.7 GB / 12.0 GB 42.5 tok/s Runs well
80 ptsGreat (A) · 80 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.9/15 NVIDIA GeForce RTX 3060 12GB Q8_0 6.7 GB / 12.0 GB 43.9 tok/s Runs well
80 ptsGreat (A) · 80 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.9/15 NVIDIA GeForce RTX 4070 SUPER Q8_0 6.7 GB / 12.0 GB 61.5 tok/s Runs well
79 ptsGreat (A) · 79 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 11.6/15 AMD Radeon RX 7900 XTX F16 12.1 GB / 24.0 GB 46.5 tok/s Runs well
79 ptsGreat (A) · 79 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 11.6/15 NVIDIA GeForce RTX 3090 F16 12.1 GB / 24.0 GB 52.7 tok/s Runs well
79 ptsGreat (A) · 79 of 100 points: Model quality 27.9/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 11.6/15 NVIDIA GeForce RTX 4090 F16 12.1 GB / 24.0 GB 56.7 tok/s Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.