GLM-4.5 VRAM & Memory Requirements
Specific checkpoints with sourced architecture and weight files. GGUF Q4_K_M (Unsloth): 204.59 GiB–209.20 GiB at 8,192 tokens, 1 sequence, FP16 KV, llama.cpp.
Publisher and provenance
- PublisherZhipu AI
- Hugging Face
zai-org/GLM-4.5 - Revision
cbb2c7cfb52fa128a9660cb1a7a78e017899e115 - Total parameters358,337,791,296
- Active parametersUnknown / not independently sourced
- Layers92
- Query heads96
- KV heads8 (gqa)
- Head dimension128
- Recorded context capability131,072
- Completenesscomplete · full
Active parameters describe tokens' routed compute, not the full resident model weight footprint. Full-resident weight estimates use total parameters.
Memory layers in this estimate
Artifact bytes, raw KV, engine extras, and total demand are separate. This is not a runtime trace.
- Weight artifact
- 201.59 GiB (216,455,572,672 bytes)
- Raw KV cache
- 2.88 GiB (3,087,007,744 bytes)
- Engine extras / workspace
- 0.13 GiB–4.73 GiB
- Total estimated demand
- 204.59 GiB–209.20 GiB
Published artifacts
| Quantization | Selected files | Bytes | Engine | Evidence |
|---|---|---|---|---|
| BF16 safetensors bf16 | 358,337,791,296 (333.73 GiB / 358.34 GB) | vllm, sglang, unspecified | file-metadata | |
| GGUF Q4_K_M (Unsloth) gguf-q4_k_m | 216,455,572,672 (201.59 GiB / 216.46 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q5_K_M (Unsloth) gguf-q5_k_m | 254,246,825,344 (236.79 GiB / 254.25 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q6_K (Unsloth) gguf-q6_k | 294,371,691,840 (274.16 GiB / 294.37 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q8_0 (Unsloth) gguf-q8_0 | 380,966,784,608 (354.80 GiB / 380.97 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| INT4 theoretical | No published file | 179,168,895,648 (theoretical) | — | theoretical |
Memory by quantization and context
Concurrent sequences = 1. KV defaults to FP16. The range includes documented runtime extras for the listed engine. These figures use the same core as the interactive calculator.
| Quantization | 2,048 tokens | 8,192 tokens | 32,768 tokens |
|---|---|---|---|
| BF16 safetensors | 335.07 GiB–336.97 GiB | 337.23 GiB–339.19 GiB | 345.85 GiB–348.07 GiB |
| GGUF Q4_K_M (Unsloth) | 202.43 GiB–206.85 GiB | 204.59 GiB–209.20 GiB | 213.21 GiB–218.43 GiB |
| GGUF Q5_K_M (Unsloth) | 237.63 GiB–242.75 GiB | 239.79 GiB–245.10 GiB | 248.41 GiB–254.33 GiB |
| GGUF Q6_K (Unsloth) | 275.00 GiB–280.87 GiB | 277.16 GiB–283.21 GiB | 285.78 GiB–292.44 GiB |
| GGUF Q8_0 (Unsloth) | 355.65 GiB–363.13 GiB | 357.80 GiB–365.48 GiB | 366.43 GiB–374.70 GiB |
| INT4 theoretical Theoretical rows are not downloadable artifacts. | 167.71 GiB–216.34 GiB | 169.86 GiB–219.03 GiB | 178.49 GiB–229.65 GiB |
Raw KV contribution
Standard GQA/MHA raw KV is 2 × layers × kvHeads × headDim × tokens × sequences × bytes per element. This page uses KV heads (8), not query heads (96). Using query heads would overstate this cache by 12×.
- 8,192 tokens, 1 sequence, FP16: 3,087,007,744 bytes (2.8750 GiB)
- 32,768 tokens: 12,348,030,976 bytes (11.5000 GiB)
Related pages
Sources
- GLM-4.5 model card
- config.json — revision cbb2c7cfb52fa128a9660cb1a7a78e017899e115
- safetensors index — metadata.total_size=358337791296
- Artifact repo unsloth/GLM-4.5-GGUF
Assumptions that affect this result
- Requested context is within the recorded native window of 131072 tokens.
- Full-resident weight estimates use total parameters, including inactive MoE experts.
- Activated parameter count is unknown / not independently sourced. Active parameters describe routed compute, not the full resident model weight footprint.
- Weight bytes come from the selected weight files only, not from every file in the repository.
- Download file size is not peak GPU memory. Runtime layout, allocator padding, and KV are extra.
- Counted files: Q4_K_M/GLM-4.5-Q4_K_M-00001-of-00005.gguf, Q4_K_M/GLM-4.5-Q4_K_M-00002-of-00005.gguf, Q4_K_M/GLM-4.5-Q4_K_M-00003-of-00005.gguf, Q4_K_M/GLM-4.5-Q4_K_M-00004-of-00005.gguf, Q4_K_M/GLM-4.5-Q4_K_M-00005-of-00005.gguf.
- Multi-token prediction / draft weights exist and are not included unless enabled.
- Context budget is the number of cached tokens per sequence (prompt plus reserved generation).
Calculator
Loading catalog snapshot…
Search or pick a catalog checkpoint to see memory demand.