whatmodel.sh / Qwen3 4B

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.

50.9±0.6#327 of 719 LLMsfrom 81 benchmark results across 14 sources

$ how it compares

The LLMs ranked either side of Qwen3 4B, out of 828 with a score, then more from Alibaba.

#modelscorewhereRAMreleased
393Llama 3.1 Nemotron 51B Instruct NVIDIA51±2local~34GB2024-09
394Ministral 3 3B Reasoning 2512 Mistral51±1local~3.5GB2025-12
395Qwen3 4B Alibaba51±1local~3.7GB2025-04
396Yi-Large 01.AI51±1comparison only2024-05
397Llama-3-Instruct-8B-SimPO-ExPO Chujie Zheng (ExPO)51±1local~6.6GB2024-05
more from Alibaba
18Qwen3.8 Max (2.4T-A95B) Alibaba78±1api $3.00/M +local~380GB2026-08
34Qwen3.8 Max (0902) Alibaba76±1api $3.00/M2026-09
37Qwen3.8-Flash-Next Alibaba75±1local~59GB2026-08

see all LLMs · find the ones that fit your machine

$ 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.

testresultvs the others in its rundifficultycountswhy
τ²-bench Telecom lab +117.5% ✎▁·▅█▆▅▂▃▃▂▃▁ beats 11/89very hard · avg 14%▇▇ 4.9%sharp · small run · several runs
τ-bench Retail lab +133.9% ✎▁····▃·▂▇█▂▆ beats 3/28hard · avg 31%▇ 2.8%at its level · small run · several runs
τ²-bench Retail lab +138.6% ✎▁····▃▁▃▆█▃▁ beats 2/44hard · avg 30%▇ 2.3%at its level · small run · several runs
τ-bench Airline lab +132.0% ✎▁▁▁·▅▄▁█▇▁▁▇ beats 3/28hard · avg 28%▇ 1.9%at its level · small run · several runs
τ²-bench Airline lab +128.0% ✎▁▃·▂▁▃▂▁█▅▂▃ beats 1/42hard · avg 18%▇ 1.6%small run · several runs
BFCL v3 +263.4% ✎▁▁▁▁▁▃▅█▅▄▁▁ beats 91/114medium · avg 52%▇ 1.5%blunt · at its level · several runs
EEGAgentBench overall (tool-based EEG analysis agents, 6 tasks)29.9% ✎▂·▃▁··▇▇█▂·▁ beats 2/25hard · avg 29%▇ 0.7%blunt · at its level
BFCL (version not stated)95.5% ✎▄▆▄▂·█▆·▄··▃ beats 17/17very easy · avg 86%▇ 0.5%blunt · small run
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.

testresultvs the others in its rundifficultycountswhy
Aider polyglot (225 exercises, two attempts) lab13.8% ✎▂▁▁▃▆▃▄▆█▃▄▂ beats 13/71very hard · avg 8.9%▇ 3.3%sharp · small run
LiveCodeBench v6 (Feb–May 2025) lab +148.4% ✎▁▁▃▃█▅▄▇▅▅▃█ beats 4/38medium · avg 43%▇ 2.5%at its level · small run · several runs
MultiPL-E lab66.6% ✎▃··▄·▅▅▇▄█▃▄ beats 15/31easy · avg 66%▇ 1.1%at its level · small run
LiveCodeBench v452.9% ✎█·█········█ beats 2/2medium · avg 47%▇ 0.9%at its level · small run
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.

testresultvs the others in its rundifficultycountswhy
Arena-Hard v2 aggregate lab +113.7% ✎▃▁··▄▃▁▃█▁▁▇ beats 0/22hard · avg 20%▇ 3.1%sharp · small run · several runs
Arena-Hard v2.0 hard prompts (style control, Gemini-2.5 judge)15.0% ✎▂·▃▅▅·▃█▆▂▂▂ beats 4/22very hard · avg 12%▇ 2.3%sharp
IFEval (aggregation unspecified) lab +281.9% ✎▁▁▃▁▂▄▄▆█▃▂▁ beats 76/141easy · avg 80%▇ 2.2%small run · several runs
IFEval mean of four measures85.6% ✎█··▄▄·▄····▄ beats 5/5easy · avg 85%▇ 1.3%typical
Arena-Hard v2.0 creative writing (GPT-4.1 + Gemini-2.5 judges)13.2% ✎▆▃▂▆▂▂▃█▂▃·▂ beats 4/22hard · avg 19%▇ 0.6%sharp · noisy
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.

