Muhammadidrees · text

Medgamma27B

Muhammadidrees/Medgamma27B

Medgamma27B at I1-IQ1_S is exactly 6,264,009,952 bytes (5.83 GiB / 6.26 GB) — an effective 1.855 bits per weight, not the nominal 1. Its KV cache at 32K is 3.11 GiB, not the 15.50 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
27.0B
Architecture
gemma3
62 layers
Context
131,072
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S5.83 GiB6,264,009,9521.855mradermacher
I1-IQ1_M6.33 GiB6,797,008,0962.013mradermacher
I1-IQ2_XXS7.16 GiB7,685,338,3362.276mradermacher
I1-IQ2_XS7.86 GiB8,438,666,4642.499mradermacher
I1-IQ2_S8.18 GiB8,782,171,3602.601mradermacher
I1-IQ2_M8.84 GiB9,492,835,5522.812mradermacher
I1-Q2_K_S9.09 GiB9,757,162,7202.890mradermacher
I1-Q2_K9.78 GiB10,503,437,5363.111mradermacher
I1-IQ3_XXS9.98 GiB10,716,241,1203.174mradermacher
I1-IQ3_XS10.77 GiB11,561,950,4323.425mradermacher
I1-Q3_K_S11.33 GiB12,167,331,0403.604mradermacher
I1-IQ3_S11.33 GiB12,167,331,0403.604mradermacher
I1-IQ3_M11.69 GiB12,546,790,6243.716mradermacher
I1-Q3_K_M12.51 GiB13,437,357,2803.980mradermacher
I1-Q3_K_L13.54 GiB14,543,178,9764.308mradermacher
I1-IQ4_XS13.75 GiB14,767,164,6404.374mradermacher
I1-Q4_014.55 GiB15,617,690,8484.626mradermacher
I1-Q4_K_S14.60 GiB15,673,773,2804.643mradermacher
I1-Q4_K_M15.41 GiB16,546,405,6004.901mradermacher
I1-Q4_115.99 GiB17,167,011,0405.085mradermacher
I1-Q5_K_S17.48 GiB18,766,908,6405.559mradermacher
I1-Q5_K_M17.95 GiB19,271,392,4805.708mradermacher
I1-Q6_K20.64 GiB22,166,691,0406.566mradermacher

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.92 GiB1.94 GiB2.10×10 / 52 / 0
8,1921.23 GiB3.88 GiB3.14×10 / 52 / 0
16,3841.86 GiB7.75 GiB4.17×10 / 52 / 0
32,7683.11 GiB15.50 GiB4.98×10 / 52 / 0
65,5365.61 GiB31.00 GiB5.53×10 / 52 / 0
131,07210.61 GiB62.00 GiB5.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

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 I1-IQ1_S at roughly 14.15 GiB. The real file is 5.83 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

from config.json
Layers
62
Attention heads
32
KV heads
16
Head dim
128
Hidden size
5376
Vocab
262,144
Sliding window
1024
SWA period
6
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Medgamma27B need?
I1-IQ1_S is exactly 6,264,009,952 bytes (5.83 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Medgamma27B'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 Medgamma27B 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.