Google · 4.6B · Q4_K_M · 2.89 GiB

Gemma 4 E2B at Q4_K_M needs about 3.69 GiB at 8K context, and the smallest listed machine that fits it is GeForce RTX 3060 Ti.

Small Gemma 4 model. 28 sliding layers (window 512) and 7 full layers. Sliding layers use head_dim and num_key_value_heads. Full layers use global_head_dim. When num_global_key_value_heads is null, full layers keep num_key_value_heads.

ollama run gemma4:e2b

Weights: gemma-4-E2B-it-Q4_K_M.gguf. Architecture: config source. Hugging Face repo created 2026-03-02. License field: apache-2.0.

Quants with a measured file size

QuantFileSize
Q4_K_M · recommendedgemma-4-E2B-it-Q4_K_M.gguf2.89 GiB
Q5_K_Mgemma-4-E2B-it-Q5_K_M.gguf3.13 GiB
Q6_Kgemma-4-E2B-it-Q6_K.gguf4.19 GiB
Q8_0gemma-4-E2B-it-Q8_0.gguf4.70 GiB

Machines

Same quant and 8,192 tokens on every row.
MachineMemoryTotalVerdictSpeed
Apple M1, 8 GB8 GB unified3.69 GiBFits12–18 tok/s
Apple M2, 8 GB8 GB unified3.69 GiBFits17–26 tok/s
Apple M3, 8 GB8 GB unified3.69 GiBFits17–26 tok/s
GeForce RTX 3060 Ti8 GB GDDR3.69 GiBFits76–115 tok/s
GeForce RTX 30708 GB GDDR3.69 GiBFits76–115 tok/s
GeForce RTX 40608 GB GDDR3.69 GiBFits46–70 tok/s
GeForce RTX 4060 Ti 8GB8 GB GDDR3.69 GiBFits49–74 tok/s
GeForce RTX 50608 GB GDDR3.69 GiBFits76–115 tok/s
GeForce RTX 5060 Ti 8GB8 GB GDDR3.69 GiBFits76–115 tok/s
Radeon RX 66008 GB GDDR63.69 GiBFits38–58 tok/s
Radeon RX 76008 GB GDDR63.69 GiBFits49–74 tok/s
GeForce RTX 3080 10GB10 GB GDDR3.69 GiBFits129–196 tok/s
GeForce RTX 3060 12GB12 GB GDDR3.69 GiBFits61–93 tok/s
GeForce RTX 407012 GB GDDR3.69 GiBFits86–130 tok/s
GeForce RTX 4070 Super12 GB GDDR3.69 GiBFits86–130 tok/s
GeForce RTX 4070 Ti12 GB GDDR3.69 GiBFits86–130 tok/s
GeForce RTX 507012 GB GDDR3.69 GiBFits114–173 tok/s
Intel Arc B58012 GB GDDR63.69 GiBFits77–117 tok/s
Radeon RX 6700 XT12 GB GDDR63.69 GiBFits65–99 tok/s
Radeon RX 7700 XT12 GB GDDR63.69 GiBFits73–111 tok/s
Apple M1 Pro, 16 GB16 GB unified3.69 GiBFits34–52 tok/s
Apple M1, 16 GB16 GB unified3.69 GiBFits12–18 tok/s
Apple M2 Pro, 16 GB16 GB unified3.69 GiBFits34–52 tok/s
Apple M2, 16 GB16 GB unified3.69 GiBFits17–26 tok/s
Apple M3, 16 GB16 GB unified3.69 GiBFits17–26 tok/s
Apple M4, 16 GB16 GB unified3.69 GiBFits20–31 tok/s
GeForce RTX 4060 Ti 16GB16 GB GDDR3.69 GiBFits49–74 tok/s
GeForce RTX 4070 Ti Super16 GB GDDR3.69 GiBFits114–173 tok/s
GeForce RTX 408016 GB GDDR3.69 GiBFits122–185 tok/s
GeForce RTX 4080 Super16 GB GDDR3.69 GiBFits125–190 tok/s
GeForce RTX 5060 Ti 16GB16 GB GDDR3.69 GiBFits76–115 tok/s
GeForce RTX 5070 Ti16 GB GDDR3.69 GiBFits152–231 tok/s
GeForce RTX 508016 GB GDDR3.69 GiBFits163–247 tok/s
Intel Arc A770 16GB16 GB GDDR63.69 GiBFits87–132 tok/s
Legion Go16 GB LPDDR5X-75003.69 GiBFits20–31 tok/s
Radeon RX 6800 XT16 GB GDDR63.69 GiBFits87–132 tok/s
Radeon RX 7800 XT16 GB GDDR63.69 GiBFits106–161 tok/s
Radeon RX 9060 XT 16GB16 GB GDDR63.69 GiBFits54–82 tok/s
Radeon RX 9070 XT16 GB GDDR63.69 GiBFits109–165 tok/s
ROG Ally16 GB LPDDR5-64003.69 GiBFits17–26 tok/s
Steam Deck LCD16 GB LPDDR5-55003.69 GiBFits15–23 tok/s
Steam Deck OLED16 GB LPDDR5-64003.69 GiBFits17–26 tok/s
Apple M3 Pro, 18 GB18 GB unified3.69 GiBFits25–39 tok/s
Radeon RX 7900 XT20 GB GDDR63.69 GiBFits136–206 tok/s
Apple M2, 24 GB24 GB unified3.69 GiBFits17–26 tok/s
Apple M3, 24 GB24 GB unified3.69 GiBFits17–26 tok/s
Apple M4 Pro, 24 GB24 GB unified3.69 GiBFits46–70 tok/s
Apple M4, 24 GB24 GB unified3.69 GiBFits20–31 tok/s
GeForce RTX 309024 GB GDDR3.69 GiBFits159–241 tok/s
GeForce RTX 409024 GB GDDR3.69 GiBFits171–260 tok/s
Radeon RX 7900 XTX24 GB GDDR63.69 GiBFits163–247 tok/s
ROG Ally X24 GB LPDDR5X-75003.69 GiBFits20–31 tok/s
Apple M1 Max, 32 GB32 GB unified3.69 GiBFits68–103 tok/s
Apple M1 Pro, 32 GB32 GB unified3.69 GiBFits34–52 tok/s
Apple M2 Max, 32 GB32 GB unified3.69 GiBFits68–103 tok/s
Apple M2 Pro, 32 GB32 GB unified3.69 GiBFits34–52 tok/s
Apple M4, 32 GB32 GB unified3.69 GiBFits20–31 tok/s
GeForce RTX 509032 GB GDDR3.69 GiBFits304–461 tok/s
Apple M3 Pro, 36 GB36 GB unified3.69 GiBFits25–39 tok/s
Apple M4 Max 14-core, 36 GB36 GB unified3.69 GiBFits70–106 tok/s
Apple M3 Max 16-core, 48 GB48 GB unified3.69 GiBFits68–103 tok/s
Apple M4 Max 16-core, 48 GB48 GB unified3.69 GiBFits93–141 tok/s
Apple M4 Pro, 48 GB48 GB unified3.69 GiBFits46–70 tok/s
Apple M1 Max, 64 GB64 GB unified3.69 GiBFits68–103 tok/s
Apple M2 Max, 64 GB64 GB unified3.69 GiBFits68–103 tok/s
Apple M3 Max 16-core, 64 GB64 GB unified3.69 GiBFits68–103 tok/s
Apple M4 Max 16-core, 64 GB64 GB unified3.69 GiBFits93–141 tok/s
Apple M4 Pro, 64 GB64 GB unified3.69 GiBFits46–70 tok/s
Apple M2 Max, 96 GB96 GB unified3.69 GiBFits68–103 tok/s
Apple M3 Max 16-core, 128 GB128 GB unified3.69 GiBFits68–103 tok/s
Apple M4 Max 16-core, 128 GB128 GB unified3.69 GiBFits93–141 tok/s

FAQ

Why Q4_K_M?

Q4_K_M is the quant this page recommends. The file is gemma-4-E2B-it-Q4_K_M.gguf at 2.89 GiB. Other single-file quants are in the table when a real size was available.

Where do the architecture numbers come from?

Official text_config: layer_types, sliding_window, head_dim, global_head_dim, num_key_value_heads, num_global_key_value_heads. Source: https://huggingface.co/google/gemma-4-E2B-it/raw/main/config.json

Does this include a long context?

The fit uses 8,192 tokens, or less when that is all the fast memory can hold. The model file allows up to 131,072 tokens, and KV cache grows as you use more of that.

What is the Ollama command?

ollama run gemma4:e2b. The library tag is Q4-class or the vendor quant. Compare it with the GGUF linked on this page before you treat the sizes as identical.

Does this include image input?

No. Weight memory is the cited language-model GGUF. A separate vision projector, when one exists, needs more memory.