Qwen · text

Qwen3-4B-Instruct-2507

Qwen/Qwen3-4B-Instruct-2507

Qwen3-4B-Instruct-2507 at Q4_K_M is exactly 2,497,280,448 bytes (2.33 GiB / 2.50 GB) — an effective 4.967 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
4.0B
Architecture
qwen3
36 layers
Context
262,144
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S1.01 GiB1,083,149,9202.154unsloth
UD-IQ1_M1.06 GiB1,143,484,0002.274unsloth
UD-IQ2_XXS1.17 GiB1,255,345,7602.497unsloth
IQ2_M1.41 GiB1,512,983,7763.009bartowski
UD-IQ2_M1.43 GiB1,530,402,4003.044unsloth
Q2_K1.55 GiB1,669,499,6163.320bartowski
Q2_K_L1.55 GiB1,669,500,0003.320unsloth
Q2_K1.55 GiB1,669,500,0003.320unsloth
IQ3_XXS1.56 GiB1,670,188,2563.322bartowski
UD-IQ3_XXS1.56 GiB1,674,376,8003.330unsloth
Q2_K_L1.64 GiB1,763,699,9363.508bartowski
IQ3_XS1.69 GiB1,814,375,1363.608bartowski
Q3_K_S1.76 GiB1,886,997,2163.753bartowski
Q3_K_S1.76 GiB1,886,997,6003.753unsloth
IQ3_M1.83 GiB1,962,896,0963.904bartowski
Q3_K_M1.93 GiB2,075,618,0164.128398bartowski
Q3_K_M1.93 GiB2,075,618,4004.128unsloth
Q3_K_L2.09 GiB2,239,785,4084.455lmstudio-community
Q3_K_L2.09 GiB2,239,785,6964.455bartowski
IQ4_XS2.11 GiB2,270,751,4564.516398bartowski
IQ4_XS2.11 GiB2,270,751,8404.516398unsloth
Q4_02.21 GiB2,375,772,8964.725398bartowski
Q4_02.21 GiB2,375,773,2804.725398unsloth
IQ4_NL2.22 GiB2,381,343,4564.736bartowski
IQ4_NL2.22 GiB2,381,343,8404.736unsloth
Q4_K_S2.22 GiB2,383,309,5364.740bartowski
Q4_K_S2.22 GiB2,383,309,9204.740unsloth
Q4_K_M2.33 GiB2,497,280,4484.967398lmstudio-community
Q4_K_M2.33 GiB2,497,280,7364.967bartowski
Q4_K_M2.33 GiB2,497,281,1204.967398unsloth
Q4_K_L2.41 GiB2,591,481,0565.154bartowski
Q4_12.42 GiB2,596,629,2165.164bartowski
Q4_12.42 GiB2,596,629,6005.164unsloth
Q5_K_S2.63 GiB2,823,711,4565.616bartowski
Q5_K_S2.63 GiB2,823,711,8405.616unsloth
Q5_K_M2.69 GiB2,889,513,6965.747398bartowski
Q5_K_M2.69 GiB2,889,514,0805.747398unsloth
Q5_K_L2.78 GiB2,983,714,0165.934bartowski
Q6_K3.08 GiB3,306,260,9286.576398lmstudio-community
Q6_K3.08 GiB3,306,261,2166.576bartowski

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 2.11 GiB. The real file is 2.33 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
2560
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-4B-Instruct-2507 need?
Q4_K_M is exactly 2,497,280,448 bytes (2.33 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-4B-Instruct-2507'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-4B-Instruct-2507 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.