zai-org · text · mixture of experts
GLM-4.7
zai-org/GLM-4.7GLM-4.7 at Q4_K_M is exactly 216,455,572,576 bytes (201.59 GiB / 216.46 GB) — an effective 4.832 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
358B
total, not active
Architecture
glm4moe
92 layers
Context
202,752
native (config.json)
License
mit
Shipped quantizations
● exact bytes, summed from published files
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| IQ1_S2 shards | 71.50 GiB | 76,767,410,464 | 1.714 | — | bartowski |
| IQ1_M3 shards | 74.53 GiB | 80,024,529,312 | 1.787 | — | bartowski |
| UD-TQ1_0 | 78.69 GiB | 84,494,125,664 | 1.886 | — | unsloth |
| IQ2_XXS3 shards | 82.69 GiB | 88,785,566,080 | 1.982 | — | bartowski |
| UD-IQ1_S2 shards | 90.50 GiB | 97,175,341,856 | 2.170 | — | unsloth |
| IQ2_XS3 shards | 94.53 GiB | 101,503,891,840 | 2.266 | — | bartowski |
| IQ2_S3 shards | 95.29 GiB | 102,314,080,672 | 2.284 | — | bartowski |
| UD-IQ1_M3 shards | 100.27 GiB | 107,659,012,992 | 2.404 | — | unsloth |
| IQ2_M3 shards | 107.57 GiB | 115,504,265,632 | 2.579 | — | bartowski |
| UD-IQ2_XXS3 shards | 107.95 GiB | 115,912,821,664 | 2.588 | — | unsloth |
| UD-IQ2_M3 shards | 114.03 GiB | 122,440,207,264 | 2.733 | — | unsloth |
| Q2_K4 shards | 118.86 GiB | 127,623,776,800 | 2.849 | — | bartowski |
| Q2_K_L4 shards | 119.56 GiB | 128,381,536,800 | 2.866 | — | bartowski |
| Q2_K3 shards | 122.15 GiB | 131,159,649,152 | 2.928 | — | unsloth |
| Q2_K_L3 shards | 122.32 GiB | 131,341,511,552 | 2.932 | — | unsloth |
| IQ3_XXS4 shards | 132.93 GiB | 142,733,060,640 | 3.187 | — | bartowski |
| UD-IQ3_XXS3 shards | 135.15 GiB | 145,120,517,024 | 3.240 | — | unsloth |
| IQ3_XS4 shards | 138.48 GiB | 148,687,047,200 | 3.320 | — | bartowski |
| Q3_K_S4 shards | 144.38 GiB | 155,021,880,320 | 3.461 | — | unsloth |
| Q3_K_S4 shards | 146.52 GiB | 157,319,981,568 | 3.512 | — | bartowski |
| IQ3_M5 shards | 153.45 GiB | 164,764,174,976 | 3.678 | — | bartowski |
| Q3_K_M5 shards | 153.63 GiB | 164,954,966,656 | 3.683 | — | bartowski |
| Q3_K_L5 shards | 158.87 GiB | 170,584,017,568 | 3.808 | — | bartowski |
| Q3_K_M4 shards | 159.51 GiB | 171,268,787,232 | 3.824 | — | unsloth |
| IQ4_XS4 shards | 178.41 GiB | 191,562,951,712 | 4.277 | — | unsloth |
| IQ4_XS5 shards | 179.45 GiB | 192,678,005,376 | 4.302 | — | bartowski |
| IQ4_NL5 shards | 188.55 GiB | 202,456,345,728 | 4.520 | — | unsloth |
| Q4_05 shards | 189.09 GiB | 203,036,339,328 | 4.533 | — | unsloth |
| IQ4_NL6 shards | 189.62 GiB | 203,602,938,624 | 4.545 | — | bartowski |
| Q4_K_S5 shards | 189.69 GiB | 203,679,902,848 | 4.547 | — | unsloth |
| Q4_06 shards | 192.31 GiB | 206,494,059,264 | 4.610 | — | bartowski |
| Q4_K_S6 shards | 196.30 GiB | 210,778,802,944 | 4.706 | — | bartowski |
| Q4_K_M5 shards | 201.59 GiB | 216,455,572,576 | 4.832 | — | unsloth |
| Q4_K_M6 shards | 203.52 GiB | 218,524,687,136 | 4.879 | — | bartowski |
| Q4_K_L6 shards | 204.05 GiB | 219,100,584,704 | 4.891 | — | bartowski |
| Q4_15 shards | 209.18 GiB | 224,605,547,648 | 5.014 | — | unsloth |
| Q4_16 shards | 209.72 GiB | 225,189,350,112 | 5.027 | — | bartowski |
| Q5_K_S5 shards | 230.04 GiB | 247,003,704,448 | 5.514 | — | unsloth |
| Q5_K_S7 shards | 230.45 GiB | 247,443,676,032 | 5.524 | — | bartowski |
| Q5_K_M6 shards | 236.79 GiB | 254,246,825,248 | 5.676 | — | unsloth |
KV cache by context
computed per layer
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 1.44 GiB | 1.44 GiB | — | 92 / 0 / 0 |
| 8,192 | 2.88 GiB | 2.88 GiB | — | 92 / 0 / 0 |
| 16,384 | 5.75 GiB | 5.75 GiB | — | 92 / 0 / 0 |
| 32,768 | 11.50 GiB | 11.50 GiB | — | 92 / 0 / 0 |
| 65,536 | 23.00 GiB | 23.00 GiB | — | 92 / 0 / 0 |
| 131,072 | 46.00 GiB | 46.00 GiB | — | 92 / 0 / 0 |
Compare with
same modality, comparable size
Will it run on your card?
full quant x context sweep
Radeon RX 6500 XT 4GBGeForce RTX 3050 6GBGeForce RTX 5050 8GBGeForce RTX 3080 10GBGeForce RTX 2080 Ti 11GBGeForce RTX 5070 12GBGeForce RTX 5060 Ti 16GBApple M3 Pro 18GBGeForce RTX 3080 Ti 20GBGeForce RTX 5090 D V2 24GBGeForce RTX 5090 D 32GBApple M5 Max 36GBApple M5 Pro 48GBApple M5 Max 64GBApple M3 Ultra 96GBApple M5 Max 128GBApple M2 Ultra 192GBApple M3 Ultra 256GBApple M3 Ultra 512GB
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 187.72 GiB. The real file is 201.59 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.7 need?
- Q4_K_M is exactly 216,455,572,576 bytes (201.59 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.7'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.7 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.7 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.