google · vision language

gemma-3n-E2B-it

google/gemma-3n-E2B-it

gemma-3n-E2B-it at Q4_K_M is exactly 2,787,806,304 bytes (2.60 GiB / 2.79 GB) — an effective 4.100 bits per weight, not the nominal 4. Its KV cache at 32K is 0.42 GiB, not the 1.88 GiB a flat formula predicts.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.76 GiB1,887,882,3362.777bartowski
UD-IQ2_XXS1.91 GiB2,053,426,5283.020unsloth
IQ3_XS2.02 GiB2,170,211,4243.192bartowski
UD-IQ2_M2.04 GiB2,188,660,0643.219unsloth
Q3_K_S2.06 GiB2,209,582,1763.250bartowski
Q2_K2.07 GiB2,221,329,7603.267unsloth
Q2_K_L2.07 GiB2,221,329,7603.267unsloth
IQ3_M2.08 GiB2,237,156,4483.290bartowski
Q3_K_M2.14 GiB2,299,677,7923.382bartowski
UD-IQ3_XXS2.16 GiB2,324,114,7843.418unsloth
Q3_K_L2.22 GiB2,379,893,8563.500bartowski
Q3_K_S2.23 GiB2,393,083,2323.520unsloth
Q3_K_M2.31 GiB2,483,178,8483.652unsloth
IQ4_XS2.43 GiB2,607,467,6163.835bartowski
Q4_02.54 GiB2,726,612,0644.010bartowski
IQ4_NL2.54 GiB2,727,398,4964.011bartowski
Q4_K_S2.54 GiB2,730,282,0804.016bartowski
Q4_K_M2.60 GiB2,787,806,3044.100bartowski
IQ4_XS2.71 GiB2,909,785,4404.279unsloth
Q4_12.76 GiB2,965,294,1764.361bartowski
Q4_02.76 GiB2,965,687,6484.362unsloth
IQ4_NL2.76 GiB2,966,474,0804.363unsloth
Q4_K_S2.77 GiB2,969,357,6644.367unsloth
Q4_K_M2.82 GiB3,026,881,8884.452unsloth
Q4_12.87 GiB3,078,540,6404.528unsloth
Q5_K_S2.99 GiB3,207,122,0164.717bartowski
Q5_K_M3.02 GiB3,240,266,8484.766bartowski
Q5_K_S3.04 GiB3,261,648,2244.797unsloth
Q5_K_M3.07 GiB3,294,793,0564.846unsloth
Q2_K_L3.26 GiB3,496,397,9205.142bartowski
Q6_K3.47 GiB3,721,006,1765.473bartowski
Q4_K_L3.65 GiB3,924,462,6885.772bartowski
Q5_K_L3.84 GiB4,125,264,9926.067bartowski
Q6_K3.92 GiB4,208,594,2726.190unsloth
Q6_K_L4.04 GiB4,338,617,4406.381bartowski
Q8_04.46 GiB4,788,112,0647.042ggml-org
Q8_04.46 GiB4,788,112,4807.042bartowski
Q8_04.46 GiB4,788,112,7367.042unsloth
F168.31 GiB8,918,846,14413.117ggml-org
F168.31 GiB8,918,846,56013.117unsloth

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.09 GiB0.23 GiB2.50×6 / 24 / 0
8,1920.14 GiB0.47 GiB3.33×6 / 24 / 0
16,3840.23 GiB0.94 GiB4.00×6 / 24 / 0
32,7680.42 GiB1.88 GiB4.44×6 / 24 / 0
65,5360.80 GiB3.75 GiB4.71×6 / 24 / 0
131,0721.55 GiB7.50 GiB4.85×6 / 24 / 0

24 of 30 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 2.85 GiB. The real file is 2.60 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 1.88 GiB at 32K context where the real figure is 0.42 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from mirror:unsloth/gemma-3n-E2B-it
Layers
30
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-E2B-it need?
Q4_K_M is exactly 2,787,806,304 bytes (2.60 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-E2B-it's KV cache?
0.42 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-E2B-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.