glm-4-9b-chat GGUF size and VRAM requirements

License: other ⬇ 13,670 ❤ 5
Parameters9.4B
Context131,072

The glm-4-9b-chat is a 9.4 billion parameter AI model from the GLM-4 family, designed for chat-based interactions. It is part of the THUDM series of models, originally hosted on Hugging Face. The model is optimized for conversational tasks, leveraging its large parameter count to provide context-aware responses.

To run bartowski/glm-4-9b-chat-GGUF locally at a 4,096-token context, its quantized versions need between 4.62 GB (IQ2_M, lowest quality) and 10.26 GB (Q8_0, highest quality) of memory, weights plus KV cache and a system margin included.

For most users the best balance is Q5_K_L, needing about 7.97 GB. That means bartowski/glm-4-9b-chat-GGUF fits entirely in the VRAM of a 6 GB GPU or larger, running fully on the GPU.

→ 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
IQ2_M 3.35 Fair 3.66 GB 0.16 GB 4.62 GB 109.2 t/s Fits in VRAM
Q2_K 3.4 Fair 3.72 GB 0.16 GB 4.67 GB 107.6 t/s Fits in VRAM
IQ3_XS 3.77 Fair 4.13 GB 0.16 GB 5.08 GB 97.0 t/s Fits in VRAM
Q3_K_S 3.9 Fair 4.27 GB 0.16 GB 5.23 GB 93.6 t/s Fits in VRAM
Q2_K_L 3.91 Fair 4.28 GB 0.16 GB 5.24 GB 93.4 t/s Fits in VRAM
IQ3_M 4.1 Fair 4.48 GB 0.16 GB 5.44 GB 89.3 t/s Fits in VRAM
Q3_K_M 4.31 Good 4.72 GB 0.16 GB 5.67 GB 84.8 t/s Fits in VRAM
IQ4_XS 4.47 Good 4.89 GB 0.16 GB 5.85 GB 81.8 t/s Fits in VRAM
Q3_K_L 4.49 Good 4.92 GB 0.16 GB 5.87 GB 81.3 t/s Fits in VRAM
Q4_K_S 4.9 Good 5.36 GB 0.16 GB 6.31 GB 74.7 t/s Fits in VRAM
Q3_K_XL 4.96 Good 5.42 GB 0.16 GB 6.38 GB 73.7 t/s Fits in VRAM
Q4_K_M 5.32 Very good 5.82 GB 0.16 GB 6.78 GB 68.7 t/s Fits in VRAM
Q5_K_S 5.7 Very good 6.23 GB 0.16 GB 7.19 GB 64.2 t/s Fits in VRAM
Q4_K_L 5.71 Very good 6.25 GB 0.16 GB 7.21 GB 64.0 t/s Fits in VRAM
Q5_K_M 6.08 Very good 6.65 GB 0.16 GB 7.61 GB 60.1 t/s Fits in VRAM
Q5_K_L 6.41 Very good 7.01 GB 0.16 GB 7.97 GB 57.1 t/s Fits in VRAM
Q6_K 7.03 Excellent 7.69 GB 0.16 GB 8.65 GB 6.5 t/s Offload
Q6_K_L 7.29 Excellent 7.97 GB 0.16 GB 8.93 GB 6.3 t/s Offload
Q8_0 8.51 Excellent 9.31 GB 0.16 GB 10.26 GB 5.4 t/s Offload

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

Frequently asked questions

How much VRAM do you need to run bartowski/glm-4-9b-chat-GGUF?

You need about 5.87 GB of VRAM to run bartowski/glm-4-9b-chat-GGUF entirely on the GPU using the Q3_K_L quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run bartowski/glm-4-9b-chat-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run bartowski/glm-4-9b-chat-GGUF fully on the GPU using Q5_K_L (about 7.97 GB).

Can I run bartowski/glm-4-9b-chat-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run bartowski/glm-4-9b-chat-GGUF fully on the GPU using Q8_0 (about 10.26 GB).

Can I run bartowski/glm-4-9b-chat-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run bartowski/glm-4-9b-chat-GGUF fully on the GPU using Q8_0 (about 10.26 GB).

What is the best quantization for bartowski/glm-4-9b-chat-GGUF?

If memory allows, higher bits-per-weight means better quality. A common sweet spot is a Q4_K_M or Q5_K_M quantization, which keeps most of the quality while roughly halving the memory versus 8-bit. Pick the highest quantization that still fits in your VRAM.