medgemma-27b-text-it
google/medgemma-27b-text-itmedgemma-27b-text-it at Q4_K_M is exactly 16,546,404,416 bytes (15.41 GiB / 16.55 GB) — an effective 4.901 bits per weight, not the nominal 4. Its KV cache at 32K is 3.11 GiB, not the 15.50 GiB a flat formula predicts.
Shipped quantizations
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| UD-IQ1_S | 6.06 GiB | 6,506,101,760 | 1.927 | — | unsloth |
| UD-IQ1_M | 6.51 GiB | 6,986,501,120 | 2.069 | — | unsloth |
| UD-IQ2_XXS | 7.31 GiB | 7,850,015,744 | 2.325 | — | unsloth |
| UD-IQ2_M | 8.96 GiB | 9,624,267,776 | 2.851 | — | unsloth |
| Q2_K | 9.78 GiB | 10,503,437,312 | 3.111 | — | unsloth |
| Q2_K_L | 9.78 GiB | 10,503,437,312 | 3.111 | — | unsloth |
| UD-IQ3_XXS | 10.07 GiB | 10,809,783,296 | 3.202 | — | unsloth |
| Q3_K_S | 11.33 GiB | 12,167,330,816 | 3.604 | — | unsloth |
| Q3_K_M | 12.51 GiB | 13,437,357,056 | 3.980 | — | unsloth |
| Q3_K_L | 13.54 GiB | 14,543,177,792 | 4.308 | — | lmstudio-community |
| IQ4_XS | 13.75 GiB | 14,767,164,416 | 4.374 | — | unsloth |
| IQ4_NL | 14.50 GiB | 15,567,113,216 | 4.611 | — | unsloth |
| Q4_K_S | 14.60 GiB | 15,673,773,056 | 4.643 | — | unsloth |
| Q4_K_M | 15.41 GiB | 16,546,404,416 | 4.901 | — | lmstudio-community |
| Q4_K_M | 15.41 GiB | 16,546,405,376 | 4.901 | — | unsloth |
| Q4_1 | 15.99 GiB | 17,167,010,816 | 5.085 | — | unsloth |
| Q5_K_S | 17.48 GiB | 18,766,908,416 | 5.559 | — | unsloth |
| Q5_K_M | 17.95 GiB | 19,271,392,256 | 5.708 | — | unsloth |
| Q6_K | 20.64 GiB | 22,166,689,856 | 6.566 | — | lmstudio-community |
| Q6_K | 20.64 GiB | 22,166,690,432 | 6.566 | — | jmarxsen |
| Q6_K | 20.64 GiB | 22,166,690,816 | 6.566 | — | unsloth |
| Q8_0 | 26.74 GiB | 28,707,604,544 | 8.503 | — | lmstudio-community |
| Q8_0 | 26.74 GiB | 28,707,605,504 | 8.503 | — | unsloth |
| BF162 shards | 50.32 GiB | 54,027,275,232 | 16.003 | — | unsloth |
KV cache by context
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 0.92 GiB | 1.94 GiB | 2.10× | 10 / 52 / 0 |
| 8,192 | 1.23 GiB | 3.88 GiB | 3.14× | 10 / 52 / 0 |
| 16,384 | 1.86 GiB | 7.75 GiB | 4.17× | 10 / 52 / 0 |
| 32,768 | 3.11 GiB | 15.50 GiB | 4.98× | 10 / 52 / 0 |
| 65,536 | 5.61 GiB | 31.00 GiB | 5.53× | 10 / 52 / 0 |
| 131,072 | 10.61 GiB | 62.00 GiB | 5.84× | 10 / 52 / 0 |
52 of 62 layers cache only a 1,024-token window rather than the full context, on a period of 6. 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 14.15 GiB. The real file is 15.41 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 15.50 GiB at 32K context where the real figure is 3.11 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 medgemma-27b-text-it need?
- Q4_K_M is exactly 16,546,404,416 bytes (15.41 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
- How large is medgemma-27b-text-it's KV cache?
- 3.11 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 medgemma-27b-text-it 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.