testresultvs the others in its rundifficultycountswhy
AIME 2025 lab +265.6% ✎▁·▁▁▁▂▅▆█▇▅▁ beats 56/133medium · avg 59%▇▇▇ 7.1%sharp · at its level · small run · several runs
HMMT 2025 (edition unspecified) lab +142.1% ✎▃█▇▅▇▅▁·▁··▁ beats 5/32hard · avg 34%▇▇ 4.5%sharp · at its level · small run · several runs
PolyMATH lab +140.0% ✎▁···▃▁·▇█▄▄▄ beats 4/23hard · avg 34%▇ 1.9%at its level · small run · several runs
MATH-50085.6% ✎▃····▃·█···▃ beats 5/5easy · avg 81%▇ 1.1%typical
GSM8K loose substring accuracy68.5% ✎█·█··███···█ beats 0/5easy · avg 84%▇ 0.1%blunt
other tests30 not in a task · 52% of its score
testresultvs the others in its rundifficultycountswhy
GPQA Diamond +252.3% ✎▁▁▁▁▂▄▆▄▅▇█▅ beats 74/208medium · avg 53%▇▇▇▇ 10%sharp · at its level · small run · several runs
MMLU-Pro +252.3% ✎███···██···█ beats 5/5medium · avg 45%▇▇ 5.1%at its level · several runs
GPQA (subset unspecified) lab +155.9% ✎▂▁▂▂▄▃▆▃▅█▄▃ beats 58/104medium · avg 51%▇▇ 4.6%sharp · at its level · small run · several runs
MMLU-Redux lab +183.7% ✎▁▁▃▁▂▃▄▅▇▅█▄ beats 15/63easy · avg 78%▇ 2.9%at its level · small run · several runs
INCLUDE lab +161.8% ✎▂····▂▂▄▄▄█▄ beats 13/36medium · avg 55%▇ 2.6%at its level · small run · several runs
MMLU72.3% ✎▄█···█·····▄ beats 5/5easy · avg 74%▇ 2.1%at its level
SuperGPQA lab +142.7% ✎▂▁▂▂▅▆▃▇▇▇█▃ beats 13/46hard · avg 35%▇ 1.8%at its level · small run · several runs
IFBench (aggregation unspecified)30.3% ✎█··███··█··█ beats 5/5hard · avg 33%▇ 1.8%at its level
22 more tests
testresultvs the others in its rundifficultycountswhy
MMLU-ProX lab +161.0% ✎▁·▁▁▁▃▁▃▂█▅▄ beats 4/35medium · avg 55%▇ 1.7%at its level · small run · several runs
Creative Writing v3 lab +161.1% ✎▃····▂▆··▆█▆ beats 0/14easy · avg 66%▇ 1.7%at its level · small run · several runs
WritingBench lab +173.5% ✎▃·▁▂▁··▅█▂▂▁ beats 0/20easy · avg 71%▇ 1.6%at its level · small run · several runs
LiveBench 2024-11-25 lab +163.6% ✎▄··▂·▂·▂█▆▂▂ beats 1/13medium · avg 62%▇ 1.6%at its level · small run · several runs
BRIDGE clinical text, zero-shot average (87 tasks)38.5% ✎▁▁▁▁▁▂▂▃▄▆█▃ beats 63/97hard · avg 32%▇ 1.5%blunt · at its level
Multi-IF (aggregation unspecified) lab +166.3% ✎▁▁▁▁▁▁▃▄█▄▁▂ beats 9/41medium · avg 65%▇ 1.5%blunt · at its level · small run · several runs
MMMLU seven languages (Liquid)60.7% ✎▄·█····█···▄ beats 5/5medium · avg 60%▇ 1.3%at its level
Open Persian LLM Leaderboard v2 average (21 tasks)50.5% ✎▂▄▂▃█▄▃▆▃▅▂▂ beats 33/81medium · avg 58%▇ 1.2%blunt · at its level
Multi-IF three-turn average75.5% ✎▄··█▄··▄···▄ beats 5/5easy · avg 71%▇ 1.2%at its level
KINA (Knowledge Index of Noah's Ark) accuracy, 899 ten-option items21.5% ✎▁▁▂▁▃▄█▆▄▅▂▃ beats 5/39very hard · avg 22%▇ 1.2%blunt
OJBench lab16.1% ✎▁···▁▃·▅▄▅██ beats 4/26very hard · avg 13%▇ 1.0%small run
Global-MMLU73.3% ✎▃▅▃·▃···▅·▅█ beats 4/11medium · avg 70%▇ 0.9%at its level · small run
MGSM six languages, loose (Liquid)81.8% ✎▄·▄·█···▄··▄ beats 4/5easy · avg 82%▇ 0.7%typical
MixEval-Hard38.0% ✎█····█·····█ beats 2/2medium · avg 40%▇ 0.7%at its level · small run
Open PT-LLM Leaderboard average (9 Portuguese tasks)76.2% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 231/276medium · avg 73%▇ 0.6%at its level · noisy
GSM-Plus +156.2% ✎█·····███·██ beats 1/5easy · avg 83%▇ 0.6%blunt · small run · several runs
ZebraLogic lab35.2% ✎█·▁▁▁▇·▄▄▁▄▁ beats 4/24medium · avg 49%▇ 0.5%at its level · noisy · small run
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy70.8% ✎▃·▁▁▂▁▂▅█▇▄▁ beats 53/100medium · avg 68%▇ 0.5%at its level · noisy
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy82.4% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 78/146easy · avg 83%▇ 0.3%noisy
Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate)97.3% ✎▁▁▂▃▄▄█▆▃▂▂▁ beats 111/140very easy · avg 94%▇ 0.2%blunt · maxed out · noisy
Chess Puzzles (Epoch)1.0% ✎█▁▁▁▁▂▁▄▂▂▁▁ beats 2/135very hard · avg 5.9%▇ 0.1%sharp · too hard for it · noisy
Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate)94.3% ✎▁▂▁▂▅█▂▃▄▃▁▁ beats 79/98very easy · avg 90%▇ 0.0%blunt

$ where to run it

llama.cpp · recommended

version

  1. 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 | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. 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
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Qwen3 4B · needs ~2.5 GB · from huggingface.co/Qwen (official)

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/Qwen/Qwen3-4B-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Qwen3 4B · needs ~2.91 GB · from ollama.com
    chat in the terminal
    ollama run qwen3:4b-q4_K_M

MLX (Mac)

version

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. 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
  3. 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