QwenDenseApache 2.0

Qwen 3 4B

Qwen 3 4B is a dense transformer language model from the Qwen family, containing 4.02B parameters across 36 layers. It supports up to 33K tokens of context with a hidden dimension of 2560 and 8 KV heads for efficient grouped-query attention

4.0B

Parameters

32K

Max Context

Dense

Architecture

Released

Text

Modality

About Qwen 3 4B

Qwen 3 4B is a dense transformer language model from the Qwen family, containing 4.02B parameters across 36 layers. It supports up to 33K tokens of context with a hidden dimension of 2560 and 8 KV heads for efficient grouped-query attention (GQA). Apache 2.0. Thinking mode toggle. Great small local model.

Reasoning

Technical Specifications

Total Parameters4.0B
ArchitectureDense
Attention TypeGQA (Grouped Query Attention)
Hidden Dimensiond = 2,560
Transformer Layers36
Attention Heads32
KV Headsn_kv = 8
Head Dimensiond_head = 128
Activation FunctionSwiGLU
NormalizationRMSNorm
Position EmbeddingRoPE

System Requirements

Estimated VRAM at 10% overhead for different quantization methods and context sizes.

Quantization1K ctx32K ctx
Q4_K_M0.50 B/W
~97% of FP16
2.22Consumer GPU
6.58Consumer GPU
Q8_01.00 B/W
~100% of FP16
4.30Consumer GPU
8.66Consumer GPU
F162.00 B/W
Reference
8.45Consumer GPU
12.81Consumer GPU
Fits 24 GB consumer GPU
Fits 80 GB datacenter GPU
Requires cluster / multi-GPU

Other Qwen Models

View All

Find the right GPU for Qwen 3 4B

Use the interactive VRAM Calculator to see exactly how much memory you need at any quantization level, context length, and overhead setting.