google · vision language

gemma-3n-E4B-it

google/gemma-3n-E4B-it

gemma-3n-E4B-it at Q4_K_M is exactly 4,237,064,064 bytes (3.95 GiB / 4.24 GB) — an effective 4.318 bits per weight, not the nominal 4. Its KV cache at 32K is 0.49 GiB, not the 2.19 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV from mirror (mirror:unsloth/gemma-3n-E4B-it)
Parameters
7.8B
Architecture
gemma3n
35 layers
Context
32,768
native (config.json)
License
gemma

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K2.57 GiB2,757,318,5282.810bartowski
UD-IQ2_XXS2.64 GiB2,830,964,8642.885unsloth
UD-IQ2_M2.89 GiB3,105,929,3443.165unsloth
IQ3_XS2.95 GiB3,166,394,2403.227bartowski
Q2_K2.97 GiB3,190,380,6723.251unsloth
Q2_K_L2.97 GiB3,190,380,6723.251unsloth
Q3_K_S3.03 GiB3,251,910,5283.314bartowski
IQ3_M3.07 GiB3,294,107,5203.357bartowski
UD-IQ3_XXS3.12 GiB3,349,244,0323.413unsloth
Q3_K_M3.20 GiB3,440,908,1603.507bartowski
Q3_K_S3.26 GiB3,500,947,5843.568unsloth
Q3_K_L3.35 GiB3,601,995,6483.671bartowski
Q3_K_M3.44 GiB3,689,945,2163.760unsloth
IQ4_XS3.63 GiB3,895,023,4883.970bartowski
IQ4_NL3.81 GiB4,089,993,0884.168bartowski
Q4_03.81 GiB4,093,794,1764.172bartowski
Q4_K_S3.82 GiB4,102,707,0724.181bartowski
Q4_K_M3.95 GiB4,237,064,0644.318bartowski
IQ4_XS3.98 GiB4,271,954,0484.354unsloth
IQ4_NL4.09 GiB4,391,983,2324.476unsloth
Q4_04.09 GiB4,395,784,3204.480unsloth
Q4_K_S4.10 GiB4,404,697,2164.489unsloth
Q4_14.17 GiB4,477,638,5284.563bartowski
Q4_K_M4.23 GiB4,539,054,2084.626unsloth
Q2_K_L4.30 GiB4,612,249,4724.700bartowski
Q4_14.31 GiB4,632,828,0324.721unsloth
Q5_K_S4.54 GiB4,869,871,4884.963bartowski
Q5_K_S4.61 GiB4,945,369,2165.040unsloth
Q5_K_M4.61 GiB4,947,998,5925.043bartowski
Q5_K_M4.68 GiB5,023,496,3205.120unsloth
Q4_K_L5.16 GiB5,541,492,6085.647bartowski
Q6_K5.31 GiB5,703,366,5285.812bartowski
Q5_K_L5.55 GiB5,958,825,8566.073bartowski
Q6_K5.84 GiB6,272,219,2646.392unsloth
Q6_K_L5.96 GiB6,402,242,4326.525bartowski
Q8_06.85 GiB7,353,292,6727.494bartowski
Q8_06.85 GiB7,353,292,9287.494unsloth
F1612.80 GiB13,740,103,55214.003unsloth

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.11 GiB0.27 GiB2.50×7 / 28 / 0
8,1920.16 GiB0.55 GiB3.33×7 / 28 / 0
16,3840.27 GiB1.09 GiB4.00×7 / 28 / 0
32,7680.49 GiB2.19 GiB4.44×7 / 28 / 0
65,5360.93 GiB4.38 GiB4.71×7 / 28 / 0
131,0721.80 GiB8.75 GiB4.85×7 / 28 / 0

28 of 35 layers cache only a 512-token window rather than the full context, on a period of . Figures assume the default configuration; --swa-full disables the saving entirely.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 4.11 GiB. The real file is 3.95 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 2.19 GiB at 32K context where the real figure is 0.49 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from mirror:unsloth/gemma-3n-E4B-it
Layers
35
Attention heads
8
KV heads
2
Head dim
256
Hidden size
2048
Vocab
262,400
Sliding window
512
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-3n-E4B-it need?
Q4_K_M is exactly 4,237,064,064 bytes (3.95 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is gemma-3n-E4B-it's KV cache?
0.49 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of gemma-3n-E4B-it should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.