byroneverson · text

glm-4-9b-chat-abliterated

byroneverson/glm-4-9b-chat-abliterated

glm-4-9b-chat-abliterated at Q4_K_M is exactly 6,250,927,200 bytes (5.82 GiB / 6.25 GB) — an effective 5.320 bits per weight, not the nominal 4. Its KV cache at 32K is 20.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
9.4B
Architecture
chatglm
40 layers
Context
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M3.66 GiB3,931,542,6243.346bartowski
Q2_K3.72 GiB3,991,901,2803.397bartowski
IQ3_XS4.13 GiB4,429,648,9923.770bartowski
Q3_K_S4.27 GiB4,587,426,9123.904bartowski
Q2_K_L4.28 GiB4,598,109,2803.913bartowski
IQ3_M4.48 GiB4,811,887,7124.095bartowski
Q3_K_M4.72 GiB5,064,332,3844.310bartowski
IQ4_XS4.89 GiB5,251,109,9844.469bartowski
Q3_K_L4.92 GiB5,281,453,1524.495bartowski
Q4_05.10 GiB5,472,851,0404.658bartowski
Q4_K_S5.36 GiB5,753,345,1204.896bartowski
Q4_K_M5.82 GiB6,250,927,2005.320bartowski
Q5_K_S6.23 GiB6,692,901,9845.696bartowski
Q4_K_L6.25 GiB6,711,645,2805.712bartowski
Q5_K_M6.65 GiB7,143,789,6646.080bartowski
Q5_K_L7.01 GiB7,526,913,1206.406bartowski
Q6_K7.69 GiB8,262,030,4327.032bartowski
Q6_K_L7.97 GiB8,562,709,6007.287bartowski
Q8_09.31 GiB9,994,998,8808.506bartowski
F1617.52 GiB18,806,969,15216.006bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0962.50 GiB2.50 GiB40 / 0 / 0
8,1925.00 GiB5.00 GiB40 / 0 / 0
16,38410.00 GiB10.00 GiB40 / 0 / 0
32,76820.00 GiB20.00 GiB40 / 0 / 0
65,53640.00 GiB40.00 GiB40 / 0 / 0
131,07280.00 GiB80.00 GiB40 / 0 / 0

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

Architecture

from config.json
Layers
40
Attention heads
32
KV heads
32
Head dim
128
Hidden size
4096
Vocab
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does glm-4-9b-chat-abliterated need?
Q4_K_M is exactly 6,250,927,200 bytes (5.82 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is glm-4-9b-chat-abliterated's KV cache?
20.00 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 glm-4-9b-chat-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.