whatmodel.sh / Llama 2 13B (base)
Llama 2 13B (base)
↗ share
+ contribute
Llama 2 13B (base) is an open-weights language model from Meta, released July 2023. Its published size is 13B parameters and a 4k-token context window. Licence: llama2.
Catalogue identity notes
Pretrained (not chat) Llama 2 checkpoint; the chat models are separate identities (llama-2-*-chat). Ollama 'text' tags are the pretrained model.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Llama 2 13B (base), out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 747 | 36±1 | local | |||
| 748 | 36±1 | local | |||
| 749 | 36±1 | local | |||
| 750 | 35±1 | local | |||
| 751 | 35±1 | local | |||
| more from Meta | |||||
| 10 | 81±1 | Muse Code only | |||
| 20 | 78±1 | api $8.00/M | |||
| 31 | 76±1 | api $0.20/M | |||
$ what it's good at
coding▁▁▃▃▆▇█▆▆▃▃▁ #457 of 474 · 15% of its score · 3 tests
Beats Molmo 7B-D (0924), Tulu 2 7B, DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Falcon3 1B Instruct, Granite 3.0 1B-A400M Instruct, StarCoderBase 3B here, though they rank lower overall.
math▁▁▃▅█▆▅█▄▁▁▁ #341 of 440 · 12% of its score · 2 tests
Beats GPT-4 (0613), Athene-70B, Gemma 2 27B IT here, though they rank higher overall. Trails Gemma 2B (base), Stable Code 3B, Zephyr 7B beta here, though they rank lower overall.
other tests23 not in a task · 73% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge +3 | 49.2% ✎ | ▁·▁··▁▁▇▂█▆▃ beats 25/26 | 25% |
| MMLU +3 | 52.0% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 12/25 | 8.2% |
| BIG-Bench Hard +1 | 48.9% ✎ | ▁·····▂█▂▅·▁ beats 9/25 | 7.1% |
| WinoGrande +2 | 72.2% ✎ | ▁····▁··▁▂█▄ beats 24/26 | 6.3% |
| Natural Questions (closed book) +2 | 32.2% ✎ | ▁·▁·▁▂▁▂·▅▂█ beats 28/28 | 5.0% |
| HellaSwag +2 | 79.4% ✎ | ▃···▁▇▅█▇▃▁▁ beats 23/26 | 3.6% |
| TriviaQA +2 | 9.5% ✎ | ▁··▁█▃▃▁▄▅▄█ beats 5/28 | 2.7% |
| ARC Easy +2 | 77.6% ✎ | ▁▁·▁▁▄▅▄█▅▁▃ beats 25/26 | 2.6% |
15 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BoolQ | 80.5% ✎ | ▂▃▂▅▆▂▅▆█▂▃▂ beats 25/26 | 2.4% |
| PIQA +2 | 79.1% ✎ | ▁·▁··▁▁▃█▅█▂ beats 22/26 | 1.9% |
| OpenBookQA | 35.4% ✎ | █·▁▁▃·▁▃▅▇▃▄ beats 24/26 | 1.6% |
| VEC embodied concepts, zero-shot perplexity probing (average) | 54.6% ✎ | ▁····▁▁·▁·▃█ beats 4/11 | 1.4% |
| SciQ | 94.5% ✎ | ▁·▁·▁·▃▅▃█▄▁ beats 22/26 | 1.0% |
| Social IQA | 42.8% ✎ | ▁···▁▃█▃▁▁·▁ beats 20/26 | 0.8% |
| LAMBADA (OpenAI version), last-word accuracy | 76.8% ✎ | ▁··▂▁▁▁▂▆█▅▃ beats 26/26 | 0.6% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 57.5% ✎ | ▃▁▁▁▁▁▁▁▃█▅▁ beats 83/276 | 0.6% |
| C-Eval | 37.3% ✎ | ▁···▁▃▂▁▂▂▃█ beats 2/33 | 0.6% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 74.0% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 47/146 | 0.5% |
| Tulu 2: TyDiQA gold passage, 1-shot F1 | 56.5% ✎ | ▂··▁▃▂▂▂█▅▁▂ beats 21/25 | 0.5% |
| HaluEval QA hallucination detection (accuracy) | 70.0% ✎ | █▁▁·▁▁·▁▁▁▁▃ beats 27/27 | 0.2% |
| COPA | 85.0% ✎ | ▅·▃·▃··█▃··▃ beats 6/8 | 0.1% |
| TruthfulQA MC2 | 36.9% ✎ | ▅▃█▆▁▂▅···▁▁ beats 5/31 | 0.1% |
| VEC visual concepts, zero-shot perplexity probing (average) | 62.8% ✎ | ▅▅▃█·▃··▃·▃▃ beats 4/11 | 0.0% |
$ 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 Llama 2 13B (base) · needs 9.8 GB memory, 7.87 GB download · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/Llama-2-13B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf TheBloke/Llama-2-13B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 2 13B (base) · needs 9.8 GB memory, 7.87 GB download · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/Llama-2-13B-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Llama 2 13B (base) · needs 9.2 GB memory, 7.37 GB download · from ollama.comchat in the terminal
ollama run llama2:13b-text
Model repository and documentation: huggingface.co/meta-llama ↗
$ how the score was worked out · Stability AI — original Stabl… 32%, Mixtral of Experts — base-mod… 24%, MiniCPM: Unveiling the Potent… 15% 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