zai-org · vision language

glm-4v-9b

zai-org/glm-4v-9b

glm-4v-9b at Q4_K_M is exactly 6,166,574,560 bytes (5.74 GiB / 6.17 GB) — an effective 3.547 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
13.9B
Architecture
glm4
null layers
Context
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K3.73 GiB4,006,344,1602.305Luckybalabala
Q3_K_S4.28 GiB4,592,039,3922.642Luckybalabala
Q3_K_M4.63 GiB4,974,507,4882.862Luckybalabala
Q3_K_L4.84 GiB5,196,608,9922.990Luckybalabala
Q4_05.08 GiB5,459,932,6403.141Luckybalabala
Q4_K_S5.36 GiB5,758,481,8883.313Luckybalabala
Q4_15.60 GiB6,008,600,0323.457Luckybalabala
Q4_K_M5.74 GiB6,166,574,5603.547Luckybalabala
Q5_06.11 GiB6,557,267,4243.772Luckybalabala
Q5_K_S6.24 GiB6,697,514,4643.853Luckybalabala
Q5_K_M6.57 GiB7,050,917,3444.056Luckybalabala
Q5_16.62 GiB7,105,934,8164.088Luckybalabala
Q6_K7.70 GiB8,266,642,9124.756Luckybalabala
Q8_09.31 GiB9,999,611,3605.753Luckybalabala

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 7.29 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
Attention heads
32
KV heads
32
Head dim
128
Hidden size
4096
Vocab
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does glm-4v-9b need?
Q4_K_M is exactly 6,166,574,560 bytes (5.74 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Which quantization of glm-4v-9b 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.