GLM-4.7-Flash GGUF size and VRAM requirements

License: mit ⬇ 235,808 ❤ 695
Parameters31.22B
Context202,752

unsloth/GLM-4.7-Flash-GGUF is a very large language model with 31.22 billion parameters, built on the deepseek2 architecture. It is released under the mit license and has been downloaded 235,808 times.

GLM-4.7-Flash-GGUF is a Mixture-of-Experts model with 64 experts, of which 4 are active on each token. Routing only 4 of 64 experts makes it noticeably faster than a dense model of the same size — but every expert still has to be held in memory, so the numbers below are set by the full parameter count, not the active one. It is built from 47 transformer layers, a hidden size of 2,048, 20 attention heads. GLM-4.7-Flash-GGUF uses Multi-head Latent Attention, caching a single compressed latent per layer instead of full keys and values. That keeps the KV cache small even at long context — the memory figures on this page already reflect it.

To run unsloth/GLM-4.7-Flash-GGUF locally at a 4,096-token context, its quantized versions need between 8.77 GB (TQ1_0, lowest quality) and 56.8 GB (BF16, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for GLM-4.7-Flash-GGUF is about 0.21 GB, rising to roughly 10.22 GB at its full 202,752-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is Q5_K_XL, needing about 21.21 GB. That means unsloth/GLM-4.7-Flash-GGUF fits entirely in the VRAM of a 10 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for unsloth/GLM-4.7-Flash-GGUF include TQ1_0, IQ1_S, IQ1_M, IQ2_XXS, IQ2_M, Q2_K, Q2_K_L, Q2_K_XL, IQ3_XXS, Q3_K_S, Q3_K_XL, Q3_K_M, IQ4_XS, MXFP4, IQ4_NL, Q4_0, Q4_K_S, Q4_K_XL, Q4_K_M, Q4_1, Q5_K_S, Q5_K_M, Q5_K_XL, Q6_K, Q6_K_XL, Q8_0, Q8_K_XL, BF16. The model supports a native context length of up to 202,752 tokens; a longer context grows the KV cache and the memory needed.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
TQ1_0 2.13 Very low 7.76 GB 0.21 GB 8.77 GB 6.4 t/s Offload
IQ1_S 2.37 Very low 8.61 GB 0.21 GB 9.62 GB 5.8 t/s Offload
IQ1_M 2.51 Very low 9.13 GB 0.21 GB 10.14 GB 5.5 t/s Offload
IQ2_XXS 2.69 Low 9.79 GB 0.21 GB 10.8 GB 5.1 t/s Offload
IQ2_M 2.82 Low 10.24 GB 0.21 GB 11.24 GB 4.9 t/s Offload
Q2_K 2.91 Low 10.57 GB 0.21 GB 11.57 GB 4.7 t/s Offload
Q2_K_L 2.93 Low 10.63 GB 0.21 GB 11.64 GB 4.7 t/s Offload
Q2_K_XL 3.05 Low 11.07 GB 0.21 GB 12.08 GB 4.5 t/s Offload
IQ3_XXS 3.31 Fair 12.02 GB 0.21 GB 13.03 GB 4.2 t/s Offload
Q3_K_S 3.4 Fair 12.38 GB 0.21 GB 13.38 GB 4.0 t/s Offload
Q3_K_XL 3.53 Fair 12.84 GB 0.21 GB 13.84 GB 3.9 t/s Offload
Q3_K_M 3.74 Fair 13.61 GB 0.21 GB 14.62 GB 3.7 t/s Offload
IQ4_XS 4.17 Fair 15.15 GB 0.21 GB 16.16 GB 3.3 t/s Offload
MXFP4 4.35 Good 15.8 GB 0.21 GB 16.81 GB 3.2 t/s Offload
IQ4_NL 4.4 Good 15.99 GB 0.21 GB 16.99 GB 3.1 t/s Offload
Q4_0 4.41 Good 16.03 GB 0.21 GB 17.04 GB 3.1 t/s Offload
Q4_K_S 4.42 Good 16.08 GB 0.21 GB 17.09 GB 3.1 t/s Offload
Q4_K_XL 4.49 Good 16.32 GB 0.21 GB 17.32 GB 3.1 t/s Offload
Q4_K_M 4.69 Good 17.05 GB 0.21 GB 18.06 GB 2.9 t/s Offload
Q4_1 4.86 Good 17.67 GB 0.21 GB 18.68 GB 2.8 t/s Offload
Q5_K_S 5.33 Very good 19.39 GB 0.21 GB 20.39 GB 2.6 t/s Offload
Q5_K_M 5.49 Very good 19.94 GB 0.21 GB 20.95 GB 2.5 t/s Offload
Q5_K_XL 5.56 Very good 20.2 GB 0.21 GB 21.21 GB 2.5 t/s Offload
Q6_K 6.33 Very good 23.0 GB 0.21 GB 24.0 GB Insufficient
Q6_K_XL 6.71 Excellent 24.38 GB 0.21 GB 25.38 GB Insufficient
Q8_0 8.16 Excellent 29.66 GB 0.21 GB 30.66 GB Insufficient
Q8_K_XL 9.13 Excellent 33.18 GB 0.21 GB 34.18 GB Insufficient
BF16 15.35 Excellent 55.79 GB 0.21 GB 56.8 GB Insufficient

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

What kind of model is unsloth/GLM-4.7-Flash-GGUF?

unsloth/GLM-4.7-Flash-GGUF is a language model with 31.22 billion parameters, based on the deepseek2 architecture. It is released under the mit license and distributed as GGUF files for local inference.

Is unsloth/GLM-4.7-Flash-GGUF a Mixture-of-Experts (MoE) model?

Yes. unsloth/GLM-4.7-Flash-GGUF is a Mixture-of-Experts model with 64 experts, of which 4 are activated per token. That makes it faster than a dense model of the same size, but all 64 experts must be loaded into memory, so the VRAM/RAM it needs is driven by the total parameter count, not the active one.

How does unsloth/GLM-4.7-Flash-GGUF handle long context?

unsloth/GLM-4.7-Flash-GGUF uses Multi-head Latent Attention, which caches one compressed latent per layer instead of full keys and values. Its KV cache therefore grows much more slowly than a standard model of the same size, so long contexts add relatively little memory.

How much VRAM do you need to run unsloth/GLM-4.7-Flash-GGUF?

You need about 9.62 GB of VRAM to run unsloth/GLM-4.7-Flash-GGUF entirely on the GPU using the IQ1_S quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run unsloth/GLM-4.7-Flash-GGUF on an 8 GB GPU?

Partially. unsloth/GLM-4.7-Flash-GGUF only fits on an 8 GB GPU by offloading part of it to system RAM (with Q5_K_XL), which runs but is slower.

Can I run unsloth/GLM-4.7-Flash-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run unsloth/GLM-4.7-Flash-GGUF fully on the GPU using Q3_K_M (about 14.62 GB).

Can I run unsloth/GLM-4.7-Flash-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run unsloth/GLM-4.7-Flash-GGUF fully on the GPU using Q5_K_XL (about 21.21 GB).

What context length does unsloth/GLM-4.7-Flash-GGUF support?

unsloth/GLM-4.7-Flash-GGUF supports a native context length of up to 202,752 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for unsloth/GLM-4.7-Flash-GGUF?

For unsloth/GLM-4.7-Flash-GGUF, a strong default is Q4_K_M, which needs about 18.06 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.