zai-org · vision language

GLM-4.1V-9B-Thinking

zai-org/GLM-4.1V-9B-Thinking

GLM-4.1V-9B-Thinking at Q4_K_M is exactly 6,166,574,432 bytes (5.74 GiB / 6.17 GB) — an effective 4.793 bits per weight, not the nominal 4. Its KV cache at 32K is 1.25 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
10.3B
Architecture
glm4
40 layers
Context
65,536
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S2.98 GiB3,204,200,1282.490unsloth
UD-IQ1_M3.09 GiB3,318,150,8482.579unsloth
UD-IQ2_XXS3.27 GiB3,511,154,3682.729unsloth
UD-IQ2_M3.72 GiB3,992,024,7683.103unsloth
Q2_K3.73 GiB4,006,344,0323.114DevQuasar
Q2_K3.73 GiB4,006,344,3843.114unsloth
Q2_K3.73 GiB4,006,344,4803.114mradermacher
Q2_K_L3.87 GiB4,151,834,3043.227unsloth
UD-IQ3_XXS3.94 GiB4,234,835,6483.292unsloth
Q3_K_S4.28 GiB4,592,039,2643.569DevQuasar
Q3_K_S4.28 GiB4,592,039,6163.569unsloth
Q3_K_S4.28 GiB4,592,039,7123.569mradermacher
Q3_K_M4.63 GiB4,974,507,3603.866DevQuasar
Q3_K_M4.63 GiB4,974,507,7123.866unsloth
Q3_K_M4.63 GiB4,974,507,8083.866mradermacher
Q3_K_L4.84 GiB5,196,608,8644.039DevQuasar
Q3_K_L4.84 GiB5,196,609,3124.039mradermacher
IQ4_XS4.92 GiB5,281,674,9444.105unsloth
IQ4_XS4.95 GiB5,314,869,0244.131mradermacher
IQ4_NL5.09 GiB5,465,175,7444.248unsloth
Q4_05.10 GiB5,477,463,7444.257unsloth
Q4_K_S5.36 GiB5,758,481,7604.476DevQuasar
Q4_K_S5.36 GiB5,758,482,1124.476unsloth
Q4_K_S5.36 GiB5,758,482,2084.476mradermacher
Q4_15.60 GiB6,008,600,2564.670unsloth
Q4_K_M5.74 GiB6,166,574,4324.793DevQuasar
Q4_K_M5.74 GiB6,166,574,7844.793unsloth
Q4_K_M5.74 GiB6,166,574,8804.793mradermacher
Q5_K_S6.24 GiB6,697,514,3365.206DevQuasar
Q5_K_S6.24 GiB6,697,514,6885.206unsloth
Q5_K_S6.24 GiB6,697,514,7845.206mradermacher
Q5_K_M6.57 GiB7,050,917,2165.480DevQuasar
Q5_K_M6.57 GiB7,050,917,5685.480unsloth
Q5_K_M6.57 GiB7,050,917,6645.480mradermacher
Q6_K7.70 GiB8,266,642,7846.425DevQuasar
Q6_K7.70 GiB8,266,643,1366.425unsloth
Q6_K7.70 GiB8,266,643,2326.425mradermacher
Q8_09.31 GiB9,999,611,2327.772DevQuasar
Q8_09.31 GiB9,999,611,5847.772unsloth
Q8_09.31 GiB9,999,611,6807.772mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.16 GiB0.16 GiB40 / 0 / 0
8,1920.31 GiB0.31 GiB40 / 0 / 0
16,3840.63 GiB0.63 GiB40 / 0 / 0
32,7681.25 GiB1.25 GiB40 / 0 / 0
65,5362.50 GiB2.50 GiB40 / 0 / 0
131,0725.00 GiB5.00 GiB40 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 5.39 GiB. The real file is 5.74 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
32
KV heads
2
Head dim
128
Hidden size
4096
Vocab
151,552
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does GLM-4.1V-9B-Thinking need?
Q4_K_M is exactly 6,166,574,432 bytes (5.74 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is GLM-4.1V-9B-Thinking's KV cache?
1.25 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of GLM-4.1V-9B-Thinking should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.