trohrbaugh · text · mixture of experts

gemma-4-26B-A4B-it-heretic-ara-v2

trohrbaugh/gemma-4-26B-A4B-it-heretic-ara-v2

gemma-4-26B-A4B-it-heretic-ara-v2 at Q4_K_M is exactly 16,796,015,904 bytes (15.64 GiB / 16.80 GB) — an effective 5.207 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
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S7.72 GiB8,290,271,2962.570mradermacher
I1-IQ1_M8.07 GiB8,668,657,2162.687mradermacher
I1-IQ2_XXS8.66 GiB9,299,300,4162.883mradermacher
I1-IQ2_XS9.14 GiB9,816,430,6563.043mradermacher
I1-IQ2_S9.20 GiB9,873,201,2163.061mradermacher
I1-IQ2_M9.67 GiB10,377,715,7763.217mradermacher
Q2_K9.86 GiB10,582,737,1843.281mradermacher
I1-Q2_K9.86 GiB10,582,737,4723.281mradermacher
I1-Q2_K_S9.89 GiB10,624,481,8563.294mradermacher
I1-IQ3_XXS10.55 GiB11,325,694,0163.511mradermacher
I1-IQ3_XS10.84 GiB11,636,067,9043.607mradermacher
Q3_K_S11.38 GiB12,222,409,5043.789mradermacher
I1-Q3_K_S11.38 GiB12,222,409,7923.789mradermacher
I1-IQ3_S11.38 GiB12,222,409,7923.789mradermacher
I1-IQ3_M11.54 GiB12,392,563,7763.842mradermacher
Q3_K_M12.37 GiB13,286,733,6004.119mradermacher
I1-Q3_K_M12.37 GiB13,286,733,8884.119mradermacher
Q3_K_L12.88 GiB13,824,488,2244.286mradermacher
I1-Q3_K_L12.88 GiB13,824,488,5124.286mradermacher
I1-IQ4_XS12.96 GiB13,917,726,2724.315mradermacher
IQ4_XS13.10 GiB14,063,808,8004.360mradermacher
I1-Q4_013.49 GiB14,488,056,3844.491mradermacher
Q4_K_S14.40 GiB15,464,825,1204.794mradermacher
I1-Q4_K_S14.40 GiB15,464,825,4084.794mradermacher
I1-Q4_114.87 GiB15,969,576,5124.951mradermacher
Q4_K_M15.64 GiB16,796,015,9045.207mradermacher
I1-Q4_K_M15.64 GiB16,796,016,1925.207mradermacher
Q4_K_M16.51 GiB17,724,664,9285.495DavCd
Q5_K_S16.75 GiB17,986,733,3445.576mradermacher
I1-Q5_K_S16.75 GiB17,986,733,6325.576mradermacher
Q5_K_M17.82 GiB19,132,890,4005.931mradermacher
I1-Q5_K_M17.82 GiB19,132,890,6885.931mradermacher
Q5_K_M18.52 GiB19,881,585,7606.163DavCd
Q5_K20.13 GiB21,614,439,5206.701DavCd
Q6_K21.08 GiB22,638,399,2647.018mradermacher
I1-Q6_K21.08 GiB22,638,399,5527.018mradermacher
Q6_K21.58 GiB23,172,476,0007.184DavCd
Q8_025.02 GiB26,859,859,2328.327mradermacher

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 15.64 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-it-heretic-ara-v2 need?
Q4_K_M is exactly 16,796,015,904 bytes (15.64 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-heretic-ara-v2'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-it-heretic-ara-v2 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-it-heretic-ara-v2 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.