jebcarter · text · mixture of experts

gemma-4-26b-a4b-heretic-styletune-v2-head

jebcarter/gemma-4-26b-a4b-heretic-styletune-v2-head

gemma-4-26b-a4b-heretic-styletune-v2-head at Q4_K_M is exactly 17,211,251,808 bytes (16.03 GiB / 17.21 GB) — an effective 5.336 bits per weight, not the nominal 4. Its KV cache at 32K is 1.54 GiB, not the 7.50 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
25.8B
total, not active
Architecture
gemma4
30 layers
Context
262,144
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S7.95 GiB8,532,492,1922.645mradermacher
I1-IQ1_M8.30 GiB8,910,878,1122.762mradermacher
I1-IQ2_XXS8.89 GiB9,541,521,3122.958mradermacher
I1-IQ2_XS9.37 GiB10,058,651,5523.118mradermacher
I1-IQ2_S9.49 GiB10,190,395,2963.159mradermacher
I1-IQ2_M9.96 GiB10,694,909,8563.316mradermacher
Q2_K10.08 GiB10,824,958,0483.356mradermacher
I1-Q2_K10.08 GiB10,824,958,3683.356mradermacher
I1-Q2_K_S10.12 GiB10,866,702,7523.369mradermacher
I1-IQ3_XXS10.84 GiB11,642,888,0963.609mradermacher
I1-IQ3_XS11.13 GiB11,953,261,9843.706mradermacher
Q3_K_S11.68 GiB12,539,603,5523.887mradermacher
I1-IQ3_S11.68 GiB12,539,603,8723.887mradermacher
I1-Q3_K_S11.68 GiB12,539,603,8723.887mradermacher
I1-IQ3_M11.84 GiB12,709,757,8563.940mradermacher
Q3_K_M12.67 GiB13,603,927,6484.217mradermacher
I1-Q3_K_M12.67 GiB13,603,927,9684.217mradermacher
Q3_K_L13.17 GiB14,141,682,2724.384mradermacher
I1-Q3_K_L13.17 GiB14,141,682,5924.384mradermacher
I1-IQ4_XS13.33 GiB14,309,893,5364.436mradermacher
IQ4_XS13.46 GiB14,455,976,0324.481mradermacher
I1-Q4_013.88 GiB14,903,292,3204.620mradermacher
Q4_K_S14.79 GiB15,880,061,0244.923mradermacher
I1-Q4_K_S14.79 GiB15,880,061,3444.923mradermacher
I1-Q4_115.30 GiB16,430,949,7925.094mradermacher
Q4_K_M16.03 GiB17,211,251,8085.336mradermacher
I1-Q4_K_M16.03 GiB17,211,252,1285.336mradermacher
Q5_K_S17.22 GiB18,494,243,9365.733mradermacher
I1-Q5_K_S17.22 GiB18,494,244,2565.733mradermacher
Q5_K_M18.29 GiB19,640,400,9926.089mradermacher
I1-Q5_K_M18.29 GiB19,640,401,3126.089mradermacher
Q6_K21.65 GiB23,243,951,7127.206mradermacher
I1-Q6_K21.65 GiB23,243,952,0327.206mradermacher
Q8_025.75 GiB27,644,193,8888.570mradermacher

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.45 GiB0.94 GiB2.09×5 / 25 / 0
8,1920.61 GiB1.88 GiB3.10×5 / 25 / 0
16,3840.92 GiB3.75 GiB4.09×5 / 25 / 0
32,7681.54 GiB7.50 GiB4.86×5 / 25 / 0
65,5362.79 GiB15.00 GiB5.37×5 / 25 / 0
131,0725.29 GiB30.00 GiB5.67×5 / 25 / 0

25 of 30 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_K_M at roughly 13.52 GiB. The real file is 16.03 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 7.50 GiB at 32K context where the real figure is 1.54 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
30
Attention heads
16
KV heads
8
Head dim
256
Hidden size
2816
Vocab
262,144
Sliding window
1024
SWA period
MLA
no
Experts
128
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-4-26b-a4b-heretic-styletune-v2-head need?
Q4_K_M is exactly 17,211,251,808 bytes (16.03 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-heretic-styletune-v2-head's KV cache?
1.54 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.
Is gemma-4-26b-a4b-heretic-styletune-v2-head a mixture-of-experts model?
Yes — 128 experts, null routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of gemma-4-26b-a4b-heretic-styletune-v2-head 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.