whatmodel.sh / Qwen-7B (base)
Qwen-7B (base)
↗ share
+ contribute
Qwen-7B (base) is an open-weights language model from Alibaba, released August 2023. Its published size is 7.72B parameters and a 33k-token context window. Licence: other (tongyi-qianwen-license-agreement).
Catalogue identity notes
Maker repo Qwen/Qwen-7B @ef3c5c9: licence tag other (tongyi-qianwen-license-agreement). 7,721,324,544 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2023-08: month the maker's Hugging Face repo was created (createdAt 2023-08-03). Pretrained base checkpoint (not an instruct/chat version).
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Qwen-7B (base), out of 897 with a score, then more from Alibaba.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 774 | 33±1 | local | |||
| 775 | 33±1 | local | |||
| 776 | 33±1 | local | |||
| 777 | 33±1 | comparison only | |||
| 778 | 33±1 | 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
other tests11 not in a task · 100% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge | 49.1% ✎ | ▁·▁··▁▁▇▂█▆▃ beats 24/26 | 52% |
| WinoGrande | 66.0% ✎ | ▁····▁··▁▂█▄ beats 14/26 | 11% |
| BoolQ | 74.6% ✎ | ▂▃▂▅▆▂▅▆█▂▂▂ beats 21/26 | 7.8% |
| HellaSwag | 88.8% ✎ | ▃···▁▇▅█▇▃▁▃ beats 26/26 | 5.2% |
| ARC Easy | 65.2% ✎ | ▁▁·▁▁▄▅▄█▅▁▃ beats 13/26 | 5.1% |
| OpenBookQA | 32.2% ✎ | █·▁▁▃·▁▃▅▇▃▄ beats 21/26 | 4.4% |
| PIQA | 74.0% ✎ | ▁·▁··▁▁▃█▅█▂ beats 5/26 | 3.8% |
| SciQ | 93.2% ✎ | ▁·▁·▁·▃▅▃█▄▁ beats 15/26 | 3.8% |
3 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Social IQA | 49.4% ✎ | ▁···▁▃█▁▁▃·▁ beats 25/26 | 2.4% |
| LAMBADA (OpenAI version), last-word accuracy | 69.7% ✎ | ▁··▂▁▁▁▂▆█▅▃ beats 13/26 | 2.2% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 58.1% ✎ | ▃▁▁▁▁▁▁▁▃█▅▁ beats 85/276 | 1.9% |
$ 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 Qwen-7B (base) · needs 6.6 GB memory, 4.9 GB download · from huggingface.co/mradermacherchat in the terminal
llama cli -hf mradermacher/Qwen-7B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf mradermacher/Qwen-7B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Qwen-7B (base) · needs 6.6 GB memory, 4.9 GB download · from huggingface.co/mradermacher
- Or download it in the terminal
lms get https://huggingface.co/mradermacher/Qwen-7B-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 Qwen-7B (base) · needs 6.6 GB memory, 4.9 GB download · from huggingface.co/mradermacherchat in the terminal
ollama run hf.co/mradermacher/Qwen-7B-GGUF:Q4_K_M
Other ways to run it
- Run it as published · needs 17.7 GB memory, 15.4 GB download · from huggingface.co/Qwen (official)
uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='Qwen/Qwen-7B', torch_dtype='auto', device_map='auto', trust_remote_code=True)('Once upon a time', max_new_tokens=40)[0]['generated_text'])"
Model repository and documentation: huggingface.co/Qwen ↗
$ how the score was worked out · Stability AI — original Stabl… 98%, Open Portuguese LLM Leaderboa… 2%
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 |
|---|---|---|
| 10 | 98% | |
| 1 | 2% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 32.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