armand0e · text

Qwen3.5-9B-Coder

armand0e/Qwen3.5-9B-Coder

Qwen3.5-9B-Coder at Q4_K_M is exactly 5,780,092,864 bytes (5.38 GiB / 5.78 GB) — an effective 4.790 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
9.7B
Architecture
qwen35
32 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K3.65 GiB3,914,971,0723.244mradermacher
I1-Q2_K3.65 GiB3,914,971,3283.244mradermacher
Q3_K_S4.06 GiB4,364,023,7443.617mradermacher
I1-Q3_K_S4.06 GiB4,364,024,0003.617mradermacher
I1-IQ3_S4.17 GiB4,475,992,2563.709mradermacher
I1-IQ3_M4.21 GiB4,522,784,9603.748mradermacher
Q3_K_M4.41 GiB4,737,611,7123.926mradermacher
I1-Q3_K_M4.41 GiB4,737,611,9683.926mradermacher
Q3_K_L4.70 GiB5,048,514,4964.184mradermacher
I1-Q3_K_L4.70 GiB5,048,514,7524.184mradermacher
I1-IQ4_XS4.96 GiB5,326,420,1604.414mradermacher
IQ4_XS4.99 GiB5,357,877,1844.440mradermacher
I1-Q4_05.09 GiB5,462,866,1124.527mradermacher
Q4_K_S5.11 GiB5,488,555,9684.549mradermacher
I1-Q4_K_S5.11 GiB5,488,556,2244.549mradermacher
I1-IQ4_NL5.17 GiB5,555,665,0884.604mradermacher
Q4_K_M5.38 GiB5,780,092,8644.790mradermacher
I1-Q4_K_M5.38 GiB5,780,093,1204.790mradermacher
I1-Q4_15.55 GiB5,961,464,0004.941mradermacher
Q5_K_S6.03 GiB6,472,644,5445.364mradermacher
I1-Q5_K_S6.03 GiB6,472,644,8005.364mradermacher
Q5_K_M6.19 GiB6,642,546,6245.505mradermacher
I1-Q5_K_M6.19 GiB6,642,546,8805.505mradermacher
Q6_K7.04 GiB7,558,903,7446.264mradermacher
I1-Q6_K7.04 GiB7,558,904,0006.264mradermacher
Q8_09.11 GiB9,786,062,7848.110mradermacher
F1617.14 GiB18,407,323,58415.255mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.50 GiB4.00×8 / 0 / 24
8,1920.25 GiB1.00 GiB4.00×8 / 0 / 24
16,3840.50 GiB2.00 GiB4.00×8 / 0 / 24
32,7681.00 GiB4.00 GiB4.00×8 / 0 / 24
65,5362.00 GiB8.00 GiB4.00×8 / 0 / 24
131,0724.00 GiB16.00 GiB4.00×8 / 0 / 24

24 of 32 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 4.0× at long context.

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.06 GiB. The real file is 5.38 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
16
KV heads
4
Head dim
256
Hidden size
4096
Vocab
248,320
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Qwen3.5-9B-Coder need?
Q4_K_M is exactly 5,780,092,864 bytes (5.38 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Qwen3.5-9B-Coder's KV cache?
1.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 Qwen3.5-9B-Coder 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.