google · text

gemma-4-12B-it-qat-q4_0-unquantized-assistant

google/gemma-4-12B-it-qat-q4_0-unquantized-assistant

gemma-4-12B-it-qat-q4_0-unquantized-assistant at Q4_0 is exactly 322,913,920 bytes (0.30 GiB / 0.32 GB) — an effective 6.109 bits per weight, not the nominal 4. Its KV cache at 32K is 0.29 GiB, not the 1.00 GiB a flat formula predicts.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_00.30 GiB322,913,9206.109ysong21
Q8_00.43 GiB465,126,8808.800RachidAR
Q8_00.43 GiB465,127,0408.800Janvitos

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.07 GiB0.13 GiB1.88×1 / 3 / 0
8,1920.10 GiB0.25 GiB2.56×1 / 3 / 0
16,3840.16 GiB0.50 GiB3.12×1 / 3 / 0
32,7680.29 GiB1.00 GiB3.51×1 / 3 / 0
65,5360.54 GiB2.00 GiB3.74×1 / 3 / 0
131,0721.04 GiB4.00 GiB3.86×1 / 3 / 0

3 of 4 layers cache only a 1,024-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_0 at roughly 0.22 GiB. The real file is 0.30 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.00 GiB at 32K context where the real figure is 0.29 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
16
KV heads
8
Head dim
256
Hidden size
1024
Vocab
262,144
Sliding window
1024
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-4-12B-it-qat-q4_0-unquantized-assistant need?
Q4_0 is exactly 322,913,920 bytes (0.30 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-12B-it-qat-q4_0-unquantized-assistant's KV cache?
0.29 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-12B-it-qat-q4_0-unquantized-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.