Gemma-4-31B-StyleTune
Gryphe/Gemma-4-31B-StyleTuneGemma-4-31B-StyleTune at Q4_K_M is exactly 20,391,212,064 bytes (18.99 GiB / 20.39 GB) — an effective 4.991 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 |
|---|---|---|---|---|---|
| I1-IQ1_S | 7.10 GiB | 7,618,911,712 | 1.865 | — | mradermacher |
| I1-IQ1_M | 7.63 GiB | 8,188,294,624 | 2.004 | — | mradermacher |
| I1-IQ2_XXS | 8.51 GiB | 9,137,266,144 | 2.237 | — | mradermacher |
| IQ2_S | 9.01 GiB | 9,675,424,832 | 2.368 | — | densenet |
| I1-IQ2_XS | 9.31 GiB | 9,992,781,280 | 2.446 | — | mradermacher |
| I1-IQ2_S | 10.02 GiB | 10,763,441,632 | 2.635 | — | mradermacher |
| IQ2_XXS | 10.52 GiB | 11,292,611,616 | 2.764 | — | bartowski |
| I1-Q2_K_S | 10.65 GiB | 11,439,011,296 | 2.800 | — | mradermacher |
| I1-IQ2_M | 10.73 GiB | 11,522,618,848 | 2.821 | — | mradermacher |
| IQ2_XS | 11.14 GiB | 11,963,364,384 | 2.928 | — | bartowski |
| I1-Q2_K | 11.53 GiB | 12,378,736,096 | 3.030 | — | mradermacher |
| IQ3_XXS | 11.74 GiB | 12,604,785,696 | 3.085 | — | densenet |
| IQ2_S | 11.81 GiB | 12,680,909,856 | 3.104 | — | bartowski |
| I1-IQ3_XXS | 11.81 GiB | 12,683,060,704 | 3.105 | — | mradermacher |
| Q2_K | 12.19 GiB | 13,094,044,704 | 3.205 | — | bartowski |
| IQ3_S | 12.22 GiB | 13,125,870,656 | 3.213 | — | densenet |
| IQ2_M | 12.34 GiB | 13,255,324,704 | 3.245 | — | bartowski |
| IQ3_XXS | 12.65 GiB | 13,587,260,448 | 3.326 | — | bartowski |
| I1-IQ3_XS | 12.74 GiB | 13,677,921,760 | 3.348 | — | mradermacher |
| I1-IQ3_S | 13.38 GiB | 14,366,909,920 | 3.517 | — | mradermacher |
| I1-Q3_K_S | 13.38 GiB | 14,366,909,920 | 3.517 | — | mradermacher |
| IQ3_XS | 13.45 GiB | 14,446,904,352 | 3.536 | — | bartowski |
| Q2_K_L | 13.48 GiB | 14,470,300,704 | 3.542 | — | bartowski |
| Q3_K_S | 13.91 GiB | 14,934,615,072 | 3.656 | — | bartowski |
| I1-IQ3_M | 14.00 GiB | 15,030,050,272 | 3.679 | — | mradermacher |
| IQ3_M | 14.65 GiB | 15,735,381,024 | 3.852 | — | bartowski |
| I1-Q3_K_M | 14.80 GiB | 15,892,661,728 | 3.890 | — | mradermacher |
| Q3_K_M | 15.39 GiB | 16,523,674,656 | 4.045 | — | bartowski |
| I1-Q3_K_L | 16.05 GiB | 17,233,823,200 | 4.218 | — | mradermacher |
| IQ4_NL | 16.09 GiB | 17,273,906,208 | 4.228 | — | densenet |
| Q3_K_L | 16.22 GiB | 17,416,176,672 | 4.263 | — | bartowski |
| I1-IQ4_XS | 16.28 GiB | 17,484,473,824 | 4.280 | — | mradermacher |
| IQ4_XS | 16.67 GiB | 17,904,575,520 | 4.383 | — | bartowski |
| I1-Q4_0 | 17.22 GiB | 18,494,301,664 | 4.527 | — | mradermacher |
| I1-Q4_K_S | 17.28 GiB | 18,555,889,120 | 4.542 | — | mradermacher |
| IQ4_NL | 17.53 GiB | 18,818,409,504 | 4.606 | — | bartowski |
| Q4_0 | 17.57 GiB | 18,868,986,912 | 4.619 | — | bartowski |
| Q4_K_S | 17.68 GiB | 18,988,377,120 | 4.648 | — | bartowski |
| I1-Q4_K_M | 18.14 GiB | 19,479,786,976 | 4.768 | — | mradermacher |
| Q5_K | 18.17 GiB | 19,513,590,848 | 4.777 | — | densenet |
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 17.12 GiB. The real file is 18.99 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-StyleTune need?
- Q4_K_M is exactly 20,391,212,064 bytes (18.99 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-StyleTune'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-StyleTune 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.