Architecture: Dense (9.4B total params · max context 128K). At 8K context, Q4_K_M needs ~8.4 GB VRAM (1x RTX 3060 12GB / RTX 4070 12GB / 16GB Mac) and FP8 needs ~13.4 GB VRAM.
| Precision / Format | Model Weights | KV Cache + Overhead | Total Est. VRAM | Recommended GPU |
|---|---|---|---|---|
| IQ3_XS (3-bit) | 3.6 GB | 2.6 GB | 6.2 GB | 1x RTX 4060 8GB / 16GB Apple Silicon |
| Q4_K_M / AWQ (4-bit) | 5.5 GB | 2.9 GB | 8.4 GB | 1x RTX 3060 12GB / RTX 4070 12GB / 16GB Mac |
| FP8 / INT8 (8-bit) | 9.9 GB | 3.6 GB | 13.4 GB | 1x RTX 4060 Ti 16GB / RTX 4080 16GB / 24GB Mac |
| FP16 / BF16 (16-bit) | 18.8 GB | 4.9 GB | 23.7 GB | 1x RTX 3090 or RTX 4090 24GB / 36GB Mac |
| Hardware | Memory | Q4_K_M (8K Ctx) Fit |
|---|---|---|
| NVIDIA RTX 3090 / RTX 4090 | 24 GB VRAM | Fits comfortably (headroom for 16K–32K ctx) |
| NVIDIA RTX 5090 | 32 GB VRAM | Fits comfortably (headroom for 16K–32K ctx) |
| NVIDIA L40S / RTX A6000 | 48 GB VRAM | Fits comfortably (headroom for 16K–32K ctx) |
| NVIDIA A100 / H100 (Single) | 80 GB VRAM | Fits comfortably (headroom for 16K–32K ctx) |
| Apple Mac Studio (Unified) | 128 GB (approx. 96 GB GPU) | Fits comfortably (headroom for 16K–32K ctx) |
GLM-4-9B-Chat requires ~5.5 GB for 4-bit Q4_K_M weights plus ~2.9 GB for 8K KV cache and CUDA runtime overhead, totaling 8.4 GB VRAM.
Fits comfortably (headroom for 16K–32K ctx) at Q4_K_M and 8K context. For long-context serving or multi-user concurrency, consider an on-demand 48GB/80GB cloud GPU.
Total VRAM = (Total Parameters × Bytes per Parameter) + (KV Cache per 1K tokens × Context × Batch) + 15% runtime buffer. Even for Mixture-of-Experts models, all total weights (9.4B) must be loaded in memory.