← 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) →
| Scale | effective approx. 4B / Total weights approx. 8B (PLE · embeddings · vision/audio included) |
|---|---|
| layers | 42 = window 35 + full 7 |
| d | 2,560 |
| Attention | GQA: Q 8 heads / KV 2 heads |
| window | 512 token |
| KV shared | The last 18 layers reuse an earlier layer's KV |
| embedding | Per-layer embeddings (PLE, each layer 256 dimensions) |
| FFN | GELU, intermediate 10,240 |
| context | 131,072 |
| KV calculation basis | Of 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 inference | vLLM / llama.cpp / Transformers |