Qwen · text

Qwen2-0.5B

Qwen/Qwen2-0.5B

Qwen2-0.5B at Q4_K_M is exactly 397,805,504 bytes (0.37 GiB / 0.40 GB) — an effective 6.442 bits per weight, not the nominal 4. Its KV cache at 32K is 0.38 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
494M
Architecture
qwen2
24 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S0.29 GiB315,826,5925.114legraphista
IQ1_M0.30 GiB317,971,6165.149legraphista
IQ2_XXS0.30 GiB321,546,6565.207legraphista
IQ2_XS0.30 GiB324,406,6885.253legraphista
IQ2_S0.30 GiB325,734,5605.275legraphista
IQ2_M0.31 GiB328,594,5925.321legraphista
IQ2_M0.31 GiB328,594,8805.321liodon-ai
Q2_K_S0.31 GiB331,046,0485.361legraphista
IQ3_XXS0.31 GiB333,701,7925.404legraphista
Q3_K_S0.32 GiB338,260,6405.478legraphista
IQ3_XS0.32 GiB338,604,7045.483legraphista
IQ3_S0.32 GiB338,604,7045.483legraphista
Q2_K0.32 GiB338,604,7045.483legraphista
IQ3_M0.32 GiB342,749,6005.550legraphista
IQ3_M0.32 GiB342,749,8885.550liodon-ai
IQ4_XS0.33 GiB349,399,7125.658legraphista
IQ4_XS0.33 GiB349,400,0005.658liodon-ai
IQ4_NL0.33 GiB352,668,3205.711legraphista
Q3_K0.33 GiB355,463,8405.756legraphista
Q3_K_L0.34 GiB369,355,4245.981legraphista
Q4_K_S0.36 GiB385,469,0886.242legraphista
Q4_K0.37 GiB397,805,2166.442legraphista
Q4_K_M0.37 GiB397,805,5046.442liodon-ai
Q5_K_S0.38 GiB412,707,2326.683legraphista
Q5_K0.39 GiB420,083,1046.803legraphista
Q5_K_M0.39 GiB420,083,6486.803liodon-ai
Q6_K0.47 GiB505,733,5368.190legraphista
Q6_K0.47 GiB505,734,0808.190liodon-ai
Q8_00.49 GiB531,065,2488.600legraphista
Q8_00.49 GiB531,065,7928.600liodon-ai
BF160.93 GiB994,153,88816.099legraphista

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.05 GiB0.05 GiB24 / 0 / 0
8,1920.09 GiB0.09 GiB24 / 0 / 0
16,3840.19 GiB0.19 GiB24 / 0 / 0
32,7680.38 GiB0.38 GiB24 / 0 / 0
65,5360.75 GiB0.75 GiB24 / 0 / 0
131,0721.50 GiB1.50 GiB24 / 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 0.26 GiB. The real file is 0.37 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
24
Attention heads
14
KV heads
2
Head dim
64
Hidden size
896
Vocab
151,936
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 Qwen2-0.5B need?
Q4_K_M is exactly 397,805,504 bytes (0.37 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Qwen2-0.5B's KV cache?
0.38 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 Qwen2-0.5B 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.