Can I run GLM-Z1-9B-0414 on a GeForce RTX 5060 Ti?
Yes. The best fit is Q8_0 at 131,072 context with q4_0 KV — 11.56 GiB of 14.88 GiB usable, leaving 3.32 GiB headroom. Expect roughly 30 tokens/sec (modeled, ±12.9%).
Every quantization at every context
| Quant | Weights● | 4K◐ | 8K◐ | 16K◐ | 32K◐ | 64K◐ | 128K◐ |
|---|---|---|---|---|---|---|---|
| BF16 | 17.52 GiB | 18.4 | 18.4 | 18.5 | 18.7 | 19.1 | 19.8 |
| Q8_0 | 9.31 GiB | 10.2 | 10.2 | 10.3 | 10.5 | 10.9 | 11.6 |
| Q6_K_L | 7.98 GiB | 8.9 | 8.9 | 9.0 | 9.2 | 9.5 | 10.2 |
| Q6_K | 7.70 GiB | 8.6 | 8.6 | 8.7 | 8.9 | 9.2 | 9.9 |
| Q5_K_L | 6.92 GiB | 7.8 | 7.8 | 7.9 | 8.1 | 8.5 | 9.2 |
| Q5_K_M | 6.57 GiB | 7.4 | 7.5 | 7.6 | 7.8 | 8.1 | 8.8 |
| Q5_K_S | 6.24 GiB | 7.1 | 7.2 | 7.3 | 7.4 | 7.8 | 8.5 |
| Q4_K_L | 6.17 GiB | 7.1 | 7.1 | 7.2 | 7.4 | 7.7 | 8.4 |
| Q4_K_M | 5.74 GiB | 6.6 | 6.7 | 6.8 | 6.9 | 7.3 | 8.0 |
| Q4_1 | 5.60 GiB | 6.5 | 6.5 | 6.6 | 6.8 | 7.1 | 7.8 |
| Q4_K_S | 5.36 GiB | 6.2 | 6.3 | 6.4 | 6.6 | 6.9 | 7.6 |
| Q4_0 | 5.10 GiB | 6.0 | 6.0 | 6.1 | 6.3 | 6.6 | 7.3 |
| IQ4_NL | 5.09 GiB | 6.0 | 6.0 | 6.1 | 6.3 | 6.6 | 7.3 |
| IQ4_XS | 4.92 GiB | 5.8 | 5.8 | 5.9 | 6.1 | 6.5 | 7.2 |
| Q3_K_L | 4.84 GiB | 5.7 | 5.8 | 5.9 | 6.0 | 6.4 | 7.1 |
| Q3_K_M | 4.63 GiB | 5.5 | 5.6 | 5.6 | 5.8 | 6.2 | 6.9 |
| IQ3_M | 4.40 GiB | 5.3 | 5.3 | 5.4 | 5.6 | 5.9 | 6.6 |
| Q2_K_L | 4.30 GiB | 5.2 | 5.2 | 5.3 | 5.5 | 5.8 | 6.5 |
| Q3_K_S | 4.28 GiB | 5.2 | 5.2 | 5.3 | 5.5 | 5.8 | 6.5 |
| IQ3_XS | 4.10 GiB | 5.0 | 5.0 | 5.1 | 5.3 | 5.6 | 6.3 |
| UD-IQ3_XXS | 3.94 GiB | 4.8 | 4.9 | 5.0 | 5.1 | 5.5 | 6.2 |
| IQ3_XXS | 3.94 GiB | 4.8 | 4.9 | 5.0 | 5.1 | 5.5 | 6.2 |
| Q2_K | 3.73 GiB | 4.6 | 4.7 | 4.7 | 4.9 | 5.3 | 6.0 |
| UD-IQ2_M | 3.72 GiB | 4.6 | 4.6 | 4.7 | 4.9 | 5.3 | 6.0 |
| IQ2_M | 3.68 GiB | 4.6 | 4.6 | 4.7 | 4.9 | 5.2 | 5.9 |
| UD-IQ2_XXS | 3.27 GiB | 4.2 | 4.2 | 4.3 | 4.5 | 4.8 | 5.5 |
| UD-IQ1_M | 3.09 GiB | 4.0 | 4.0 | 4.1 | 4.3 | 4.6 | 5.3 |
| UD-IQ1_S | 2.98 GiB | 3.9 | 3.9 | 4.0 | 4.2 | 4.5 | 5.2 |
Figures are GiB of total memory: weights plus KV cache plus compute buffer and backend overhead. Weights and KV are near-exact; the overhead term is modeled. Hover any cell for the breakdown.
Run it
The best-fitting configuration above, as a command:
llama-cli -hf zai-org/GLM-Z1-9B-0414 \ --ctx-size 131072 \ --cache-type-k q4_0 --cache-type-v q4_0 \ -ngl auto
Recent llama.cpp defaults to --fit on with -ngl auto, so it will size the offload for you. The question worth your attention is not how many layers to offload but what context and quantization you are willing to live with — which is what the grid above is for.
Why other calculators disagree
A parameters × bits ÷ 8 estimate ignores two things that dominate at long context. First, the weights themselves are not the nominal rate — quantizations are mixtures, so the real file is consistently larger than the label implies. Second, the KV cache grows linearly with context and, past about 32K, becomes larger than the weights for many models.