zai-org · text

GLM-Z1-32B-0414

zai-org/GLM-Z1-32B-0414

GLM-Z1-32B-0414 at Q4_K_M is exactly 19,680,022,368 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 per layer
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,3921.891unsloth
UD-IQ1_M7.71 GiB8,282,559,0722.035unsloth
UD-IQ2_XXS8.63 GiB9,264,431,7122.276unsloth
IQ2_XS9.22 GiB9,900,875,9042.432bartowski
IQ2_S9.70 GiB10,419,896,4482.560bartowski
IQ2_M10.50 GiB11,273,420,9282.769bartowski
UD-IQ2_M10.67 GiB11,457,102,4322.814unsloth
Q2_K11.45 GiB12,292,255,8723.020bartowski
Q2_K11.45 GiB12,292,256,3523.020unsloth
Q2_K_L11.65 GiB12,510,491,2323.073unsloth
IQ3_XXS11.91 GiB12,784,107,6483.140bartowski
UD-IQ3_XXS12.06 GiB12,951,790,1763.182unsloth
Q2_K_L12.29 GiB13,201,567,8723.243bartowski
IQ3_XS12.72 GiB13,661,520,0003.356bartowski
Q3_K_S13.38 GiB14,371,680,3843.530bartowski
Q3_K_S13.38 GiB14,371,680,8643.530unsloth
IQ3_M13.80 GiB14,821,851,2643.641bartowski
Q3_K_M14.80 GiB15,890,563,2003.904bartowski
Q3_K_M14.80 GiB15,890,563,6803.904unsloth
Q3_K_L16.03 GiB17,216,290,6564.229lmstudio-community
Q3_K_L16.03 GiB17,216,290,9444.229bartowski
IQ4_XS16.39 GiB17,599,443,0724.323bartowski
IQ4_XS16.42 GiB17,628,541,5364.330unsloth
IQ4_NL17.31 GiB18,584,989,8244.566bartowski
IQ4_NL17.31 GiB18,584,990,3044.566unsloth
Q4_017.36 GiB18,634,928,2564.578bartowski
Q4_017.36 GiB18,634,928,7364.578unsloth
Q4_K_S17.41 GiB18,697,646,2084.593bartowski
Q4_K_S17.41 GiB18,697,646,6884.593unsloth
Q4_K_M18.33 GiB19,680,022,3684.835lmstudio-community
Q4_K_M18.33 GiB19,680,022,6564.835bartowski
Q4_K_M18.33 GiB19,680,023,1364.835unsloth
Q4_K_L18.97 GiB20,371,099,7765.004bartowski
Q4_119.14 GiB20,550,086,7845.048bartowski
Q4_119.14 GiB20,550,087,2645.048unsloth
Q5_K_S20.98 GiB22,527,176,8325.534bartowski
Q5_K_S20.98 GiB22,527,177,3125.534unsloth
Q5_K_M21.51 GiB23,097,462,9125.674bartowski
Q5_K_M21.51 GiB23,097,463,3925.674unsloth
Q5_K_L22.05 GiB23,672,148,0965.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 config.json
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-Z1-32B-0414 need?
Q4_K_M is exactly 19,680,022,368 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-Z1-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-Z1-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.