whatmodel.sh / Qwen3 4B
Qwen3 4B
↗ share
+ contribute
Qwen3 4B is an open-weights language model from Alibaba, released April 2025. Its published size is 4.02B parameters and a 33k-token context window. Licence: apache-2.0.
Catalogue identity notes
Comparison model from the Epoch AI internal-evaluation CSVs (Epoch release date 2025-04-29). Original April 2025 hybrid-thinking checkpoint Qwen/Qwen3-4B; distinct from qwen3-4b-instruct-2507 / -thinking-2507. Default (thinking) runs used where present; the chess result is the only published run ('qwen3-4b_none'). 4,022,468,096 parameters. ollama qwen3:4b now points to the Thinking-2507 build, so the original tags are pinned explicitly.
$ how it compares
The LLMs ranked either side of Qwen3 4B, out of 828 with a score, then more from Alibaba.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 393 | 51±2 | local | |||
| 394 | 51±1 | local | |||
| 395 | 51±1 | local | |||
| 396 | 51±1 | comparison only | |||
| 397 | Llama-3-Instruct-8B-SimPO-ExPO | 51±1 | local | ||
| more from Alibaba | |||||
| 18 | 78±1 | api $3.00/M +local | |||
| 34 | 76±1 | api $3.00/M | |||
| 37 | 75±1 | local | |||
$ what it's good at
agent tasks▁▁▃▆█▆▅▅▅▄▃▁ #214 of 300 · 16% of its score · 8 tests
Beats o1 (2024-12-17), o3-mini, DeepSeek R1 (Jan '25) here, though they rank higher overall. Trails SmolLM3 3B, Jamba 1.5 Mini, Granite 4.1 3B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| τ²-bench Telecom lab +1 | 17.5% ✎ | ▁·▅█▆▅▂▃▃▂▃▁ beats 11/89 | 4.9% |
| τ-bench Retail lab +1 | 33.9% ✎ | ▁····▃·▂▇█▂▆ beats 3/28 | 2.8% |
| τ²-bench Retail lab +1 | 38.6% ✎ | ▁····▃▁▃▆█▃▁ beats 2/44 | 2.3% |
| τ-bench Airline lab +1 | 32.0% ✎ | ▁▁▁·▅▄▁█▇▁▁▇ beats 3/28 | 1.9% |
| τ²-bench Airline lab +1 | 28.0% ✎ | ▁▃·▂▁▃▂▁█▅▂▃ beats 1/42 | 1.6% |
| BFCL v3 +2 | 63.4% ✎ | ▁▁▁▁▁▃▅█▅▄▁▁ beats 91/114 | 1.5% |
| EEGAgentBench overall (tool-based EEG analysis agents, 6 tasks) | 29.9% ✎ | ▂·▃▁··▇▇█▂·▁ beats 2/25 | 0.7% |
| BFCL (version not stated) | 95.5% ✎ | ▄▆▄▂·█▆·▄··▃ beats 17/17 | 0.5% |
coding▁▁▁▃▆██▇▆▄▃▁ #292 of 458 · 7.7% of its score · 4 tests
Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), GLM-4.7-Flash here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Yi 1.5 9B Chat here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Aider polyglot (225 exercises, two attempts) lab | 13.8% ✎ | ▂▁▁▃▆▃▄▆█▃▄▂ beats 13/71 | 3.3% |
| LiveCodeBench v6 (Feb–May 2025) lab +1 | 48.4% ✎ | ▁▁▃▃█▅▄▇▅▅▃█ beats 4/38 | 2.5% |
| MultiPL-E lab | 66.6% ✎ | ▃··▄·▅▅▇▄█▃▄ beats 15/31 | 1.1% |
| LiveCodeBench v4 | 52.9% ✎ | █·█········█ beats 2/2 | 0.9% |
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #244 of 393 · 9.5% of its score · 5 tests
Beats Mistral Small 4 (119B-A6.5B), Ministral 3 14B Reasoning 2512, Qwen2.5 Coder 32B Instruct here, though they rank higher overall. Trails Flan-T5 XXL, Granite 4.0 H 1B, LFM2 2.6B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Arena-Hard v2 aggregate lab +1 | 13.7% ✎ | ▃▁··▄▃▁▃█▁▁▇ beats 0/22 | 3.1% |
| Arena-Hard v2.0 hard prompts (style control, Gemini-2.5 judge) | 15.0% ✎ | ▂·▃▅▅·▃█▆▂▂▂ beats 4/22 | 2.3% |
| IFEval (aggregation unspecified) lab +2 | 81.9% ✎ | ▁▁▃▁▂▄▄▆█▃▂▁ beats 76/141 | 2.2% |
| IFEval mean of four measures | 85.6% ✎ | █··▄▄·▄····▄ beats 5/5 | 1.3% |
| Arena-Hard v2.0 creative writing (GPT-4.1 + Gemini-2.5 judges) | 13.2% ✎ | ▆▃▂▆▂▂▃█▂▃·▂ beats 4/22 | 0.6% |
math▁▂▃▅▆▅▄█▄▁▁▁ #214 of 398 · 15% of its score · 5 tests
Beats DeepSeek V3 (Dec '24), GPT-4o (2024-08-06), Command A (03-2025) here, though they rank higher overall. Trails Olmo 3 7B Instruct, DeepSeek R1 Distill Llama 8B, Phi-4-mini-reasoning 3.8B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| AIME 2025 lab +2 | 65.6% ✎ | ▁·▁▁▁▂▅▆█▇▅▁ beats 56/133 | 7.1% |
| HMMT 2025 (edition unspecified) lab +1 | 42.1% ✎ | ▃█▇▅▇▅▁·▁··▁ beats 5/32 | 4.5% |
| PolyMATH lab +1 | 40.0% ✎ | ▁···▃▁·▇█▄▄▄ beats 4/23 | 1.9% |
| MATH-500 | 85.6% ✎ | ▃····▃·█···▃ beats 5/5 | 1.1% |
| GSM8K loose substring accuracy | 68.5% ✎ | █·█··███···█ beats 0/5 | 0.1% |
other tests30 not in a task · 52% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA Diamond +2 | 52.3% ✎ | ▁▁▁▁▂▄▆▄▅▇█▅ beats 74/208 | 10% |
| MMLU-Pro +2 | 52.3% ✎ | ███···██···█ beats 5/5 | 5.1% |
| GPQA (subset unspecified) lab +1 | 55.9% ✎ | ▂▁▂▂▄▃▆▃▅█▄▃ beats 58/104 | 4.6% |
| MMLU-Redux lab +1 | 83.7% ✎ | ▁▁▃▁▂▃▄▅▇▅█▄ beats 15/63 | 2.9% |
| INCLUDE lab +1 | 61.8% ✎ | ▂····▂▂▄▄▄█▄ beats 13/36 | 2.6% |
| MMLU | 72.3% ✎ | ▄█···█·····▄ beats 5/5 | 2.1% |
| SuperGPQA lab +1 | 42.7% ✎ | ▂▁▂▂▅▆▃▇▇▇█▃ beats 13/46 | 1.8% |
| IFBench (aggregation unspecified) | 30.3% ✎ | █··███··█··█ beats 5/5 | 1.8% |
22 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MMLU-ProX lab +1 | 61.0% ✎ | ▁·▁▁▁▃▁▃▂█▅▄ beats 4/35 | 1.7% |
| Creative Writing v3 lab +1 | 61.1% ✎ | ▃····▂▆··▆█▆ beats 0/14 | 1.7% |
| WritingBench lab +1 | 73.5% ✎ | ▃·▁▂▁··▅█▂▂▁ beats 0/20 | 1.6% |
| LiveBench 2024-11-25 lab +1 | 63.6% ✎ | ▄··▂·▂·▂█▆▂▂ beats 1/13 | 1.6% |
| BRIDGE clinical text, zero-shot average (87 tasks) | 38.5% ✎ | ▁▁▁▁▁▂▂▃▄▆█▃ beats 63/97 | 1.5% |
| Multi-IF (aggregation unspecified) lab +1 | 66.3% ✎ | ▁▁▁▁▁▁▃▄█▄▁▂ beats 9/41 | 1.5% |
| MMMLU seven languages (Liquid) | 60.7% ✎ | ▄·█····█···▄ beats 5/5 | 1.3% |
| Open Persian LLM Leaderboard v2 average (21 tasks) | 50.5% ✎ | ▂▄▂▃█▄▃▆▃▅▂▂ beats 33/81 | 1.2% |
| Multi-IF three-turn average | 75.5% ✎ | ▄··█▄··▄···▄ beats 5/5 | 1.2% |
| KINA (Knowledge Index of Noah's Ark) accuracy, 899 ten-option items | 21.5% ✎ | ▁▁▂▁▃▄█▆▄▅▂▃ beats 5/39 | 1.2% |
| OJBench lab | 16.1% ✎ | ▁···▁▃·▅▄▅██ beats 4/26 | 1.0% |
| Global-MMLU | 73.3% ✎ | ▃▅▃·▃···▅·▅█ beats 4/11 | 0.9% |
| MGSM six languages, loose (Liquid) | 81.8% ✎ | ▄·▄·█···▄··▄ beats 4/5 | 0.7% |
| MixEval-Hard | 38.0% ✎ | █····█·····█ beats 2/2 | 0.7% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 76.2% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 231/276 | 0.6% |
| GSM-Plus +1 | 56.2% ✎ | █·····███·██ beats 1/5 | 0.6% |
| ZebraLogic lab | 35.2% ✎ | █·▁▁▁▇·▄▄▁▄▁ beats 4/24 | 0.5% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 70.8% ✎ | ▃·▁▁▂▁▂▅█▇▄▁ beats 53/100 | 0.5% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 82.4% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 78/146 | 0.3% |
| Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate) | 97.3% ✎ | ▁▁▂▃▄▄█▆▃▂▂▁ beats 111/140 | 0.2% |
| Chess Puzzles (Epoch) | 1.0% ✎ | █▁▁▁▁▂▁▄▂▂▁▁ beats 2/135 | 0.1% |
| Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate) | 94.3% ✎ | ▁▂▁▂▅█▂▃▄▃▁▁ beats 79/98 | 0.0% |
$ where to run it
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Qwen3 4B · needs ~2.5 GB · from huggingface.co/Qwen (official)chat in the terminal
llama cli -hf Qwen/Qwen3-4B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf Qwen/Qwen3-4B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Qwen3 4B · needs ~2.5 GB · from huggingface.co/Qwen (official)
- Or download it in the terminal
lms get https://huggingface.co/Qwen/Qwen3-4B-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Qwen3 4B · needs ~2.91 GB · from ollama.comchat in the terminal
ollama run qwen3:4b-q4_K_M
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Qwen3 4B · needs ~2.1 GB, Mac only · from huggingface.co/Qwen (official)chat in the terminal
mlx_lm.chat --model Qwen/Qwen3-4B-MLX-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model Qwen/Qwen3-4B-MLX-4bit
Official weights and documentation: huggingface.co/Qwen ↗
$ how the score was worked out · Qwen/Qwen3-4B-Thinking-2507 m… 31%, Qwen/Qwen3-4B-Instruct-2507 m… 30%, LFM2 Technical Report — Liqui… 15% and 11 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json