zai-org · text · mixture of experts

GLM-4.6

zai-org/GLM-4.6

GLM-4.6 at Q4_K_M is exactly 215,582,633,056 bytes (200.78 GiB / 215.58 GB) — an effective 4.834 bits per weight, not the nominal 4. Its KV cache at 32K is 11.50 GiB.

From the file· summed from 5 file(s)From the file· KV per layer
Parameters
357B
total, not active
Architecture
glm4moe
92 layers
Context
202,752
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S2 shards71.07 GiB76,307,265,6961.711bartowski
IQ1_M2 shards74.10 GiB79,564,384,4161.784bartowski
UD-TQ1_078.36 GiB84,142,197,3121.887unsloth
IQ2_XXS3 shards82.26 GiB88,325,421,3441.980bartowski
UD-IQ1_S2 shards90.28 GiB96,941,378,3042.174unsloth
IQ2_XS3 shards94.10 GiB101,043,747,0722.266bartowski
IQ2_S3 shards94.86 GiB101,853,935,9042.284bartowski
UD-IQ1_M3 shards100.02 GiB107,395,558,3042.408unsloth
IQ3_XXS3 shards106.51 GiB114,366,151,0402.564ReadyArt
IQ2_M3 shards107.35 GiB115,262,171,3922.584bartowski
UD-IQ2_XXS3 shards107.48 GiB115,403,606,9442.588unsloth
UD-IQ2_M3 shards113.56 GiB121,930,992,5122.734unsloth
Q2_K4 shards118.51 GiB127,247,272,3522.853bartowski
Q2_K_L4 shards119.21 GiB128,005,032,3522.870bartowski
IQ3_S3 shards119.80 GiB128,637,290,8482.884ReadyArt
Q2_K3 shards121.68 GiB130,650,434,4322.929unsloth
Q2_K_L3 shards121.85 GiB130,832,296,8322.934unsloth
IQ3_XXS4 shards132.92 GiB142,721,550,7523.200bartowski
UD-IQ3_XXS3 shards134.76 GiB144,702,397,3123.245unsloth
IQ3_XS4 shards138.01 GiB148,186,106,2403.323bartowski
Q3_K_S4 shards143.75 GiB154,355,051,4883.461unsloth
Q3_K_S4 shards145.89 GiB156,653,152,6083.513bartowski
IQ3_M5 shards152.98 GiB164,263,234,0163.683bartowski
Q3_K_M5 shards153.01 GiB164,288,137,6963.684bartowski
Q3_K_L5 shards158.25 GiB169,917,188,6403.810bartowski
Q3_K_M4 shards158.89 GiB170,601,958,3683.825unsloth
IQ4_XS4 shards163.75 GiB175,828,617,6643.942ReadyArt
IQ4_XS4 shards177.59 GiB190,690,012,1604.276unsloth
IQ4_XS5 shards178.83 GiB192,019,450,4004.306bartowski
IQ4_NL5 shards187.40 GiB201,223,981,6644.512ReadyArt
IQ4_NL5 shards187.74 GiB201,583,406,2084.520unsloth
Q4_05 shards188.28 GiB202,163,399,7764.533unsloth
Q4_K_S5 shards188.88 GiB202,806,963,3284.547unsloth
IQ4_NL6 shards188.93 GiB202,862,709,3444.549bartowski
Q4_06 shards191.50 GiB205,621,119,5844.611bartowski
Q4_K_S6 shards195.49 GiB209,905,863,2964.707bartowski
Q4_K_M5 shards200.78 GiB215,582,633,0564.834unsloth
Q4_K_M6 shards202.70 GiB217,651,747,4564.880bartowski
Q5_K5 shards208.25 GiB223,604,361,8245.014ReadyArt
Q4_15 shards208.28 GiB223,635,614,8485.014unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.44 GiB1.44 GiB92 / 0 / 0
8,1922.88 GiB2.88 GiB92 / 0 / 0
16,3845.75 GiB5.75 GiB92 / 0 / 0
32,76811.50 GiB11.50 GiB92 / 0 / 0
65,53623.00 GiB23.00 GiB92 / 0 / 0
131,07246.00 GiB46.00 GiB92 / 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 186.91 GiB. The real file is 200.78 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
92
Attention heads
96
KV heads
8
Head dim
128
Hidden size
5120
Vocab
151,552
Sliding window
none
SWA period
MLA
no
Experts
160
Experts per token
8
use_sliding_window

Questions people ask

How much VRAM does GLM-4.6 need?
Q4_K_M is exactly 215,582,633,056 bytes (200.78 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.6's KV cache?
11.50 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.
Is GLM-4.6 a mixture-of-experts model?
Yes — 160 experts, 8 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of GLM-4.6 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.