Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Google - Dense - verified

Run Gemma 4 E2B locally

Gemma 4 E2B is a 5.1B dense model from Google with a 131K-token context window, released under Apache 2.0 (commercial use is allowed); the smallest listed download is 3.1 GB, the Q4_K_M GGUF build from unsloth/gemma-4-E2B-it-GGUF.

Official weights: google/gemma-4-E2B-it - modalities: text, image, audio, video

Total params
5.1B
Architecture
Dense
Context
131K
Smallest download
3.1 GB

Fits in

Smallest download at most 85% of memory

Downloads

The official weights and every quantization listed for this model, with file sizes from Hugging Face.

Gemma 4 E2B downloads and file sizes
DownloadFormatSizeRepo
Official weightsBF1610.2 GBgoogle/gemma-4-E2B-it
Q4_0 (QAT)GGUF3.3 GBgoogle/gemma-4-E2B-it-qat-q4_0-gguf
Q4_K_MSmallest listedGGUF3.1 GBunsloth/gemma-4-E2B-it-GGUF
Q8_0GGUF5.0 GBunsloth/gemma-4-E2B-it-GGUF
4bitMLX3.6 GBmlx-community/gemma-4-e2b-it-4bit

GB is decimal: 1 GB = 10^9 bytes. Add memory for the context and the operating system on top of the file size.

Run it

Copied verbatim from the page linked under each command. Server commands from model cards often assume a multi-GPU node; check the flags before you run them.

Ollama

Terminal
ollama run gemma4:e2b

Source: ollama.com/library/gemma4

Transformers

Terminal
pip install -U transformers torch accelerate

Source: huggingface.co/google/gemma-4-E2B-it

Not sure which runtime to use? Compare local LLM runtimes by platform, API and features.

License

License
Apache 2.0apache-2.0
Commercial use
Commercial use: YesCommercial use is allowed.
Gated download
No. The files download directly.

Worth knowing

The E means effective parameters (2.3B effective, 5.1B with per-layer embeddings), aimed at phones and edge devices.

Released (per the announcement).

FAQ

How big is the Gemma 4 E2B download?

The official BF16 weights in google/gemma-4-E2B-it are 10.2 GB. The smallest listed download is 3.1 GB, the Q4_K_M GGUF build from unsloth/gemma-4-E2B-it-GGUF. Plan for more memory than the file size: the context (KV cache) and the operating system need room too.

Can I use Gemma 4 E2B commercially?

Gemma 4 E2B is released under Apache 2.0, and commercial use is allowed. The license text is at https://ai.google.dev/gemma/docs/gemma_4_license.

How much memory do I need for Gemma 4 E2B?

By this directory's rule of thumb it fits in 8 GB and up: the smallest listed download, 3.1 GB, is at most 85% of 8 GB, which leaves room for the context and the operating system.

How do I run Gemma 4 E2B with Ollama?

Run "ollama run gemma4:e2b", as shown at https://ollama.com/library/gemma4. The Ollama library lists the gemma4:e2b tag at 4.6GB - 7.5GB.

What is the context length of Gemma 4 E2B?

131,072 tokens. A longer context needs more memory for the KV cache, so you can run with a shorter one when memory is tight.

Sources

Last verified from the pages below.

Newsletter

New open weights, every week

One email per week. New model releases, open-weight drops and what they mean for what you build.