mlabonne · vision language

gemma-3-27b-it-abliterated

mlabonne/gemma-3-27b-it-abliterated

gemma-3-27b-it-abliterated at Q4_K_M is exactly 16,546,689,024 bytes (15.41 GiB / 16.55 GB) — an effective 4.825 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.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XS7.86 GiB8,438,904,1922.461bartowski
IQ2_S8.18 GiB8,782,409,0882.561bartowski
IQ2_M8.84 GiB9,493,073,2802.768bartowski
Q2_K9.78 GiB10,503,720,9603.063bartowski
Q2_K9.78 GiB10,503,721,1523.063mradermacher
IQ3_XXS9.98 GiB10,716,478,8483.125bartowski
Q2_K_L10.10 GiB10,845,115,7763.163bartowski
IQ3_XS10.77 GiB11,562,233,8563.372bartowski
Q3_K_S11.33 GiB12,167,614,4643.548bartowski
Q3_K_S11.33 GiB12,167,614,6563.548mradermacher
IQ3_M11.69 GiB12,547,074,0483.659bartowski
Q3_K_M12.51 GiB13,437,640,7043.919bartowski
Q3_K_M12.51 GiB13,437,640,8963.919mradermacher
Q3_K_L13.54 GiB14,543,462,4004.241bartowski
Q3_K_L13.54 GiB14,543,462,5924.241mradermacher
IQ4_XS13.75 GiB14,767,448,0644.307bartowski
IQ4_XS13.87 GiB14,893,891,7764.343mradermacher
IQ4_NL14.50 GiB15,567,396,8644.540bartowski
Q4_014.55 GiB15,617,974,2724.555bartowski
Q4_K_S14.60 GiB15,674,056,7044.571bartowski
Q4_K_S14.60 GiB15,674,056,8964.571mradermacher
Q4_K_M15.41 GiB16,546,689,0244.825bartowski
Q4_K_M15.41 GiB16,546,689,2164.825mradermacher
Q4_K_L15.73 GiB16,888,083,8404.925bartowski
Q4_115.99 GiB17,167,294,4645.006bartowski
Q5_K_S17.48 GiB18,767,192,0645.473bartowski
Q5_K_S17.48 GiB18,767,192,2565.473mradermacher
Q5_K_M17.95 GiB19,271,675,9045.620bartowski
Q5_K_M17.95 GiB19,271,676,0965.620mradermacher
Q5_K_L18.27 GiB19,613,070,7205.720bartowski
Q6_K20.64 GiB22,166,974,4646.465bartowski
Q6_K20.64 GiB22,166,974,6566.465mradermacher
Q6_K_L20.96 GiB22,508,369,2806.564bartowski
Q8_026.74 GiB28,707,972,4808.372bartowski
Q8_026.74 GiB28,707,972,6728.372mradermacher
BF162 shards50.32 GiB54,027,964,70415.756bartowski

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 Q4_K_M at roughly 14.37 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

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

Questions people ask

How much VRAM does gemma-3-27b-it-abliterated need?
Q4_K_M is exactly 16,546,689,024 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 gemma-3-27b-it-abliterated'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 gemma-3-27b-it-abliterated 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.