GLM-4.7-Flash-Derestricted
koute/GLM-4.7-Flash-DerestrictedGLM-4.7-Flash-Derestricted at Q4_K_M is exactly 18,132,722,080 bytes (16.89 GiB / 18.13 GB) — an effective 4.646 bits per weight, not the nominal 4. Its KV cache at 32K is 1.65 GiB.
Shipped quantizations
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| I1-IQ1_S | 5.78 GiB | 6,201,792,192 | 1.589 | — | mradermacher |
| I1-IQ1_M | 6.39 GiB | 6,864,782,016 | 1.759 | — | mradermacher |
| I1-IQ2_XXS | 7.42 GiB | 7,969,765,056 | 2.042 | — | mradermacher |
| I1-IQ2_XS | 8.26 GiB | 8,869,152,448 | 2.273 | — | mradermacher |
| I1-IQ2_S | 8.40 GiB | 9,014,335,168 | 2.310 | — | mradermacher |
| I1-IQ2_M | 9.22 GiB | 9,898,321,600 | 2.536 | — | mradermacher |
| I1-Q2_K_S | 9.53 GiB | 10,232,122,048 | 2.622 | — | mradermacher |
| Q2_K | 10.28 GiB | 11,042,965,920 | 2.830 | — | mradermacher |
| I1-Q2_K | 10.28 GiB | 11,042,966,208 | 2.830 | — | mradermacher |
| I1-IQ3_XXS | 10.85 GiB | 11,646,142,144 | 2.984 | — | mradermacher |
| I1-IQ3_XS | 11.50 GiB | 12,344,307,392 | 3.163 | — | mradermacher |
| Q3_K_S | 12.14 GiB | 13,034,401,184 | 3.340 | — | mradermacher |
| I1-IQ3_S | 12.14 GiB | 13,034,401,472 | 3.340 | — | mradermacher |
| I1-Q3_K_S | 12.14 GiB | 13,034,401,472 | 3.340 | — | mradermacher |
| I1-IQ3_M | 12.30 GiB | 13,211,266,752 | 3.385 | — | mradermacher |
| Q3_K_M | 13.39 GiB | 14,380,019,104 | 3.685 | — | mradermacher |
| I1-Q3_K_M | 13.39 GiB | 14,380,019,392 | 3.685 | — | mradermacher |
| Q3_K_L | 14.52 GiB | 15,591,779,744 | 3.995 | — | mradermacher |
| I1-Q3_K_L | 14.52 GiB | 15,591,780,032 | 3.995 | — | mradermacher |
| I1-IQ4_XS | 14.93 GiB | 16,033,288,896 | 4.108 | — | mradermacher |
| IQ4_XS | 15.05 GiB | 16,164,360,608 | 4.142 | — | mradermacher |
| I1-Q4_0 | 15.84 GiB | 17,008,452,288 | 4.358 | — | mradermacher |
| Q4_K_S | 15.90 GiB | 17,072,431,520 | 4.375 | — | mradermacher |
| I1-Q4_K_S | 15.90 GiB | 17,072,431,808 | 4.375 | — | mradermacher |
| Q4_K_M | 16.89 GiB | 18,132,722,080 | 4.646 | — | mradermacher |
| I1-Q4_K_M | 16.89 GiB | 18,132,722,368 | 4.646 | — | mradermacher |
| I1-Q4_1 | 17.52 GiB | 18,807,268,032 | 4.819 | — | mradermacher |
| Q5_K_S | 19.25 GiB | 20,664,287,648 | 5.295 | — | mradermacher |
| I1-Q5_K_S | 19.25 GiB | 20,664,287,936 | 5.295 | — | mradermacher |
| Q5_K_M | 19.80 GiB | 21,264,515,488 | 5.449 | — | mradermacher |
| I1-Q5_K_M | 19.80 GiB | 21,264,515,776 | 5.449 | — | mradermacher |
| Q6_K | 22.92 GiB | 24,614,786,464 | 6.307 | — | mradermacher |
| I1-Q6_K | 22.92 GiB | 24,614,786,752 | 6.307 | — | mradermacher |
| Q8_0 | 29.66 GiB | 31,842,800,032 | 8.159 | — | mradermacher |
KV cache by context
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 0.21 GiB | 3.67 GiB | 17.78× | 47 / 0 / 0 |
| 8,192 | 0.41 GiB | 7.34 GiB | 17.78× | 47 / 0 / 0 |
| 16,384 | 0.83 GiB | 14.69 GiB | 17.78× | 47 / 0 / 0 |
| 32,768 | 1.65 GiB | 29.38 GiB | 17.78× | 47 / 0 / 0 |
| 65,536 | 3.30 GiB | 58.75 GiB | 17.78× | 47 / 0 / 0 |
| 131,072 | 6.61 GiB | 117.50 GiB | 17.78× | 47 / 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 16.36 GiB. The real file is 16.89 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-4.7-Flash-Derestricted need?
- Q4_K_M is exactly 18,132,722,080 bytes (16.89 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-Flash-Derestricted's KV cache?
- 1.65 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-Flash-Derestricted a mixture-of-experts model?
- Yes — 64 experts, 4 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-Flash-Derestricted 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.