Qwen · text

Qwen3.5-4B-Base

Qwen/Qwen3.5-4B-Base

Qwen3.5-4B-Base at Q4_K_M is exactly 2,708,804,608 bytes (2.52 GiB / 2.71 GB) — an effective 4.650 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
cc-by-nc-4.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.78 GiB1,915,470,8483.288mradermacher
Q3_K_S1.93 GiB2,069,879,8083.554mradermacher
Q3_K_M2.11 GiB2,262,064,1283.884mradermacher
Q3_K_L2.26 GiB2,421,316,6084.157mradermacher
IQ4_XS2.36 GiB2,529,031,1684.342mradermacher
Q4_K_S2.39 GiB2,563,888,1284.402mradermacher
Q4_K_M2.52 GiB2,708,804,6084.650mradermacher
Q5_K_S2.78 GiB2,990,035,9685.133mradermacher
Q5_K_M2.86 GiB3,074,987,0085.279mradermacher
Q6_K3.23 GiB3,464,055,8085.947mradermacher
Q8_04.17 GiB4,482,403,0727.695lolzinventor
Q8_04.17 GiB4,482,403,3287.695mradermacher
BF167.85 GiB8,424,393,47214.463lolzinventor
F167.85 GiB8,424,393,72814.463mradermacher

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-Base need?
Q4_K_M is exactly 2,708,804,608 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-Base'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-Base 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.
Qwen3.5-4B-Base — VRAM requirements, exact quant sizes — ossmodeldb