GLM-4 models
6 GLM-4 models from Z.ai on Hugging Face, from 9.4B to 32.6B parameters, published by Z.ai in BF16, with contexts from 8K to 128K tokens. The smallest official model, glm-4-9b-hf, needs about 21.0 GB of VRAM at its published precision; the cheapest live fit is RTX A5000 at $0.176/hr.
Part of the GLM series · Next generation: GLM-4.5
Pick a size
One row per official GLM-4 size: the VRAM it needs at each precision, the cheapest GPU that holds it today, and the KV cache for a 32K-token context.
| Model | Parameters | Native VRAM | FP8 VRAM | INT4 VRAM | Live GPU fit (native) | Est. $/hr | KV cache at 32K |
|---|---|---|---|---|---|---|---|
| GLM-4-9B-0414 | 9.4B | 21.0 GB | 10.5 GB | 5.3 GB | RTX A5000 | $0.176/hr | 1.3 GB |
| GLM-4.1V-9B-Thinking | 10.3B | 23.0 GB | 11.5 GB | 5.8 GB | RTX A5000 | $0.176/hr | 1.3 GB |
| GLM-Z1-32B-0414 | 32.6B | 72.8 GB | 36.4 GB | 18.2 GB | A100 | $1.18/hr | 1.9 GB |
VRAM is weights times a flat 1.2 overhead; the KV cache is a separate per-model figure at 16-bit, shown where the architecture is published. See the methodology.
Official models (6)
| Model | Parameters | Published as | VRAM needed | Live GPU fit | Est. $/hr |
|---|---|---|---|---|---|
| glm-4-9b-hf | 9.4B | BF16 | 21.0 GB | RTX A5000 | $0.176/hr |
| codegeex4-all-9b | 9.4B | BF16 | 21.0 GB | RTX A5000 | $0.176/hr |
| glm-4-9b | 9.4B | BF16 | 21.0 GB | RTX A5000 | $0.176/hr |
| GLM-4-9B-0414 | 9.4B | BF16 | 21.0 GB | RTX A5000 | $0.176/hr |
| GLM-4.1V-9B-Thinking | 10.3B | BF16 | 23.0 GB | RTX A5000 | $0.176/hr |
| GLM-Z1-32B-0414 | 32.6B | BF16 | 72.8 GB | A100 | $1.18/hr |
VRAM is for the precision the model is published in: the weights times a flat 1.2 overhead, with the KV cache not included. See the methodology. The fit shown is the lowest-priced single GPU type that holds the model at that precision, or the lowest-priced multi-GPU set (up to 8) when none does.