Does GLM-5.1 fit in 12GB of VRAM?
Not at these settings. No indexed quantization of GLM-5.1 fits 12GB card at any context we compute, with q8_0 KV. The smallest shipped quantization is 147.30 GiB in weights alone, against 11.16 GiB usable. CPU offload can still run it, slowly.
Every quantization at every context
| Quant | Weights● | 4K◐ | 8K◐ | 16K◐ | 32K◐ | 64K◐ | 128K◐ |
|---|---|---|---|---|---|---|---|
| BF16 | 1404.42 GiB | 1405.4 | 1405.6 | 1406.0 | 1406.7 | 1408.2 | 1411.1 |
| Q8_0 | 746.31 GiB | 747.3 | 747.5 | 747.9 | 748.6 | 750.1 | 753.0 |
| Q6_K | 607.66 GiB | 608.7 | 608.9 | 609.2 | 610.0 | 611.4 | 614.3 |
| UD-Q6_K | 578.66 GiB | 579.7 | 579.9 | 580.2 | 581.0 | 582.4 | 585.3 |
| UD-Q5_K_M | 520.11 GiB | 521.1 | 521.3 | 521.7 | 522.4 | 523.9 | 526.8 |
| Q5_K_M | 501.62 GiB | 502.7 | 502.8 | 503.2 | 503.9 | 505.4 | 508.3 |
| UD-Q5_K_S | 489.83 GiB | 490.9 | 491.0 | 491.4 | 492.1 | 493.6 | 496.5 |
| Q5_K_S | 484.36 GiB | 485.4 | 485.6 | 485.9 | 486.7 | 488.1 | 491.0 |
| Q4_1 | 440.26 GiB | 441.3 | 441.5 | 441.8 | 442.6 | 444.0 | 446.9 |
| UD-Q4_K_M | 432.60 GiB | 433.6 | 433.8 | 434.2 | 434.9 | 436.4 | 439.3 |
| Q4_K_L | 428.77 GiB | 429.8 | 430.0 | 430.3 | 431.1 | 432.5 | 435.4 |
| Q4_K_M | 428.11 GiB | 429.1 | 429.3 | 429.7 | 430.4 | 431.9 | 434.8 |
| Q4_K_S | 411.10 GiB | 412.1 | 412.3 | 412.7 | 413.4 | 414.9 | 417.8 |
| UD-Q4_K_S | 404.10 GiB | 405.1 | 405.3 | 405.7 | 406.4 | 407.9 | 410.8 |
| Q4_0 | 398.24 GiB | 399.3 | 399.5 | 399.8 | 400.5 | 402.0 | 404.9 |
| IQ4_NL | 397.30 GiB | 398.3 | 398.5 | 398.9 | 399.6 | 401.1 | 404.0 |
| IQ4_XS | 375.69 GiB | 376.7 | 376.9 | 377.3 | 378.0 | 379.5 | 382.4 |
| UD-IQ4_NL | 343.54 GiB | 344.6 | 344.8 | 345.1 | 345.8 | 347.3 | 350.2 |
| UD-IQ4_XS | 336.51 GiB | 337.5 | 337.7 | 338.1 | 338.8 | 340.3 | 343.2 |
| IQ3_M | 335.52 GiB | 336.6 | 336.7 | 337.1 | 337.8 | 339.3 | 342.2 |
| Q3_K_L | 334.23 GiB | 335.3 | 335.4 | 335.8 | 336.5 | 338.0 | 340.9 |
| Q3_K_M | 320.96 GiB | 322.0 | 322.2 | 322.5 | 323.3 | 324.7 | 327.6 |
| IQ3_XS | 320.32 GiB | 321.3 | 321.5 | 321.9 | 322.6 | 324.1 | 327.0 |
| UD-Q3_K_M | 315.19 GiB | 316.2 | 316.4 | 316.8 | 317.5 | 319.0 | 321.9 |
| Q3_K_S | 305.77 GiB | 306.8 | 307.0 | 307.3 | 308.1 | 309.5 | 312.4 |
| IQ3_XXS | 293.34 GiB | 294.4 | 294.6 | 294.9 | 295.6 | 297.1 | 300.0 |
| UD-Q3_K_S | 291.94 GiB | 293.0 | 293.2 | 293.5 | 294.2 | 295.7 | 298.6 |
| UD-IQ3_S | 260.39 GiB | 261.4 | 261.6 | 262.0 | 262.7 | 264.2 | 267.1 |
| UD-IQ3_XXS | 249.84 GiB | 250.9 | 251.1 | 251.4 | 252.1 | 253.6 | 256.5 |
| Q2_K_L | 248.43 GiB | 249.5 | 249.6 | 250.0 | 250.7 | 252.2 | 255.1 |
| Q2_K | 247.56 GiB | 248.6 | 248.8 | 249.1 | 249.9 | 251.3 | 254.2 |
| IQ2_M | 237.40 GiB | 238.4 | 238.6 | 239.0 | 239.7 | 241.2 | 244.1 |
| UD-IQ2_M | 219.96 GiB | 221.0 | 221.2 | 221.5 | 222.3 | 223.7 | 226.6 |
| IQ2_S | 215.49 GiB | 216.5 | 216.7 | 217.1 | 217.8 | 219.3 | 222.2 |
| IQ2_XS | 211.04 GiB | 212.1 | 212.2 | 212.6 | 213.3 | 214.8 | 217.7 |
| UD-IQ2_XXS | 205.49 GiB | 206.5 | 206.7 | 207.1 | 207.8 | 209.2 | 212.2 |
| UD-IQ1_M | 191.42 GiB | 192.5 | 192.6 | 193.0 | 193.7 | 195.2 | 198.1 |
| IQ2_XXS | 189.92 GiB | 191.0 | 191.1 | 191.5 | 192.2 | 193.7 | 196.6 |
| IQ1_M | 163.93 GiB | 165.0 | 165.1 | 165.5 | 166.2 | 167.7 | 170.6 |
| IQ1_S | 147.30 GiB | 148.3 | 148.5 | 148.9 | 149.6 | 151.1 | 154.0 |
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.
Why there are no speeds on this page
A capacity is not a card. Whether a model fits depends only on memory, so every figure above holds for any 12GB accelerator. How fast it runs depends on memory bandwidth, which varies several-fold between cards of the same capacity — so putting a tokens-per-second number here would be inventing one. Pick a specific card from hardware and the speed column appears.
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, this model uses latent attention and allocates no V cache at all, so any formula reading num_key_value_heads overstates its cache by more than an order of magnitude.