THUDM · text

GLM-4-32B-0414

THUDM/GLM-4-32B-0414

GLM-4-32B-0414 at Q4_K_M is exactly 19,680,022,112 bytes (18.33 GiB / 19.68 GB) — an effective 4.835 bits per weight, not the nominal 4. Its KV cache at 32K is 1.91 GiB.

From the file· summed from 1 file(s)From the file· KV from mirror (mirror:unsloth/GLM-4-32B-0414)
Parameters
32.6B
Architecture
glm4
61 layers
Context
32,768
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S7.17 GiB7,697,527,1041.891unsloth
UD-IQ1_M7.71 GiB8,282,558,7842.035unsloth
UD-IQ2_XXS8.63 GiB9,264,431,4242.276unsloth
IQ2_XS9.22 GiB9,900,875,6482.432bartowski
IQ2_S9.70 GiB10,419,896,1922.560bartowski
IQ2_M10.50 GiB11,273,420,6722.769bartowski
UD-IQ2_M10.68 GiB11,471,479,1042.818unsloth
Q2_K11.45 GiB12,292,255,6163.020bartowski
Q2_K11.45 GiB12,292,256,0643.020unsloth
Q2_K_L11.65 GiB12,510,490,9443.073unsloth
IQ3_XXS11.91 GiB12,784,107,3923.140bartowski
UD-IQ3_XXS12.06 GiB12,951,789,8883.182unsloth
Q2_K_L12.29 GiB13,201,567,6163.243bartowski
IQ3_XS12.72 GiB13,661,519,7443.356bartowski
Q3_K_S13.38 GiB14,371,680,1283.530bartowski
Q3_K_S13.38 GiB14,371,680,5763.530unsloth
IQ3_M13.80 GiB14,821,851,0083.641bartowski
Q3_K_M14.80 GiB15,890,562,9443.904bartowski
Q3_K_M14.80 GiB15,890,563,3923.904unsloth
Q3_K_L16.03 GiB17,216,290,4004.229lmstudio-community
Q3_K_L16.03 GiB17,216,290,6884.229bartowski
IQ4_XS16.39 GiB17,599,442,8164.323bartowski
IQ4_XS16.42 GiB17,628,541,2484.330unsloth
IQ4_NL17.31 GiB18,584,989,5684.566bartowski
IQ4_NL17.31 GiB18,584,990,0164.566unsloth
Q4_017.36 GiB18,634,928,0004.578bartowski
Q4_017.36 GiB18,634,928,4484.578unsloth
Q4_K_S17.41 GiB18,697,645,9524.593bartowski
Q4_K_S17.41 GiB18,697,646,4004.593unsloth
Q4_K_M18.33 GiB19,680,022,1124.835lmstudio-community
Q4_K_M18.33 GiB19,680,022,4004.835bartowski
Q4_K_M18.33 GiB19,680,022,8484.835unsloth
Q4_K_L18.97 GiB20,371,099,5205.004bartowski
Q4_119.14 GiB20,550,086,5285.048bartowski
Q4_119.14 GiB20,550,086,9765.048unsloth
Q5_K_S20.98 GiB22,527,176,5765.534bartowski
Q5_K_S20.98 GiB22,527,177,0245.534unsloth
Q5_K_M21.51 GiB23,097,462,6565.674bartowski
Q5_K_M21.51 GiB23,097,463,1045.674unsloth
Q5_K_L22.05 GiB23,672,147,8405.815bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.24 GiB0.24 GiB61 / 0 / 0
8,1920.48 GiB0.48 GiB61 / 0 / 0
16,3840.95 GiB0.95 GiB61 / 0 / 0
32,7681.91 GiB1.91 GiB61 / 0 / 0
65,5363.81 GiB3.81 GiB61 / 0 / 0
131,0727.63 GiB7.63 GiB61 / 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 17.06 GiB. The real file is 18.33 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from mirror:unsloth/GLM-4-32B-0414
Layers
61
Attention heads
48
KV heads
2
Head dim
128
Hidden size
6144
Vocab
151,552
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does GLM-4-32B-0414 need?
Q4_K_M is exactly 19,680,022,112 bytes (18.33 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-32B-0414's KV cache?
1.91 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-32B-0414 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.