GLM-4-9B-0414 VRAM & Memory Requirements

Specific checkpoints with sourced architecture and weight files. GGUF Q4_K_M (Unsloth): 6.18 GiB–6.69 GiB at 8,192 tokens, 1 sequence, FP16 KV, llama.cpp.

This result is an estimate, not a measured trace.Not verifiedFile-backed weights

Runs on

Publisher and provenance

Memory layers in this estimate

Artifact bytes, raw KV, engine extras, and total demand are separate. This is not a runtime trace.

Weight artifact
5.74 GiB (6,166,574,944 bytes)
Raw KV cache
0.31 GiB (335,544,320 bytes)
Engine extras / workspace
0.13 GiB–0.64 GiB
Total estimated demand
6.18 GiB–6.69 GiB

Published artifacts

QuantizationSelected filesBytesEngineEvidence
BF16 safetensors
bf16
model-00001-of-00004.safetensors, model-00002-of-00004.safetensors, model-00003-of-00004.safetensors, model-00004-of-00004.safetensors18,800,558,080 (17.51 GiB / 18.80 GB)vllm, sglang, unspecifiedfile-metadata
GGUF Q4_K_M (Unsloth)
gguf-q4_k_m
GLM-4-9B-0414-Q4_K_M.gguf6,166,574,944 (5.74 GiB / 6.17 GB)llama.cpp, ollama, unspecifiedfile-metadata
GGUF Q5_K_M (Unsloth)
gguf-q5_k_m
GLM-4-9B-0414-Q5_K_M.gguf7,050,917,728 (6.57 GiB / 7.05 GB)llama.cpp, ollama, unspecifiedfile-metadata
GGUF Q6_K (Unsloth)
gguf-q6_k
GLM-4-9B-0414-Q6_K.gguf8,266,643,296 (7.70 GiB / 8.27 GB)llama.cpp, ollama, unspecifiedfile-metadata
GGUF Q8_0 (Unsloth)
gguf-q8_0
GLM-4-9B-0414-Q8_0.gguf9,999,611,744 (9.31 GiB / 10.00 GB)llama.cpp, ollama, unspecifiedfile-metadata
INT4 theoreticalNo published file4,700,139,520 (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.

Quantization2,048 tokens8,192 tokens32,768 tokens
BF16 safetensors18.21 GiB–20.09 GiB18.45 GiB–20.33 GiB19.38 GiB–21.30 GiB
GGUF Q4_K_M (Unsloth)5.95 GiB–6.44 GiB6.18 GiB–6.69 GiB7.12 GiB–7.70 GiB
GGUF Q5_K_M (Unsloth)6.77 GiB–7.28 GiB7.00 GiB–7.53 GiB7.94 GiB–8.54 GiB
GGUF Q6_K (Unsloth)7.90 GiB–8.43 GiB8.14 GiB–8.69 GiB9.07 GiB–9.69 GiB
GGUF Q8_0 (Unsloth)9.52 GiB–10.08 GiB9.75 GiB–10.33 GiB10.69 GiB–11.34 GiB
INT4 theoretical
Theoretical rows are not downloadable artifacts.
4.58 GiB–6.30 GiB4.81 GiB–6.60 GiB5.75 GiB–7.75 GiB

Raw KV contribution

Standard GQA/MHA raw KV is 2 × layers × kvHeads × headDim × tokens × sequences × bytes per element. This page uses KV heads (2), not query heads (32). Using query heads would overstate this cache by 16×.

Open the calculator with this model

Related pages

Sources

Assumptions that affect this result

Calculator

Loading catalog snapshot…

Choose a model first, then check a device.

Quantization

Device type

Workload

Context length primarily affects KV cache memory.

Advanced settings
Runtime

Engine and KV cache type for this estimate.

Workload

Overhead scenario and the prefill workspace.

Topology

How the model is split across devices. Memory is not added together.

Replica count is an advanced deployment option. Quantity is nodes or GPUs, not replicas.

Budget

System reserve and safety margin. An empty number keeps the previous value.

GiB (2^30 bytes)

%

Custom model

Import a config or type the architecture. Nothing is scanned until you import.

Parsed in the browser. The file is not uploaded.

Only huggingface.co, config.json, no token. Private repos are rejected.

Search or pick a catalog checkpoint to see memory demand.

Search or pick a catalog checkpoint to see memory demand.