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.5#356 of 743 LLMsfrom 81 benchmark results across 14 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
426Bielik 11B v2.0 Instruct SpeakLeash51±2local~8.6GB2024-08
427LFM2 24B-A2B Liquid AI51±1local~14GB2026-02
428Qwen3 4B Alibaba51±1local~4GB2025-04
429DeepSeek-Coder 33B Instruct DeepSeek51±1local~21GB2023-11
430GLM-4 (0116) Z.ai51±1comparison only2024-01
more from Alibaba
27Qwen3.8 Max (2.4T-A95B) Alibaba76±1api $3.00/M +local~594GB2026-08
46Qwen3.8 Max (0902) Alibaba74±1api $3.00/M2026-09
53Qwen3.8-Omni-Flash Alibaba73±1api $0.23/M2026-09

see all LLMs · find the ones that fit your machine

$ what it's good at

agent tasks▁▁▃▆█▄▅▅▃▃▂▁ #230 of 319 · 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, Mellum2 12B-A2.5B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
τ²-bench Telecom lab +117.5% ✎▁·▅█▆▅▂▃▃▂▃▁ beats 11/89very hard · avg 14%▇▇ 5.1%sharp · small run · several runs
τ-bench Retail lab +133.9% ✎▁····▃·▂▇█▂▆ beats 3/28hard · avg 31%▇ 2.6%at its level · small run · several runs
τ²-bench Retail lab +138.6% ✎▁····▃▁▃▆█▃▁ beats 2/44hard · avg 29%▇ 2.3%at its level · small run · several runs
τ-bench Airline lab +132.0% ✎▁▁▁·▅▄▁█▇▁▁▇ beats 3/28hard · avg 28%▇ 1.8%at its level · small run · several runs
BFCL v3 +263.4% ✎▁▁▁▁▁▃▅█▅▄▁▁ beats 91/114medium · avg 51%▇ 1.6%blunt · at its level · several runs
τ²-bench Airline lab +128.0% ✎▁▃·▂▁▃▂▁█▅▂▃ beats 1/42hard · avg 17%▇ 1.6%small run · several runs
EEGAgentBench overall (tool-based EEG analysis agents, 6 tasks)29.9% ✎▂·▃▁··▇▇█▂·▁ beats 2/25hard · avg 28%▇ 0.8%blunt · at its level
BFCL (version not stated)95.5% ✎▄▆▄▂·█▆·▄··▃ beats 17/17very easy · avg 88%▇ 0.5%blunt · small run
coding▁▁▁▃▆▇█▆▆▃▃▁ #312 of 474 · 7.5% of its score · 4 tests

Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), Qwen3-VL 30B-A3B Instruct 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.7%▇ 3.3%sharp · small run
LiveCodeBench v6 (Feb–May 2025) lab +148.4% ✎▁▁▃▃█▅▄▇▅▅▃█ beats 4/38medium · avg 44%▇ 2.4%at its level · small run · several runs
MultiPL-E lab66.6% ✎▃··▄·▅▅▇▄█▃▄ beats 15/31easy · avg 66%▇ 1.0%at its level · small run
LiveCodeBench v452.9% ✎█·█········█ beats 2/2medium · avg 46%▇ 0.8%at its level · small run
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #254 of 405 · 9.0% of its score · 5 tests

Beats Mistral Small 4 (119B-A6.5B), Qwen2.5 Coder 32B Instruct, Ministral 3 14B Reasoning 2512 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%▇ 2.9%sharp · small run · several runs
IFEval (aggregation unspecified) lab +281.9% ✎▁▂▄▂▂▄▆██▅▂▁ beats 76/145easy · avg 81%▇ 2.2%small run · several runs
Arena-Hard v2.0 hard prompts (style control, Gemini-2.5 judge)15.0% ✎▂·▃▅▅·▃█▆▂▂▂ beats 4/22very hard · avg 13%▇ 1.9%sharp
IFEval mean of four measures85.6% ✎█··▄▄·▄····▄ beats 5/5easy · avg 84%▇ 1.4%typical
Arena-Hard v2.0 creative writing (GPT-4.1 + Gemini-2.5 judges)13.2% ✎▆▃▂▆▂▂▃█▂▃·▂ beats 4/22hard · avg 19%▇ 0.5%sharp · noisy
math▁▁▃▅█▆▅█▄▁▁▁ #233 of 440 · 14% of its score · 5 tests

