IlyaGusev · text

gemma-2-2b-it-abliterated

IlyaGusev/gemma-2-2b-it-abliterated

gemma-2-2b-it-abliterated at Q4_K_M is exactly 1,708,582,784 bytes (1.59 GiB / 1.71 GB) — an effective 5.228 bits per weight, not the nominal 4. Its KV cache at 32K is 1.85 GiB, not the 3.25 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
2.6B
Architecture
gemma2
26 layers
Context
8,192
native (config.json)
License
gemma

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.15 GiB1,229,830,2083.763mradermacher
IQ3_XS1.22 GiB1,314,211,9044.021mradermacher
Q3_K_S1.27 GiB1,360,660,5444.164mradermacher
IQ3_S1.27 GiB1,360,660,5444.164mradermacher
Q2_K_L1.28 GiB1,372,678,0164.200bartowski
IQ3_M1.30 GiB1,393,561,4724.264bartowski
IQ3_M1.30 GiB1,393,561,6644.264mradermacher
Q3_K_M1.36 GiB1,461,667,9044.473mradermacher
Q3_K_L1.44 GiB1,550,436,2244.744bartowski
Q3_K_L1.44 GiB1,550,436,4164.744mradermacher
IQ4_XS1.46 GiB1,566,250,8804.793bartowski
IQ4_XS1.47 GiB1,576,204,3524.823mradermacher
Q4_K_S1.53 GiB1,638,651,7765.014bartowski
Q4_K_S1.53 GiB1,638,651,9685.014mradermacher
Q4_K_M1.59 GiB1,708,582,7845.228bartowski
Q4_K_M1.59 GiB1,708,582,9765.228mradermacher
Q4_K_L1.72 GiB1,851,430,7845.665bartowski
Q5_K_S1.75 GiB1,882,544,0005.761bartowski
Q5_K_S1.75 GiB1,882,544,1925.761mradermacher
Q5_K_M1.79 GiB1,923,278,7205.885bartowski
Q5_K_M1.79 GiB1,923,278,9125.885mradermacher
Q5_K_L1.92 GiB2,066,126,7206.322bartowski
Q6_K2.00 GiB2,151,393,1526.583bartowski
Q6_K2.00 GiB2,151,393,3446.583mradermacher
Q6_K_L2.14 GiB2,294,241,1527.021bartowski
Q8_02.59 GiB2,784,495,4888.521bartowski
Q8_02.59 GiB2,784,495,6808.521mradermacher
F164.88 GiB5,235,214,40016.020mradermacher
F329.74 GiB10,463,413,85632.019bartowski

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.41 GiB0.41 GiB13 / 13 / 0
8,1920.63 GiB0.81 GiB1.28×13 / 13 / 0
16,3841.04 GiB1.63 GiB1.56×13 / 13 / 0
32,7681.85 GiB3.25 GiB1.75×13 / 13 / 0
65,5363.48 GiB6.50 GiB1.87×13 / 13 / 0
131,0726.73 GiB13.00 GiB1.93×13 / 13 / 0

13 of 26 layers cache only a 4,096-token window rather than the full context, on a period of 2. 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 1.37 GiB. The real file is 1.59 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 3.25 GiB at 32K context where the real figure is 1.85 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
26
Attention heads
8
KV heads
4
Head dim
256
Hidden size
2304
Vocab
256,000
Sliding window
4096
SWA period
2
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-2-2b-it-abliterated need?
Q4_K_M is exactly 1,708,582,784 bytes (1.59 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-2-2b-it-abliterated's KV cache?
1.85 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-2-2b-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.