Model · Google
Gemma 4 E2B IT
- Parameters
- 5.1B total · 2.3B active
- Context
- 131,072tokens at most
- Smallest download
- 3.1 GBof 3 downloads
- Licence
- Apache-2.0Commercial use allowed
01Downloads
Exact files, exact bytes.
GGUF Q4_K_M
3.1 GB| File | Bytes |
|---|---|
| gemma-4-E2B-it-Q4_K_M.gguf | 3,106,738,272 |
GGUF Q8_0
5.0 GB| File | Bytes |
|---|---|
| gemma-4-E2B-it-Q8_0.gguf | 5,048,352,864 |
MLX 4-bit
3.6 GB| File | Bytes |
|---|---|
| model.safetensors | 3,550,670,554 |
02Runtimes
How to run it.
Commands as the catalogue records them. The results page adds a context length that matches your estimate.
llama.cpp Q4_K_M docs (opens in a new tab)
llama cli -hf unsloth/gemma-4-E2B-it-GGUF:Q4_K_M --no-mmprojLM Studio Q4_K_M docs (opens in a new tab)
Open in LM Studio and search for unsloth/gemma-4-E2B-it-GGUF. Select Q4_K_M.
llama.cpp Q8_0 docs (opens in a new tab)
llama cli -hf unsloth/gemma-4-E2B-it-GGUF:Q8_0 --no-mmproj --hf-file gemma-4-E2B-it-Q8_0.ggufLM Studio Q8_0 docs (opens in a new tab)
Open in LM Studio and search for unsloth/gemma-4-E2B-it-GGUF. Select Q8_0.
LM Studio 4-bit docs (opens in a new tab)
Open in LM Studio and search for mlx-community/gemma-4-e2b-it-4bit.
Ollama Q4_K_M docs (opens in a new tab)
ollama run gemma4:e2b-it-q4_K_M
03Facts
Licence, layout and sources.
- Licence
- Apache-2.0 (opens in a new tab)Commercial use allowed.
- Weights repo
- google/gemma-4-E2B-it @ 4adf15748de9e1a0097b6274cee9c15836c41c37
- Layout
- 35 layers3 × full attention, 1 KV heads × 512 dim · 12 × sliding window (512 tokens), 1 KV heads × 256 dim · 20 × shared cache (reuses an earlier layer's KV)
- Notes
- Gemma 4 E2B IT is a 5.1B-parameter mixture-of-experts model for chat, using 2.3B of them per token. It can read up to 131,072 tokens at once.The last 20 of 35 layers reuse the KV cache of an earlier layer (config num_kv_shared_layers), so they keep no cache of their own, in llama.cpp and in mlx-lm. Full-attention layers use 512-wide heads (global_head_dim); sliding layers use 256. Per-layer embeddings are a large share of each download (shown per artifact). llama.cpp reads them row by row from the memory-mapped file instead of loading them whole, but the estimate still counts them in full. Ollama downloads its own build of this quantisation. The listed artifact sizes are for the pinned Hugging Face files. GGUF sizes and llama.cpp commands cover text use. The optional vision projector is excluded. The listed MLX conversion documents mlx-vlm, so no MLX LM command is listed.
- Sources
- huggingface.co/api/models/google/gemma-4-E2B-it/revision/4adf15748de9e1a0097b6274cee9c15836c41c37 (opens in a new tab) retrieved huggingface.co/google/gemma-4-E2B-it/raw/4adf15748de9e1a0097b6274cee9c15836c41c37/config.json (opens in a new tab) retrieved github.com/ggml-org/llama.cpp/blob/7b74cb92d67384373e87512f4ffd2dbef756b944/src/llama-kv-cache.cpp (opens in a new tab) retrieved github.com/ggml-org/llama.cpp/blob/7b74cb92d67384373e87512f4ffd2dbef756b944/src/models/gemma4.cpp (opens in a new tab) retrieved github.com/ggml-org/llama.cpp/blob/7b74cb92d67384373e87512f4ffd2dbef756b944/src/llama-model-loader.h (opens in a new tab) retrieved huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/0314792d7f1f7e229411f620751375812bb9faf2/gemma-4-E2B-it-Q4_K_M.gguf (opens in a new tab) retrieved huggingface.co/api/models/unsloth/gemma-4-E2B-it-GGUF/tree/0314792d7f1f7e229411f620751375812bb9faf2?recursive=true (opens in a new tab) retrieved huggingface.co/api/models/mlx-community/gemma-4-e2b-it-4bit/tree/238767527555cb75a05732a84dff5d6ba0dd6809?recursive=true (opens in a new tab) retrieved huggingface.co/mlx-community/gemma-4-e2b-it-4bit/blob/238767527555cb75a05732a84dff5d6ba0dd6809/README.md (opens in a new tab) retrieved huggingface.co/mlx-community/gemma-4-e2b-it-4bit/resolve/238767527555cb75a05732a84dff5d6ba0dd6809/model.safetensors (opens in a new tab) retrieved huggingface.co/google/gemma-4-E2B-it/blob/4adf15748de9e1a0097b6274cee9c15836c41c37/README.md (opens in a new tab) retrieved ai.google.dev/gemma/docs/gemma_4_license (opens in a new tab) retrieved ollama.com/library/gemma4:e2b-it-q4_K_M (opens in a new tab) retrieved
- Verified on