z-lab · text

Qwen3.5-4B-DFlash

z-lab/Qwen3.5-4B-DFlash

Qwen3.5-4B-DFlash at Q4_K_M is exactly 381,456,064 bytes (0.36 GiB / 0.38 GB) — an effective 4.810 bits per weight, not the nominal 4. Its KV cache at 32K is 0.21 GiB, not the 0.75 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
634M
Architecture
dflash
6 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.23 GiB243,707,5843.073Anbeeld
Q3_K_M0.29 GiB313,585,3443.954Anbeeld
Q4_K_M0.36 GiB381,456,0644.810Anbeeld
Q5_K_M0.42 GiB454,201,0245.727Anbeeld
Q6_K0.49 GiB531,492,5446.702Anbeeld
Q8_00.64 GiB685,133,5048.639Anbeeld
Q8_00.64 GiB685,133,9848.639AtomicChat
BF161.19 GiB1,279,872,70416.139Anbeeld

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.09 GiB0.09 GiB1 / 5 / 0
8,1920.12 GiB0.19 GiB1.57×1 / 5 / 0
16,3840.15 GiB0.38 GiB2.49×1 / 5 / 0
32,7680.21 GiB0.75 GiB3.52×1 / 5 / 0
65,5360.34 GiB1.50 GiB4.44×1 / 5 / 0
131,0720.59 GiB3.00 GiB5.10×1 / 5 / 0

5 of 6 layers cache only a 4,096-token window rather than the full context, on a period of . Figures assume the default configuration; --swa-full disables the saving entirely.

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 0.33 GiB. The real file is 0.36 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 0.75 GiB at 32K context where the real figure is 0.21 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
6
Attention heads
32
KV heads
8
Head dim
128
Hidden size
2560
Vocab
248,320
Sliding window
4096
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
true

Questions people ask

How much VRAM does Qwen3.5-4B-DFlash need?
Q4_K_M is exactly 381,456,064 bytes (0.36 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-DFlash's KV cache?
0.21 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-DFlash 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.