whatmodel.sh / Qwen2 0.5B Instruct
Qwen2 0.5B Instruct
↗ share
+ contribute
Qwen2 0.5B Instruct is an open-weights language model from Alibaba, released June 2024. Its published size is 0.49B parameters and a 32k-token context window. Licence: apache-2.0.
Catalogue identity notes
Maker repo Qwen/Qwen2-0.5B-Instruct @c540970: licence tag apache-2.0. 494,032,768 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-03). Ollama tags qwen2:0.5b-instruct-q4_K_M, qwen2:0.5b-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.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Qwen2 0.5B Instruct, out of 897 with a score, then more from Alibaba.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 821 | 28±1 | local | |||
| 822 | 28±1 | local | |||
| 823 | 28±2 | local | |||
| 824 | 28±1 | local | |||
| 825 | 28±2 | local | |||
| more from Alibaba | |||||
| 27 | 76±1 | api $3.00/M +local | |||
| 46 | 74±1 | api $3.00/M | |||
| 53 | 73±1 | api $0.23/M | |||
$ what it's good at
coding█··········█ #2 of 2 * · 14% of its score · 1 test
chat & writing█··········█ #2 of 2 * · 4.8% of its score · 1 test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| IFEval prompt-level strict lab | 20.0% ✎ | ▃▁··▂··▂▇█▃▃ beats 0/26 | 4.8% |
math▁▁▃▅█▆▅█▄▁▁▁ #421 of 440 * · 17% of its score · 1 test
Beats Command R (03-2024), Llama 2 13B Chat, Qwen2 1.5B Instruct here, though they rank higher overall. Trails GPT-Neo 125M, OPT-125M, GPT-2 XL (1.5B) here, though they rank lower overall.
other tests5 not in a task · 63% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LiveBench 2024-07-26 | 7.7% ✎ | ▁▃▁▂▂▃▂█▆▃▅▃ beats 2/61 | 32% |
| MMLU lab | 37.9% ✎ | ▁▁▁▁▁▂▃▅██▆▄ beats 28/215 | 10% |
| Open Persian LLM Leaderboard v2 average (21 tasks) | 30.6% ✎ | ▃▄▂▃█▄▃▆▃▅▂▂ beats 1/81 | 10% |
| C-Eval lab | 45.2% ✎ | ▁···▁▁▃▁▂▂▃█ beats 5/33 | 7.1% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 44.4% ✎ | ▃▁▁▁▁▁▃▁▂█▅▁ beats 57/276 | 3.6% |
$ 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
- 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 Qwen2 0.5B Instruct · needs 1.1 GB memory, 0.4 GB download · from huggingface.co/Qwen (official)chat in the terminal
llama cli -hf Qwen/Qwen2-0.5B-Instruct-GGUF:q4_k_m - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf Qwen/Qwen2-0.5B-Instruct-GGUF:q4_k_m
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Qwen2 0.5B Instruct · needs 1.1 GB memory, 0.4 GB download · from huggingface.co/Qwen (official)
- Or download it in the terminal
lms get https://huggingface.co/Qwen/Qwen2-0.5B-Instruct-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 Qwen2 0.5B Instruct · needs 1.1 GB memory, 0.4 GB download · from ollama.comchat in the terminal
ollama run qwen2:0.5b-instruct-q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Qwen2 0.5B Instruct · needs 1 GB memory, 0.28 GB download, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Qwen2-0.5B-Instruct-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Qwen2-0.5B-Instruct-4bit
Model repository and documentation: huggingface.co/Qwen ↗
$ how the score was worked out · Qwen2-0.5B-Instruct model card 53%, LiveBench model judgments (HF… 32%, Open Persian LLM Leaderboard… 10% and 1 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
| source | results | share of the score |
|---|---|---|
| 5 | 53% | |
| 1 | 32% | |
| 1 | 10% | |
| 1 | 4% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 27.8 |
$ 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