gemma-4-E4B-it-heretic
coder3101/gemma-4-E4B-it-hereticgemma-4-E4B-it-heretic at Q4_K_M is exactly 4,942,461,888 bytes (4.60 GiB / 4.94 GB) — an effective 4.945 bits per weight, not the nominal 4. Its KV cache at 32K is 0.51 GiB, not the 2.63 GiB a flat formula predicts.
Shipped quantizations
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| IQ2_M | 3.27 GiB | 3,514,090,432 | 3.516 | — | JMingo |
| IQ3_XXS | 3.43 GiB | 3,686,122,432 | 3.688 | — | JMingo |
| Q3_K_S | 3.58 GiB | 3,838,698,432 | 3.841 | — | JMingo |
| Q3_K_M | 3.75 GiB | 4,030,800,832 | 4.033 | — | JMingo |
| I1-Q2_K | 4.10 GiB | 4,401,316,640 | 4.403 | — | mradermacher |
| I1-Q3_K_S | 4.33 GiB | 4,654,633,760 | 4.657 | — | mradermacher |
| I1-IQ3_S | 4.34 GiB | 4,663,163,680 | 4.665 | — | mradermacher |
| IQ4_XS | 4.36 GiB | 4,680,983,488 | 4.683 | — | JMingo |
| I1-IQ3_M | 4.39 GiB | 4,714,691,360 | 4.717 | — | mradermacher |
| IQ4_NL | 4.47 GiB | 4,801,405,888 | 4.804 | — | JMingo |
| Q4_0 | 4.48 GiB | 4,805,010,368 | 4.807 | — | JMingo |
| Q4_K_S | 4.48 GiB | 4,813,857,728 | 4.816 | — | JMingo |
| Q3_K_M | 4.52 GiB | 4,850,391,008 | 4.853 | — | Abiray |
| I1-Q3_K_M | 4.52 GiB | 4,850,391,840 | 4.853 | — | mradermacher |
| Q4_K_M | 4.60 GiB | 4,942,461,888 | 4.945 | — | JMingo |
| I1-Q3_K_L | 4.68 GiB | 5,021,276,960 | 5.024 | — | mradermacher |
| Q4_1 | 4.69 GiB | 5,039,956,928 | 5.042 | — | JMingo |
| I1-IQ4_XS | 4.72 GiB | 5,070,951,200 | 5.073 | — | mradermacher |
| I1-IQ4_NL | 4.84 GiB | 5,193,954,080 | 5.197 | — | mradermacher |
| I1-Q4_0 | 4.84 GiB | 5,194,117,920 | 5.197 | — | mradermacher |
| I1-Q4_K_S | 4.85 GiB | 5,202,965,280 | 5.205 | — | mradermacher |
| Q4_K_M | 4.97 GiB | 5,335,285,728 | 5.338 | — | Abiray |
| I1-Q4_K_M | 4.97 GiB | 5,335,286,560 | 5.338 | — | mradermacher |
| Q5_K_S | 5.00 GiB | 5,366,981,568 | 5.370 | — | JMingo |
| I1-Q4_1 | 5.06 GiB | 5,435,945,760 | 5.439 | — | mradermacher |
| Q5_K_M | 5.07 GiB | 5,442,010,048 | 5.445 | — | JMingo |
| I1-Q5_K_S | 5.30 GiB | 5,685,965,600 | 5.689 | — | mradermacher |
| Q5_K_M | 5.37 GiB | 5,762,908,128 | 5.766 | — | Abiray |
| I1-Q5_K_M | 5.37 GiB | 5,762,908,960 | 5.766 | — | mradermacher |
| Q6_K | 5.79 GiB | 6,217,256,992 | 6.220 | — | Abiray |
| I1-Q6_K | 5.79 GiB | 6,217,257,760 | 6.220 | — | mradermacher |
| Q6_K | 6.55 GiB | 7,029,744,576 | 7.033 | — | JMingo |
| Q8_0 | 7.48 GiB | 8,031,236,128 | 8.035 | — | Abiray |
| Q8_0 | 7.58 GiB | 8,134,435,776 | 8.138 | — | JMingo |
| BF16 | 13.92 GiB | 14,942,970,592 | 14.950 | — | JMingo |
KV cache by context
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 0.12 GiB | 0.33 GiB | 2.67× | 7 / 35 / 0 |
| 8,192 | 0.18 GiB | 0.66 GiB | 3.69× | 7 / 35 / 0 |
| 16,384 | 0.29 GiB | 1.31 GiB | 4.57× | 7 / 35 / 0 |
| 32,768 | 0.51 GiB | 2.63 GiB | 5.19× | 7 / 35 / 0 |
| 65,536 | 0.94 GiB | 5.25 GiB | 5.57× | 7 / 35 / 0 |
| 131,072 | 1.82 GiB | 10.50 GiB | 5.77× | 7 / 35 / 0 |
35 of 42 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
Will it run on your card?
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 4.19 GiB. The real file is 4.60 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 2.63 GiB at 32K context where the real figure is 0.51 GiB, because most of this model's layers cache a fixed window rather than the whole context.
Architecture
Questions people ask
- How much VRAM does gemma-4-E4B-it-heretic need?
- Q4_K_M is exactly 4,942,461,888 bytes (4.60 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-heretic's KV cache?
- 0.51 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-heretic 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.