gemma-4-31B-it-SDFT-Heretic-RP
Ilya626/gemma-4-31B-it-SDFT-Heretic-RPgemma-4-31B-it-SDFT-Heretic-RP at Q4_K_M is exactly 19,598,483,616 bytes (18.25 GiB / 19.60 GB) — an effective 5.107 bits per weight, not the nominal 4. Its KV cache at 32K is 6.17 GiB, not the 30.00 GiB a flat formula predicts.
Shipped quantizations
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| IQ2_XXS | 10.09 GiB | 10,830,184,608 | 2.822 | — | bartowski |
| IQ2_XS | 10.71 GiB | 11,500,937,376 | 2.997 | — | bartowski |
| IQ2_S | 11.25 GiB | 12,075,352,224 | 3.147 | — | bartowski |
| Q2_K | 11.76 GiB | 12,631,617,696 | 3.292 | — | bartowski |
| IQ2_M | 11.78 GiB | 12,649,767,072 | 3.297 | — | bartowski |
| Q2_K_L | 12.08 GiB | 12,972,929,184 | 3.381 | — | bartowski |
| IQ3_XXS | 12.09 GiB | 12,981,702,816 | 3.383 | — | bartowski |
| IQ3_XS | 12.89 GiB | 13,841,346,720 | 3.607 | — | bartowski |
| Q3_K_S | 13.34 GiB | 14,329,057,440 | 3.734 | — | bartowski |
| IQ3_M | 14.09 GiB | 15,129,823,392 | 3.943 | — | bartowski |
| Q3_K_M | 14.82 GiB | 15,918,117,024 | 4.148 | — | bartowski |
| Q3_K_L | 15.66 GiB | 16,810,619,040 | 4.381 | — | bartowski |
| IQ4_XS | 15.98 GiB | 17,155,887,264 | 4.471 | — | bartowski |
| IQ4_NL | 16.79 GiB | 18,025,681,056 | 4.698 | — | bartowski |
| Q4_0 | 16.83 GiB | 18,076,258,464 | 4.711 | — | bartowski |
| Q4_K_S | 16.95 GiB | 18,195,648,672 | 4.742 | — | bartowski |
| Q4_K_M | 18.25 GiB | 19,598,483,616 | 5.107 | — | bartowski |
| Q4_1 | 18.41 GiB | 19,765,268,640 | 5.151 | — | bartowski |
| Q4_K_L | 18.57 GiB | 19,939,795,104 | 5.197 | — | bartowski |
| Q5_K_S | 20.03 GiB | 21,504,856,224 | 5.604 | — | bartowski |
| Q5_K_M | 21.06 GiB | 22,608,871,584 | 5.892 | — | bartowski |
| Q5_K_L | 21.37 GiB | 22,950,183,072 | 5.981 | — | bartowski |
| Q6_K | 24.89 GiB | 26,726,715,552 | 6.965 | — | bartowski |
| Q6_K_L | 25.21 GiB | 27,068,027,040 | 7.054 | — | bartowski |
| Q8_0 | 30.39 GiB | 32,635,670,688 | 8.505 | — | bartowski |
| BF162 shards | 57.20 GiB | 61,413,183,552 | 16.005 | — | bartowski |
KV cache by context
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 1.80 GiB | 3.75 GiB | 2.09× | 10 / 50 / 0 |
| 8,192 | 2.42 GiB | 7.50 GiB | 3.10× | 10 / 50 / 0 |
| 16,384 | 3.67 GiB | 15.00 GiB | 4.09× | 10 / 50 / 0 |
| 32,768 | 6.17 GiB | 30.00 GiB | 4.86× | 10 / 50 / 0 |
| 65,536 | 11.17 GiB | 60.00 GiB | 5.37× | 10 / 50 / 0 |
| 131,072 | 21.17 GiB | 120.00 GiB | 5.67× | 10 / 50 / 0 |
50 of 60 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
Will it run on your card?
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 16.08 GiB. The real file is 18.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 30.00 GiB at 32K context where the real figure is 6.17 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-31B-it-SDFT-Heretic-RP need?
- Q4_K_M is exactly 19,598,483,616 bytes (18.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-31B-it-SDFT-Heretic-RP's KV cache?
- 6.17 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-31B-it-SDFT-Heretic-RP 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.