whatmodel.sh / Qwen2 7B Instruct

Qwen2 7B Instruct is an open-weights language model from Alibaba, released June 2024. Its published size is 7.62B parameters and a 131k-token context window. Licence: apache-2.0.

Catalogue identity notes

Maker repo Qwen/Qwen2-7B-Instruct @f2826a0: licence tag apache-2.0. 7,615,616,512 parameters from the Hugging Face safetensors metadata. Dense, so active = total. Released 2024-06: month the maker's Hugging Face repo was created (createdAt 2024-06-04). Ollama tags qwen2:7b-instruct-q4_K_M, qwen2:7b-instruct-q8_0 are the library's instruct/chat builds of this checkpoint (tag names on the pinned tags page); download sizes are estimated from the parameter count.

45.3±0.6#474 of 743 LLMsfrom 22 benchmark results across 10 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Qwen2 7B Instruct, out of 897 with a score, then more from Alibaba.

#modelscorewhereRAMreleased
573Qwen1.5 32B Chat Alibaba45±1local~21GB2024-04
574Granite 20B Code Instruct (8K) IBM45±1local~14GB2024-04
575Qwen2 7B Instruct Alibaba45±1local~5.4GB2024-06
576Dolphin 2.6 Mixtral 8x7B Cognitive Computations45±1local~29GB2023-12
577Eurus-2-7B-PRIME PRIME-RL45±2local~6.4GB2024-12
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▁▁▃▆█▄▅▅▃▃▂▁ #298 of 319 * · 0.9% of its score · 1 test

Beats Bielik 11B v2.3 Instruct, GLM-4 9B Chat, Command R (08-2024) here, though they rank higher overall. Trails Granite 4.0 H 350M, Qwen3 0.6B, Qwen2.5 1.5B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
BFCL v341.3% ✎▁▁▁▁▁▃▅█▅▄▁▁ beats 17/114medium · avg 51%▇ 0.9%blunt · at its level
coding▁▁▁▃▆▇█▆▆▃▃▁ #357 of 474 * · 11% of its score · 1 test

Beats LFM2.5 2.6B, LFM2.5 8B-A1B, Qwen3-VL 2B Thinking here, though they rank higher overall. Trails Phi-3-mini-128k-instruct (Apr 2024), DeepSeek LLM 67B Chat, OpenChat 3.5 here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
CRUXEval (ZeroEval, 800 problems)37.9% ✎▁▂▆▃▆█▆▃▂·▁▁ beats 4/47medium · avg 58%▇▇▇▇ 11%sharp · at its level
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #284 of 405 * · 2.8% of its score · 1 test

Beats Ministral 3 14B Reasoning 2512, Ministral 3 14B, Ministral 3 8B here, though they rank higher overall. Trails EXAONE 3.5 2.4B Instruct, Flan-T5 XXL, LFM2 1.2B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
Arabic IFEval prompt-level (Inception)38.1% ✎▁·▁▁▂▁▄▄▆▄█▄ beats 22/38medium · avg 46%▇ 2.8%sharp · at its level
math▁▁▃▅█▆▅█▄▁▁▁ #366 of 440 · 28% of its score · 5 tests

Beats GPT-3.5 Turbo (0125), DBRX Instruct, Command R Plus (04-2024) here, though they rank higher overall. Trails OPT-2.7B, Gemma 2B (base), Stable Code 3B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab +185.7% ✎▄···█▄▄·▄·▄█ beats 3/8very easy · avg 92%▇▇▇▇ 10%sharp · several runs
GSM8K (ZeroEval, zero-shot)80.1% ✎▁▄·▁▄█▅▅▅███ beats 10/43very easy · avg 87%▇▇▇ 7.1%sharp
MATH (subset unspecified) lab +152.9% ✎▃····▃·▅·▅·█ beats 1/8easy · avg 74%▇▇ 4.6%at its level · several runs
Minerva MATH lab19.5% ✎▃·····▃··█▅▅ beats 1/8hard · avg 34%▇ 3.3%typical
MATH Level 5 (ZeroEval, 721 problems)23.9% ✎▁▁▁▆█▂▇▇▄··▂ beats 12/38hard · avg 31%▇ 3.2%sharp
other tests12 not in a task · 57% of its score
testresultvs the others in its rundifficultycountswhy
MMLU-Redux (ZeroEval, 2,778 questions)66.9% ✎▁·▁▁▄▄▄▅█▄▂▁ beats 10/53easy · avg 76%▇▇▇▇▇▇▇▇ 19%at its level
LiveBench 2024-07-2626.6% ✎▁▁▁▂▂▃▃█▆▃▅▃ beats 19/61medium · avg 39%▇▇▇▇▇▇ 14%at its level
BigCodeBench (Complete) lab40.7% ✎▂▁▁▄▂▅▇█▆▂▂▂ beats 29/58medium · avg 49%▇▇ 4.3%at its level
BigCodeBench (Instruct) lab28.0% ✎▃▂·▆▆██▆▅▃▃▃ beats 3/33medium · avg 39%▇▇ 4.2%at its level
BIG-Bench Hard65.0% ✎▁▁▁▁▂▄▅▆█▃▃▁ beats 96/155medium · avg 72%▇ 3.0%sharp · at its level · small run
ZebraLogic (ZeroEval, 1,000 puzzles)8.4% ✎▁▁▃▆██▁▁·▁▁▁ beats 5/57hard · avg 16%▇ 2.9%sharp
MMLU70.8% ✎▁▁▁▁▁▂▂▅██▆▄ beats 141/215easy · avg 77%▇ 2.8%at its level
Polish EQ-Bench v2 (SpeakLeash)53.7% ✎▁··▁▁▂▂▆▅▆█▆ beats 28/70medium · avg 62%▇ 2.4%at its level
4 more tests
testresultvs the others in its rundifficultycountswhy
Open Persian LLM Leaderboard v2 average (21 tasks)50.0% ✎▂▄▂▃█▄▃▆▃▅▂▂ beats 28/81medium · avg 57%▇ 1.9%blunt · at its level
GPQA (subset unspecified)38.4% ✎▂▁▂▂▄▃▆▃▅█▃▃ beats 34/106hard · avg 39%▇ 1.6%sharp
Open PT-LLM Leaderboard average (9 Portuguese tasks)72.1% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 192/276medium · avg 72%▇ 0.9%at its level · noisy
CMMLU80.9% ✎▅·▅····█▃▅█▅ beats 7/14medium · avg 73%▇ 0.7%at its level · noisy

$ 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 Qwen2 7B Instruct · needs 5.8 GB memory, 4.68 GB download · from huggingface.co/Qwen (official)
    chat in the terminal
    llama cli -hf Qwen/Qwen2-7B-Instruct-GGUF:q4_k_m
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf Qwen/Qwen2-7B-Instruct-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 Qwen2 7B Instruct · needs 5.8 GB memory, 4.68 GB download · from huggingface.co/Qwen (official)

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/Qwen/Qwen2-7B-Instruct-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 Qwen2 7B Instruct · needs 5.8 GB memory, 4.68 GB download · from ollama.com
    chat in the terminal
    ollama run qwen2:7b-instruct-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 Qwen2 7B Instruct · needs 5.4 GB memory, 4.28 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/Qwen2-7B-Instruct-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/Qwen2-7B-Instruct-4bit

Model repository and documentation: huggingface.co/Qwen ↗

$ how the score was worked out · WildEval ZeroEval published r… 43%, InternLM GitHub repository mo… 15%, LiveBench model judgments (HF… 14% and 7 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