GLM-4.6 VRAM & Memory Requirements
Specific checkpoints with sourced architecture and weight files. GGUF Q4_K_M (Unsloth): 203.78 GiB–208.37 GiB at 8,192 tokens, 1 sequence, FP16 KV, llama.cpp.
Publisher and provenance
- PublisherZhipu AI
- Hugging Face
zai-org/GLM-4.6 - Revision
be72194883d968d7923a07e2f61681ea9a2826d1 - Total parameters356,785,898,816
- Active parametersUnknown / not independently sourced
- Layers92
- Query heads96
- KV heads8 (gqa)
- Head dimension128
- Recorded context capability202,752
- 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
- 200.78 GiB (215,582,633,056 bytes)
- Raw KV cache
- 2.88 GiB (3,087,007,744 bytes)
- Engine extras / workspace
- 0.13 GiB–4.72 GiB
- Total estimated demand
- 203.78 GiB–208.37 GiB
Published artifacts
| Quantization | Selected files | Bytes | Engine | Evidence |
|---|---|---|---|---|
| BF16 safetensors bf16 | 352,797,829,024 (328.57 GiB / 352.80 GB) | vllm, sglang, unspecified | file-metadata | |
| GGUF Q4_K_M (Unsloth) gguf-q4_k_m | 215,582,633,056 (200.78 GiB / 215.58 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q5_K_M (Unsloth) gguf-q5_k_m | 253,179,899,136 (235.79 GiB / 253.18 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q6_K (Unsloth) gguf-q6_k | 293,098,654,944 (272.97 GiB / 293.10 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| GGUF Q8_0 (Unsloth) gguf-q8_0 | 379,317,898,752 (353.27 GiB / 379.32 GB) | llama.cpp, ollama, unspecified | file-metadata | |
| INT4 theoretical | No published file | 178,392,949,408 (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 | 329.91 GiB–331.81 GiB | 332.07 GiB–334.03 GiB | 340.69 GiB–342.91 GiB |
| GGUF Q4_K_M (Unsloth) | 201.62 GiB–206.03 GiB | 203.78 GiB–208.37 GiB | 212.40 GiB–217.60 GiB |
| GGUF Q5_K_M (Unsloth) | 236.64 GiB–241.74 GiB | 238.79 GiB–244.08 GiB | 247.42 GiB–253.31 GiB |
| GGUF Q6_K (Unsloth) | 273.81 GiB–279.66 GiB | 275.97 GiB–282.01 GiB | 284.59 GiB–291.23 GiB |
| GGUF Q8_0 (Unsloth) | 354.11 GiB–361.57 GiB | 356.27 GiB–363.91 GiB | 364.89 GiB–373.14 GiB |
| INT4 theoretical Theoretical rows are not downloadable artifacts. | 166.99 GiB–215.41 GiB | 169.14 GiB–218.10 GiB | 177.77 GiB–228.72 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.6 model card
- config.json — revision be72194883d968d7923a07e2f61681ea9a2826d1
- safetensors index — metadata.total_size=352797829024
- Artifact repo unsloth/GLM-4.6-GGUF
Assumptions that affect this result
- Requested context is within the recorded native window of 202752 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.6-Q4_K_M-00001-of-00005.gguf, Q4_K_M/GLM-4.6-Q4_K_M-00002-of-00005.gguf, Q4_K_M/GLM-4.6-Q4_K_M-00003-of-00005.gguf, Q4_K_M/GLM-4.6-Q4_K_M-00004-of-00005.gguf, Q4_K_M/GLM-4.6-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.