Beats MiniMax-M2.1, DeepSeek V3 (Dec '24), GPT-4o (2024-08-06) here, though they rank higher overall. Trails Gemma 7B (base), Phi-2 (2.7B), Granite 8B Code Base (4K) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
AIME 2025 lab +265.6% ✎▁·▁▁▁▃▅▇█▆▃▁ beats 56/134medium · avg 60%▇▇▇ 7.2%sharp · at its level · small run · several runs
HMMT 2025 (edition unspecified) lab +142.1% ✎▃█▇▅▇▅▁·▁··▁ beats 5/32medium · avg 35%▇▇ 4.2%sharp · at its level · small run · several runs
PolyMATH lab +140.0% ✎▁···▃▁·▇█▄▄▄ beats 4/23medium · avg 35%▇ 1.8%at its level · small run · several runs
MATH-50085.6% ✎▃····▃·█···▃ beats 5/5easy · avg 79%▇ 0.8%typical
GSM8K loose substring accuracy68.5% ✎█·█··███···█ beats 0/5easy · avg 83%▇ 0.2%blunt
other tests30 not in a task · 53% of its score
testresultvs the others in its rundifficultycountswhy
GPQA Diamond +252.3% ✎▁▁▁▁▂▃▅▄▄▆█▃ beats 74/221medium · avg 53%▇▇▇▇ 11%sharp · at its level · small run · several runs
MMLU-Pro +252.3% ✎███···██···█ beats 5/5medium · avg 43%▇▇ 5.1%at its level · several runs
GPQA (subset unspecified) lab +155.9% ✎▂▁▂▂▄▃▆▃▅█▃▃ beats 59/106medium · avg 52%▇▇ 4.7%sharp · at its level · small run · several runs
MMLU-Redux lab +183.7% ✎▁▁▃▁▂▄▄▅▇▅█▄ beats 16/64easy · avg 78%▇ 2.8%at its level · small run · several runs
MMLU72.3% ✎▄█···█·····▄ beats 5/5medium · avg 74%▇ 2.5%at its level
INCLUDE lab +161.8% ✎▂····▂▂▄▄▄█▄ beats 13/36medium · avg 59%▇ 2.4%at its level · small run · several runs
BRIDGE clinical text, zero-shot average (87 tasks)38.5% ✎▁▁▁▁▁▂▂▃▄▆█▃ beats 63/97hard · avg 32%▇ 1.8%blunt · at its level
IFBench (aggregation unspecified)30.3% ✎█··███··█··█ beats 5/5hard · avg 32%▇ 1.8%at its level
22 more tests
testresultvs the others in its rundifficultycountswhy
SuperGPQA lab +142.7% ✎▂▁▂▂▅▆▃▇▇▇█▆ beats 13/48medium · avg 40%▇ 1.7%at its level · small run · several runs
MMLU-ProX lab +161.0% ✎▁·▁▁▁▃▁▃▃█▅▄ beats 4/36medium · avg 54%▇ 1.6%at its level · small run · several runs
WritingBench lab +173.5% ✎▃·▁▂▁··▅█▂▂▁ beats 0/20easy · avg 72%▇ 1.5%at its level · small run · several runs
Creative Writing v3 lab +161.1% ✎▃····▂▆··▆█▆ beats 0/14easy · avg 66%▇ 1.5%at its level · small run · several runs
Open Persian LLM Leaderboard v2 average (21 tasks)50.5% ✎▂▄▂▃█▄▃▆▃▅▂▂ beats 33/81medium · avg 57%▇ 1.5%blunt · at its level
LiveBench 2024-11-25 lab +163.6% ✎▄··▂·▂·▂█▆▂▂ beats 1/13medium · avg 62%▇ 1.5%at its level · small run · several runs
Multi-IF (aggregation unspecified) lab +166.3% ✎▁▁▁▁▁▁▃▄█▄▁▂ beats 9/41medium · avg 62%▇ 1.4%at its level · small run · several runs
KINA (Knowledge Index of Noah's Ark) accuracy, 899 ten-option items21.5% ✎▁▁▂▁▃▄█▆▄▅▂▃ beats 5/39very hard · avg 22%▇ 1.3%typical
MMMLU seven languages (Liquid)60.7% ✎▄·█····█···▄ beats 5/5medium · avg 59%▇ 1.3%at its level
Multi-IF three-turn average75.5% ✎▄··█▄··▄···▄ beats 5/5easy · avg 70%▇ 1.2%at its level
OJBench lab16.1% ✎▁···▁▃·▅▄▅██ beats 4/26very hard · avg 14%▇ 1.0%small run
Global-MMLU73.3% ✎▃█·▃···▅·▅█▃ beats 4/12medium · avg 70%▇ 0.9%at its level · small run
Open PT-LLM Leaderboard average (9 Portuguese tasks)76.2% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 231/276medium · avg 72%▇ 0.7%at its level · noisy
MGSM six languages, loose (Liquid)81.8% ✎▄·▄·█···▄··▄ beats 4/5easy · avg 81%▇ 0.7%typical
MixEval-Hard38.0% ✎█····█·····█ beats 2/2medium · avg 40%▇ 0.6%at its level · small run
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy70.8% ✎▃·▁▁▂▁▂▅█▇▄▁ beats 53/100medium · avg 67%▇ 0.6%sharp · at its level · noisy
GSM-Plus +156.2% ✎█·····███·██ beats 1/5easy · avg 84%▇ 0.6%blunt · small run · several runs
ZebraLogic lab35.2% ✎█·▁▁▁▇·▄▄▁▄▁ beats 4/24medium · avg 46%▇ 0.5%at its level · noisy · small run
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy82.4% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 78/146easy · avg 82%▇ 0.4%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 8/157very hard · avg 5.6%▇ 0.2%sharp · too hard for it · noisy
Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate)94.3% ✎▁▂▁▂▅█▂▃▃▃▁▁ beats 81/100very easy · avg 90%▇ 0.0%blunt

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

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 4.4 GB memory, 2.5 GB download · 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 4.4 GB memory, 2.5 GB download · 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 4.5 GB memory, 2.62 GB download · 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 4 GB memory, 2.14 GB download, 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

Model repository and documentation: huggingface.co/Qwen ↗

$ how the score was worked out · Qwen/Qwen3-4B-Thinking-2507 m… 31%, Qwen/Qwen3-4B-Instruct-2507 m… 29%, 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