Qwen3 4B
Data checked: 2026-11-25. Review interval shown below. Prices need review after 30 days; specifications and benchmark collections after 90 days. Dates describe the recorded check, not a live retailer quote.
- Verified Checked against the primary source (for example the model’s config.json on Hugging Face).
- Sourced Taken from a cited source; not yet independently checked.
- Estimate Calculated with the published formulas; not a measurement.
- Sample Placeholder data for layout; not a real figure.
- Not yet measured No public, citable score found for this benchmark yet. We never fill the gap with a guess.
Verified metadata is not a measured performance result. Only cited runs matching model, device, quant and recorded context can replace speed estimates. Estimates assume one stream and F16 KV cache, with a ±25% uncertainty band. A published run applies only to its recorded runtime and conditions; missing settings are unknown.
Evidence labels · Freshness policy · Calculation methodology
At a glance
4.02B dense. Q4_K_M is 2.50 GB, small enough for a laptop. Native context is 32,768 tokens, and YaRN extends it.
At Q4_K_M and 8k context it needs about 4.3 GB: 2.5 GB of weights, 1.2 GB of KV cache and 0.6 GB of runtime overhead. It is dense, so every token reads all 2.5 GB of weights; speed scales with memory bandwidth.
Estimated setup
Quant | Q4_K_M |
|---|---|
Smallest standard card size at 8k | 16 GB |
Max context, 24 GB card | 32k |
Runtimes | llama.cpp, Ollama, LM Studio, MLX |
Quantization options
Total memory = weights + KV cache (F16) + runtime overhead. File sizes marked Verified are the sum of GGUF files from unsloth/Qwen3-4B-GGUF on the Hugging Face API. KV cache costs 0.147 MB per token before sliding-window savings.
Quant | bpw | File | At 8k | At 32k | At 128k | KL-divergence | 24 GB card, 8k |
|---|---|---|---|---|---|---|---|
| Q3_K_M | 3.91 | 2.1 GBVerified | 3.9 GB | 7.7 GB | — | — | Fits |
| Q4_K_M | 4.85 | 2.5 GBVerified | 4.3 GB | 8.1 GB | — | — | Fits |
| Q5_K_M | 5.69 | 2.9 GBVerified | 4.7 GB | 8.5 GB | — | — | Fits |
| Q6_K | 6.56 | 3.3 GBVerified | 5.1 GB | 8.9 GB | — | — | Fits |
| Q8_0 | 8.50 | 4.3 GBVerified | 6.1 GB | 9.9 GB | — | — | Fits |
| F16 | 16.00 | 8.1 GBVerified | 9.8 GB | 13.6 GB | — | reference | Fits |
Why this matters: What is quantization? · What is a KV cache?
Decode speed by device
Q4_K_M, single stream, 8k context. Estimates use the decode formula (η × bandwidth ÷ bytes per token; see methodology) and are ±25% until measured.
Speed table
Device | Verdict | Decode, tok/s | Range | Runtime |
|---|---|---|---|---|
| GeForce RTX 5090 32 GB | Fits | 290.0Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 5090 64 GB | Fits | 290.0Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA RTX PRO 6000 Blackwell 96 GB | Fits | 290.0Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4090 24 GB | Fits | 163.1Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 7900 XTX 24 GB | Fits | 155.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5080 16 GB | Fits | 155.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3090 24 GB (used) | Fits | 151.5Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 3090 (used) 48 GB | Fits | 151.5Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra (base) | Fits | 145.6Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra · 512 GB | Fits | 145.6Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 Ti 16 GB | Fits | 145.0Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4080 Super 16 GB | Fits | 119.1Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 12 GB | Fits | 108.7Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9070 XT 16 GB | Fits | 103.6Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max · 128 GB | Fits | 74.5Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc B580 12 GB | Fits | 73.8Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B60 24 GB | Fits | 73.8Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5060 Ti 16 GB | Fits | 72.5Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M4 Max 40c · 128 GB | Fits | 66.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3060 12 GB (used) | Fits | 58.3Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max (base) | Fits | 55.8Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9060 XT 16 GB | Fits | 51.8Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4060 Ti 16 GB | Fits | 46.6Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M5 Pro · 48 GB | Fits | 37.3Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B50 16 GB | Fits | 36.2Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 Pro · 48 GB | Fits | 33.1Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA DGX Spark FE 128 GB | Fits | 33.1Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 64 GB | Fits | 31.1Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 128 GB | Fits | 31.1Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 · 16 GB | Fits | 14.6Estimate | ±25% | llama.cpp (estimate) |
| MacBook Air M4 · 24 GB | Fits | 14.6Estimate | ±25% | llama.cpp (estimate) |
| CPU only · Ryzen 9 9950X + 128 GB DDR5 | Fits | 12.1Estimate | ±25% | llama.cpp (estimate) |
No exact match in the LMArena text overall board (lmarena-ai/leaderboard-dataset, published 2026-11-22). Checked 2026-11-25. Dataset
llama-perplexity --kl-divergence on a fixed corpus. Speed and quality are never merged into one score. Sample values are illustrative and must not be used to select a model.Architecture
Parameters, total | 4.02 BVerifiedsafetensors.total from the HF API. The model card rounds this to 4.0B. Source |
|---|---|
Parameters, active per token | 4.02 BVerifiedDense: all parameters active. The model card also lists 3.6B non-embedding parameters. Source |
Layers | 36VerifiedSource |
Query heads | 32VerifiedSource |
KV heads (GQA) | 8VerifiedSource |
Head dimension | 128VerifiedSource |
Hidden size | 2560VerifiedSource |
Operating conditions
Max context | 32,768 tokensSourcedconfig.json lists max_position_embeddings 40,960; the model card gives 32,768 native and 131,072 with YaRN. Source |
|---|---|
Licence | Apache-2.0VerifiedSource |
Weights | Qwen/Qwen3-4B |
GGUF files | unsloth/Qwen3-4B-GGUF |
Usable memory, discrete | VRAM − 0.5 GB2 |
Usable memory, unified | RAM × 0.752 |
Fits when | total ≤ 90% of usable2 |
1 Estimates: decode ≈ η × bandwidth ÷ (active weights + KV cache), η 0.60 discrete / 0.45 unified / 0.50 CPU (see methodology). Not measurements.
2 Fit rules (see methodology), including the 0.75 unified-memory factor used by canirun.ai.
Flags: Verified = checked against config.json / HF API; Sourced = from a cited source; Estimate = formula; Sample = placeholder. Markdown · JSON · Report a problem