Qwen · vision language

Qwen3.5-4B

Qwen/Qwen3.5-4B

Qwen3.5-4B at Q4_K_M is exactly 2,707,513,696 bytes (2.52 GiB / 2.71 GB) — an effective 4.648 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
4.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
UD-IQ2_XXS1.42 GiB1,520,217,2482.610unsloth
UD-IQ2_M1.64 GiB1,759,997,0883.022unsloth
UD-IQ2_M1.81 GiB1,942,548,8003.335unsloth
UD-IQ3_XXS1.82 GiB1,949,047,9683.346unsloth
UD-IQ3_XXS1.96 GiB2,103,521,6003.611unsloth
Q3_K_S1.96 GiB2,105,791,6483.615unsloth
Q3_K_S2.03 GiB2,177,505,6003.738unsloth
Q3_K_M2.14 GiB2,293,388,4483.937426unsloth
Q3_K_M2.21 GiB2,374,564,1604.077441unsloth
IQ4_XS2.31 GiB2,477,053,0884.253426unsloth
IQ4_NL2.40 GiB2,579,944,6084.429unsloth
Q4_02.41 GiB2,583,221,4084.435426unsloth
Q4_K_S2.41 GiB2,590,430,3684.447unsloth
IQ4_XS2.46 GiB2,642,012,4804.536441unsloth
Q4_02.49 GiB2,669,209,9204.582441unsloth
Q4_K_S2.50 GiB2,683,300,1604.607unsloth
Q4_K_M2.52 GiB2,707,513,6964.648426lmstudio-community
IQ4_NL2.54 GiB2,729,175,3604.685unsloth
Q4_K_M2.55 GiB2,740,937,8884.706unsloth
Q4_12.59 GiB2,784,416,9284.780unsloth
Q4_K_M2.64 GiB2,834,975,0404.867441unsloth
Q4_12.68 GiB2,877,122,8804.939unsloth
Q5_K_S2.82 GiB3,024,934,0485.193unsloth
Q5_K_S2.91 GiB3,124,357,4405.364unsloth
Q5_K_M2.93 GiB3,143,656,6085.397unsloth
Q5_K_M2.99 GiB3,212,790,0805.516441unsloth
Q6_K3.23 GiB3,464,055,1365.947lmstudio-community
Q6_K3.28 GiB3,525,956,7686.053426unsloth
Q6_K3.39 GiB3,639,654,7206.248unsloth
Q8_04.17 GiB4,482,402,6567.695lmstudio-community
Q8_04.17 GiB4,482,403,4887.695unsloth
Q8_04.29 GiB4,610,580,8007.915441unsloth
BF167.85 GiB8,424,393,63214.463unsloth
BF168.07 GiB8,665,620,54414.877unsloth

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 2.44 GiB. The real file is 2.52 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
2560
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-4B need?
Q4_K_M is exactly 2,707,513,696 bytes (2.52 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-4B'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-4B 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.