Qwen · text

Qwen3-8B

Qwen/Qwen3-8B

Qwen3-8B at Q4_K_M is exactly 5,027,783,488 bytes (4.68 GiB / 5.03 GB) — an effective 4.911 bits per weight, not the nominal 4. Its KV cache at 32K is 4.50 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
8.2B
Architecture
qwen3
36 layers
Context
40,960
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S2.12 GiB2,275,379,0082.222unsloth
UD-IQ1_M2.23 GiB2,396,489,5362.341unsloth
UD-IQ2_XXS2.43 GiB2,605,221,6962.545unsloth
IQ2_M2.84 GiB3,051,914,7842.981bartowski
UD-IQ2_M2.90 GiB3,110,897,4723.038unsloth
Q2_K3.06 GiB3,281,733,1523.205bartowski
Q2_K3.06 GiB3,281,733,4403.205unsloth
IQ3_XXS3.14 GiB3,369,633,3123.291bartowski
UD-IQ3_XXS3.18 GiB3,410,265,9203.331unsloth
Q2_K_L3.19 GiB3,427,592,0003.348unsloth
IQ3_XS3.38 GiB3,626,874,4003.542bartowski
Q3_K_S3.51 GiB3,769,611,8083.682bartowski
Q3_K_S3.51 GiB3,769,612,0963.682unsloth
Q2_K_L3.62 GiB3,889,477,1523.799bartowski
IQ3_M3.63 GiB3,896,620,5763.806bartowski
Q3_K_M3.84 GiB4,124,161,5684.028bartowski
Q3_K_M3.84 GiB4,124,161,8564.028399unsloth
Q3_K_L4.13 GiB4,431,394,0804.328lmstudio-community
Q3_K_L4.13 GiB4,431,394,3364.328bartowski
IQ4_XS4.25 GiB4,561,839,6484.456bartowski
IQ4_XS4.27 GiB4,581,287,7444.475399unsloth
Q4_04.46 GiB4,787,332,6404.676399bartowski
IQ4_NL4.46 GiB4,793,624,0964.682bartowski
IQ4_NL4.46 GiB4,793,624,3844.682unsloth
Q4_K_S4.47 GiB4,802,012,7044.690bartowski
Q4_K_S4.47 GiB4,802,012,9924.690unsloth
Q4_K_M4.68 GiB5,027,783,4884.911399Qwen
Q4_K_M4.68 GiB5,027,783,9684.911399lmstudio-community
Q4_K_M4.68 GiB5,027,784,2244.911bartowski
Q4_K_M4.68 GiB5,027,784,5124.911unsloth
Q4_14.89 GiB5,247,755,8085.126bartowski
Q4_14.89 GiB5,247,756,0965.126unsloth
Q4_K_L5.11 GiB5,489,669,6645.362bartowski
Q5_05.33 GiB5,720,761,1525.588Qwen
Q5_K_S5.33 GiB5,720,761,8885.588bartowski
Q5_K_S5.33 GiB5,720,762,1765.588unsloth
Q5_K_M5.45 GiB5,851,112,2245.715399Qwen
Q5_K_M5.45 GiB5,851,112,9925.715bartowski
Q5_K_M5.45 GiB5,851,113,2805.715unsloth
Q5_K_L5.81 GiB6,235,207,2006.090bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.56 GiB0.56 GiB36 / 0 / 0
8,1921.13 GiB1.13 GiB36 / 0 / 0
16,3842.25 GiB2.25 GiB36 / 0 / 0
32,7684.50 GiB4.50 GiB36 / 0 / 0
65,5369.00 GiB9.00 GiB36 / 0 / 0
131,07218.00 GiB18.00 GiB36 / 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 4.29 GiB. The real file is 4.68 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
36
Attention heads
32
KV heads
8
Head dim
128
Hidden size
4096
Vocab
151,936
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

Questions people ask

How much VRAM does Qwen3-8B need?
Q4_K_M is exactly 5,027,783,488 bytes (4.68 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-8B's KV cache?
4.50 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-8B 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.