Parameters
4B
Context Length
33K
Modality
Text
Architecture
Dense
License
Apache 2.0
Release Date
29 Apr 2025
Knowledge Cutoff
Mar 2025
API Pricing (per 1M)
Input: $0.03 · Output: $0.15
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
32,768 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
Rank
#173
| Benchmark | Score | Rank |
|---|---|---|
Intelligence Index | auto 0.09 Standard 0.07 | 227 251 |
Overall Rank
#173
Coding Rank
-
Qwen3-4B is a compact dense language model by Alibaba Cloud engineered with native dual-mode reasoning for mathematics, coding, and interactive dialogue. It supports dynamic thinking budget allocation across an extensible 131K token context window.
Attention
Attention Structure
Grouped-Query Attention
Attention Heads
48
Key-Value Heads
8
Attention Head Dimension
128
Position Embedding
ROPE
RoPE Theta
1,000,000
Sliding Window Attention
No
Sliding Window Size
-
Sliding Window Ratio
-
Linear Attention
-
Linear Attention Ratio
-
Normalization
RMS Normalization
Activation Function
Swish
Dimensions
Hidden Dimension Size
4,096
Number of Layers
40
FFN Intermediate Size (Dense)
9,728
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
151,936
The Alibaba Qwen 3 model family comprises dense and Mixture-of-Experts (MoE) architectures, with parameter counts from 0.6B to 235B. Key innovations include a hybrid reasoning system, offering 'thinking' and 'non-thinking' modes for adaptive processing, and support for extensive context windows, enhancing efficiency and scalability.
Assistant
Online