google · text

gemma-4-E4B-it-assistant

google/gemma-4-E4B-it-assistant

gemma-4-E4B-it-assistant at Q4_K_M is exactly 77,231,200 bytes (0.07 GiB / 0.08 GB) — an effective 7.843 bits per weight, not the nominal 4. Its KV cache at 32K is 0.07 GiB, not the 0.25 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
79M
Architecture
gemma4-assistant
4 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_00.07 GiB76,960,6727.815matrixportalx
Q4_K_S0.07 GiB76,960,8647.815AtomicChat
Q4_K_M0.07 GiB77,231,2007.843AtomicChat
Q5_K_M0.07 GiB78,460,0007.968AtomicChat
Q6_K0.07 GiB79,765,4088.100matrixportalx
Q8_00.09 GiB98,653,08810.018matrixportalx
Q8_00.09 GiB98,653,28010.018AtomicChat
F160.16 GiB171,766,68817.443matrixportalx
F160.16 GiB171,766,88017.443AtomicChat

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.01 GiB0.03 GiB2.29×1 / 3 / 0
8,1920.02 GiB0.06 GiB2.91×1 / 3 / 0
16,3840.04 GiB0.13 GiB3.37×1 / 3 / 0
32,7680.07 GiB0.25 GiB3.66×1 / 3 / 0
65,5360.13 GiB0.50 GiB3.82×1 / 3 / 0
131,0720.26 GiB1.00 GiB3.91×1 / 3 / 0

3 of 4 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 0.04 GiB. The real file is 0.07 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 0.25 GiB at 32K context where the real figure is 0.07 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
4
Attention heads
4
KV heads
2
Head dim
256
Hidden size
256
Vocab
262,144
Sliding window
512
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-4-E4B-it-assistant need?
Q4_K_M is exactly 77,231,200 bytes (0.07 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-4-E4B-it-assistant's KV cache?
0.07 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-4-E4B-it-assistant 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.