GLM-5
zai-org/GLM-5GLM-5 at Q4_K_M is exactly 455,879,275,712 bytes (424.57 GiB / 455.88 GB) — an effective 4.838 bits per weight, not the nominal 4. Its KV cache at 32K is 2.74 GiB.
Shipped quantizations
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| UD-TQ1_0 | 164.05 GiB | 176,142,433,184 | 1.869 | — | unsloth |
| UD-IQ1_S6 shards | 189.71 GiB | 203,699,011,168 | 2.162 | — | unsloth |
| UD-IQ1_M6 shards | 208.48 GiB | 223,855,224,416 | 2.376 | — | unsloth |
| UD-IQ2_XXS6 shards | 224.52 GiB | 241,073,170,016 | 2.558 | — | unsloth |
| UD-IQ2_M7 shards | 237.27 GiB | 254,763,378,336 | 2.704 | — | unsloth |
| Q2_K7 shards | 257.00 GiB | 275,953,473,216 | 2.928 | — | unsloth |
| Q2_K_L7 shards | 257.21 GiB | 276,176,500,448 | 2.931 | — | unsloth |
| UD-IQ3_XXS8 shards | 283.62 GiB | 304,536,467,744 | 3.232 | — | unsloth |
| Q3_K_S8 shards | 303.87 GiB | 326,276,833,568 | 3.462 | — | unsloth |
| Q3_K_M9 shards | 335.56 GiB | 360,308,302,304 | 3.824 | — | unsloth |
| IQ4_XS10 shards | 375.23 GiB | 402,895,582,272 | 4.276 | — | unsloth |
| IQ4_NL10 shards | 396.67 GiB | 425,923,884,032 | 4.520 | — | unsloth |
| Q4_010 shards | 397.81 GiB | 427,145,999,360 | 4.533 | — | unsloth |
| Q4_K_S10 shards | 398.95 GiB | 428,368,114,688 | 4.546 | — | unsloth |
| Q4_K_M11 shards | 424.57 GiB | 455,879,275,712 | 4.838 | — | unsloth |
| Q4_111 shards | 440.24 GiB | 472,704,107,744 | 5.016 | — | unsloth |
| Q5_K_S12 shards | 484.04 GiB | 519,738,348,800 | 5.516 | — | unsloth |
| Q5_K_M12 shards | 498.42 GiB | 535,169,914,112 | 5.679 | — | unsloth |
| Q6_K14 shards | 576.84 GiB | 619,377,928,352 | 6.573 | — | unsloth |
| Q8_018 shards | 746.31 GiB | 801,344,964,608 | 8.504 | — | unsloth |
| BF1633 shards | 1404.42 GiB | 1,507,979,369,824 | 16.003 | — | unsloth |
KV cache by context
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 0.34 GiB | 19.50 GiB | 56.89× | 78 / 0 / 0 |
| 8,192 | 0.69 GiB | 39.00 GiB | 56.89× | 78 / 0 / 0 |
| 16,384 | 1.37 GiB | 78.00 GiB | 56.89× | 78 / 0 / 0 |
| 32,768 | 2.74 GiB | 156.00 GiB | 56.89× | 78 / 0 / 0 |
| 65,536 | 5.48 GiB | 312.00 GiB | 56.89× | 78 / 0 / 0 |
| 131,072 | 10.97 GiB | 624.00 GiB | 56.89× | 78 / 0 / 0 |
This model uses multi-head latent attention. No V cache is allocated at all, and the K cache stores a 512-wide latent plus 64 rope dimensions — so reading num_key_value_heads from config.json and multiplying, as every calculator does, overstates the cache by well over an order of magnitude.
Compare with
Will it run on your card?
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 394.93 GiB. The real file is 424.57 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: this model allocates no value cache at all, so any formula reading num_key_value_heads overstates it by more than an order of magnitude.
Architecture
Questions people ask
- How much VRAM does GLM-5 need?
- Q4_K_M is exactly 455,879,275,712 bytes (424.57 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-5's KV cache?
- 2.74 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-5 a mixture-of-experts model?
- Yes — 256 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-5 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.