THU-KEG · text

LongWriter-Zero-32B

THU-KEG/LongWriter-Zero-32B

LongWriter-Zero-32B at Q4_K_M is exactly 19,851,336,832 bytes (18.49 GiB / 19.85 GB) — an effective 4.847 bits per weight, not the nominal 4. Its KV cache at 32K is 8.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
32.8B
Architecture
qwen2
64 layers
Context
32,768
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XS9.27 GiB9,957,551,2322.431bartowski
IQ2_S9.67 GiB10,387,569,7922.536bartowski
IQ2_M10.49 GiB11,264,441,4722.751bartowski
Q2_K11.47 GiB12,313,099,3923.006bartowski
Q2_K11.47 GiB12,313,099,5523.006mradermacher
IQ3_XXS11.96 GiB12,839,271,5523.135bartowski
Q2_K_L12.18 GiB13,073,419,3923.192bartowski
IQ3_XS12.76 GiB13,705,514,1123.346bartowski
Q3_K_S13.40 GiB14,392,331,3923.514bartowski
Q3_K_S13.40 GiB14,392,331,5523.514mradermacher
IQ3_M13.79 GiB14,810,123,3923.616bartowski
Q3_K_M14.84 GiB15,935,048,8323.891bartowski
Q3_K_M14.84 GiB15,935,048,9923.891mradermacher
Q3_K_L16.06 GiB17,247,079,5524.211bartowski
Q3_K_L16.06 GiB17,247,079,7124.211mradermacher
IQ4_XS16.48 GiB17,693,154,4324.320bartowski
IQ4_XS16.64 GiB17,870,101,7924.363mradermacher
IQ4_NL17.40 GiB18,682,174,5924.562bartowski
Q4_017.43 GiB18,711,010,4324.569bartowski
Q4_K_S17.49 GiB18,784,410,7524.587bartowski
Q4_K_S17.49 GiB18,784,410,9124.587mradermacher
Q4_K_M18.49 GiB19,851,336,8324.847bartowski
Q4_K_M18.49 GiB19,851,336,9924.847mradermacher
Q4_K_L19.03 GiB20,429,180,0324.988bartowski
Q4_119.22 GiB20,639,243,3925.040bartowski
Q5_K_S21.08 GiB22,638,255,2325.528bartowski
Q5_K_S21.08 GiB22,638,255,3925.528mradermacher
Q5_K_M21.66 GiB23,262,157,9525.680bartowski
Q5_K_M21.66 GiB23,262,158,1125.680mradermacher
Q5_K_L22.11 GiB23,742,680,1925.797bartowski
Q6_K25.04 GiB26,886,155,3926.565bartowski
Q6_K25.04 GiB26,886,155,5526.565mradermacher
Q6_K_L25.39 GiB27,263,274,1126.657bartowski
Q8_032.43 GiB34,820,885,6328.502bartowski
Q8_032.43 GiB34,820,885,7928.502mradermacher
BF162 shards61.04 GiB65,535,970,36816.002bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.00 GiB1.00 GiB64 / 0 / 0
8,1922.00 GiB2.00 GiB64 / 0 / 0
16,3844.00 GiB4.00 GiB64 / 0 / 0
32,7688.00 GiB8.00 GiB64 / 0 / 0
65,53616.00 GiB16.00 GiB64 / 0 / 0
131,07232.00 GiB32.00 GiB64 / 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 17.16 GiB. The real file is 18.49 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
64
Attention heads
40
KV heads
8
Head dim
128
Hidden size
5120
Vocab
152,064
Sliding window
131072
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

This model declares a sliding window but sets use_sliding_window: false, so the window is not applied. Honouring the field without the flag understates KV for the whole family.

Questions people ask

How much VRAM does LongWriter-Zero-32B need?
Q4_K_M is exactly 19,851,336,832 bytes (18.49 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is LongWriter-Zero-32B's KV cache?
8.00 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 LongWriter-Zero-32B 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.