openai-community · text

gpt2

openai-community/gpt2

gpt2 at Q4_K_M is exactly 112,858,624 bytes (0.11 GiB / 0.11 GB) — an effective 6.589 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
137M
Architecture
gpt2
12 layers
Context
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S0.06 GiB61,952,0643.617mradermacher
I1-IQ1_M0.06 GiB63,721,5363.720mradermacher
I1-IQ2_XXS0.06 GiB66,670,6563.893mradermacher
I1-IQ2_XS0.06 GiB69,251,1364.043mradermacher
I1-IQ2_S0.07 GiB74,406,1444.344mradermacher
I1-IQ2_M0.07 GiB76,765,4404.482mradermacher
Q2_K0.08 GiB81,196,2884.741QuantFactory
Q2_K0.08 GiB81,196,5124.741PrunaAI
I1-Q2_K0.08 GiB81,197,1844.741mradermacher
I1-IQ3_XXS0.08 GiB81,373,4404.751mradermacher
I1-IQ3_XS0.08 GiB89,153,8565.205mradermacher
Q3_K_S0.08 GiB90,148,2885.263QuantFactory
Q3_K_S0.08 GiB90,148,5125.263PrunaAI
I1-IQ3_S0.08 GiB90,149,1845.263mradermacher
I1-Q3_K_S0.08 GiB90,149,1845.263mradermacher
I1-IQ3_M0.09 GiB94,222,6565.501mradermacher
Q3_K_M0.09 GiB97,668,5445.702QuantFactory
Q3_K_M0.09 GiB97,668,7685.702PrunaAI
I1-Q3_K_M0.09 GiB97,669,4405.702mradermacher
Q3_K_L0.10 GiB102,092,2245.961QuantFactory
Q3_K_L0.10 GiB102,092,4485.961PrunaAI
I1-Q3_K_L0.10 GiB102,093,1205.961mradermacher
I1-IQ4_XS0.10 GiB102,695,3925.996mradermacher
Q4_00.10 GiB106,554,8806.221QuantFactory
Q4_00.10 GiB106,555,1046.221PrunaAI
I1-Q4_00.10 GiB106,703,2326.230mradermacher
Q4_K_S0.10 GiB106,849,7926.238QuantFactory
Q4_K_S0.10 GiB106,850,0166.238PrunaAI
I1-Q4_K_S0.10 GiB106,850,6886.238mradermacher
Q4_K_M0.11 GiB112,858,6246.589QuantFactory
Q4_K_M0.11 GiB112,858,8486.589PrunaAI
I1-Q4_K_M0.11 GiB112,859,5206.589mradermacher
Q4_10.11 GiB114,275,6166.672QuantFactory
Q4_10.11 GiB114,275,8406.672PrunaAI
Q5_K_S0.11 GiB121,996,3847.123QuantFactory
Q5_00.11 GiB121,996,3847.123QuantFactory
Q5_K_S0.11 GiB121,996,6087.123PrunaAI
Q5_00.11 GiB121,996,6087.123PrunaAI
I1-Q5_K_S0.11 GiB121,997,2807.123mradermacher
Q5_K_M0.12 GiB126,696,5447.397QuantFactory

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 0.07 GiB. The real file is 0.11 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
12
Attention heads
KV heads
Head dim
Hidden size
Vocab
50,257
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gpt2 need?
Q4_K_M is exactly 112,858,624 bytes (0.11 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Which quantization of gpt2 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.