z-lab · text

gemma-4-26B-A4B-it-DFlash

z-lab/gemma-4-26B-A4B-it-DFlash

gemma-4-26B-A4B-it-DFlash at Q4_K_M is exactly 266,221,536 bytes (0.25 GiB / 0.27 GB) — an effective 4.957 bits per weight, not the nominal 4. Its KV cache at 32K is 0.16 GiB, not the 0.63 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
430M
Architecture
dflash
5 layers
Context
262,144
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.16 GiB174,196,7043.243Anbeeld
Q3_K_M0.21 GiB221,370,3364.122Anbeeld
IQ4_XS0.23 GiB246,431,8084.588williamliao
Q4_K_M0.25 GiB266,221,5364.957Alittlehammmer
Q4_K_M0.25 GiB267,270,2084.976williamliao
Q4_K_M0.25 GiB267,271,1364.976Anbeeld
Q5_K0.29 GiB315,242,4645.869Alittlehammmer
Q5_K_M0.29 GiB316,291,1365.889williamliao
Q5_K_M0.29 GiB316,292,0645.889Anbeeld
Q6_K0.34 GiB367,327,2006.839Alittlehammmer
Q6_K0.34 GiB368,375,8726.859williamliao
Q6_K0.34 GiB368,376,8006.859Anbeeld
Q8_00.44 GiB471,384,0328.776Alittlehammmer
Q8_00.44 GiB472,432,7048.796williamliao
Q8_00.44 GiB472,433,6328.796Anbeeld
BF160.81 GiB874,184,67216.276Alittlehammmer
F160.82 GiB875,233,34416.295williamliao
BF160.82 GiB875,234,27216.295Anbeeld

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.05 GiB0.08 GiB1.43×1 / 4 / 0
8,1920.07 GiB0.16 GiB2.22×1 / 4 / 0
16,3840.10 GiB0.31 GiB3.08×1 / 4 / 0
32,7680.16 GiB0.63 GiB3.81×1 / 4 / 0
65,5360.29 GiB1.25 GiB4.32×1 / 4 / 0
131,0720.54 GiB2.50 GiB4.64×1 / 4 / 0

4 of 5 layers cache only a 2,048-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.23 GiB. The real file is 0.25 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.63 GiB at 32K context where the real figure is 0.16 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
5
Attention heads
32
KV heads
8
Head dim
128
Hidden size
2816
Vocab
262,144
Sliding window
2048
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
true

Questions people ask

How much VRAM does gemma-4-26B-A4B-it-DFlash need?
Q4_K_M is exactly 266,221,536 bytes (0.25 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-26B-A4B-it-DFlash's KV cache?
0.16 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-26B-A4B-it-DFlash 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.