← Open-Weight LLM Parts Atlas home

Gemma 4 E4B

effective 4B / Total weights 8B developers: Google (Gemma) published: 2026-03-02 Apache-2.0 · Commercial use OK ↗ max context: 128K KV(BF16): 16.0 KiB/tok multimodal (text backbone shown)

On-device: per-layer embeddings PLE + second half: 18 layer KV reuse

A small on-device version. A small per-layer embedding PLE adds capacity without adding compute, the last 18 layers reuse the earlier layers' KV to shrink the cache. Effective parameters are about 4B but, PLE · vocabulary embeddings · vision/audio parts included, the total checkpoint weights are about 8B.

Interactive structure diagram · simulator (open) →

Scaleeffective approx. 4B / Total weights approx. 8B (PLE · embeddings · vision/audio included)
layers42 = window 35 + full 7
d2,560
AttentionGQA: Q 8 heads / KV 2 heads
window512 token
KV sharedThe last 18 layers reuse an earlier layer's KV
embeddingPer-layer embeddings (PLE, each layer 256 dimensions)
FFNGELU, intermediate 10,240
context131,072
KV calculation basisOf the 7 global layers, 4 keep their own KV: 4 × 2 × 2 KV heads × 512d × 2B = 16.0 KiB (the last 18 layers reuse earlier KV; window layers cap at the last 512 tokens)
Supported inferencevLLM / llama.cpp / Transformers

Source:Hugging Face: google/gemma-4-E4B-it