Model · Google

Gemma 4 E4B IT

chat
Parameters
8B total · 4.5B active
Context
131,072tokens at most
Smallest download
5.0 GBof 3 downloads
Licence
Apache-2.0Commercial use allowed

01Downloads

Exact files, exact bytes.

GGUF Q4_K_M

5.0 GB

unsloth/gemma-4-E4B-it-GGUF @ bfc15c382204943c3a8fff0c750b94ae2364d7a3

FileBytes
gemma-4-E4B-it-Q4_K_M.gguf4,977,171,584

GGUF Q8_0

8.2 GB

unsloth/gemma-4-E4B-it-GGUF @ bfc15c382204943c3a8fff0c750b94ae2364d7a3

FileBytes
gemma-4-E4B-it-Q8_0.gguf8,192,953,472

MLX 4-bit

5.1 GB

mlx-community/gemma-4-e4b-it-4bit @ 475b9088d29754a3379866cf5aeb6b41acd313c2

FileBytes
model.safetensors5,146,800,534

02Runtimes

How to run it.

Commands as the catalogue records them. The results page adds a context length that matches your estimate.

03Facts

Licence, layout and sources.

Licence
Apache-2.0 (opens in a new tab)Commercial use allowed.
Weights repo
google/gemma-4-E4B-it @ 4ecc2ba63bcac23ba4a767fc87025b1450f84c9c
Layout
42 layers4 × full attention, 2 KV heads × 512 dim · 20 × sliding window (512 tokens), 2 KV heads × 256 dim · 18 × shared cache (reuses an earlier layer's KV)
Notes
Gemma 4 E4B IT is a 8B-parameter mixture-of-experts model for chat, using 4.5B of them per token. It can read up to 131,072 tokens at once.The last 18 of 42 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-E4B-it/revision/4ecc2ba63bcac23ba4a767fc87025b1450f84c9c (opens in a new tab) retrieved huggingface.co/google/gemma-4-E4B-it/raw/4ecc2ba63bcac23ba4a767fc87025b1450f84c9c/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-E4B-it-GGUF/resolve/bfc15c382204943c3a8fff0c750b94ae2364d7a3/gemma-4-E4B-it-Q4_K_M.gguf (opens in a new tab) retrieved huggingface.co/api/models/unsloth/gemma-4-E4B-it-GGUF/tree/bfc15c382204943c3a8fff0c750b94ae2364d7a3?recursive=true (opens in a new tab) retrieved huggingface.co/api/models/mlx-community/gemma-4-e4b-it-4bit/tree/475b9088d29754a3379866cf5aeb6b41acd313c2?recursive=true (opens in a new tab) retrieved huggingface.co/mlx-community/gemma-4-e4b-it-4bit/blob/475b9088d29754a3379866cf5aeb6b41acd313c2/README.md (opens in a new tab) retrieved huggingface.co/mlx-community/gemma-4-e4b-it-4bit/resolve/475b9088d29754a3379866cf5aeb6b41acd313c2/model.safetensors (opens in a new tab) retrieved huggingface.co/google/gemma-4-E4B-it/blob/4ecc2ba63bcac23ba4a767fc87025b1450f84c9c/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:e4b-it-q4_K_M (opens in a new tab) retrieved
Verified on