whatmodel.sh / Llama 2 7B (base)
Llama 2 7B (base)
↗ share
+ contribute
Llama 2 7B (base) is an open-weights language model from Meta, released July 2023. Its published size is 6.74B 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 7B (base), out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 785 | 32±1 | local | |||
| 786 | 32±1 | local | |||
| 787 | 32±1 | local | |||
| 788 | 32±1 | comparison only | |||
| 789 | 32±2 | 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▁▁▃▃▆▇█▆▆▃▃▁ #464 of 474 · 11% of its score · 3 tests
Beats Molmo 7B-D (0924), DeepSeek R1 Distill Qwen 1.5B, Qwen3 0.6B here, though they rank higher overall. Trails Phi-1 (1.3B), GPT-J 6B, OpenAssistant SFT-4 Pythia 12B here, though they rank lower overall.
math▁▁▃▅█▆▅█▄▁▁▁ #384 of 440 · 8.5% of its score · 2 tests
Beats DBRX Instruct, Command R Plus (04-2024), Mistral NeMo Instruct (2407) here, though they rank higher overall. Trails GPT-Neo 1.3B, OPT-1.3B, OPT-2.7B here, though they rank lower overall.
other tests24 not in a task · 80% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge +5 | 46.2% ✎ | ▁·▁··▁▁▇▂█▆▃ beats 21/26 | 25% |
| WinoGrande +4 | 69.6% ✎ | ▁····▁··▁▂█▄ beats 22/26 | 8.9% |
| MMLU +3 | 41.8% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 3/25 | 6.3% |
| HellaSwag +4 | 75.9% ✎ | ▃···▁▇▅█▇▃▁▁ beats 19/26 | 6.0% |
| BIG-Bench Hard +1 | 39.3% ✎ | ▁·····▃█▂▅·▁ beats 2/25 | 4.8% |
| BoolQ +2 | 77.7% ✎ | ▂▃▂▅▆▂▅▆█▃▂▂ beats 24/26 | 4.3% |
| ARC Easy +4 | 74.5% ✎ | ▁▁·▁▁▄▅▄█▅▃▃ beats 24/26 | 4.1% |
| Natural Questions (closed book) +2 | 27.1% ✎ | ▁·▁·▁▂▁▂·▅▂█ beats 23/28 | 3.8% |
16 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| OpenBookQA +2 | 31.4% ✎ | █·▁▁▃·▁▃▅▇▃▄ beats 19/26 | 3.7% |
| PIQA +4 | 77.7% ✎ | ▁·▁··▁▁▃█▅█▂ beats 17/26 | 2.8% |
| TriviaQA +2 | 9.2% ✎ | ▁··▁█▃▃▁▄▅▄█ beats 4/28 | 2.4% |
| SciQ +1 | 93.6% ✎ | ▁·▁·▁·▃▅▃█▄▁ beats 17/26 | 1.9% |
| Social IQA +1 | 43.5% ✎ | ▁···▁▃█▃▁▁·▁ beats 21/26 | 1.3% |
| VEC embodied concepts, zero-shot perplexity probing (average) | 55.4% ✎ | ▁····▁▁·▁·▃█ beats 7/11 | 1.0% |
| LAMBADA (OpenAI version), last-word accuracy | 73.5% ✎ | ▁··▂▁▁▁▂▆█▅▃ beats 21/26 | 0.6% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 48.9% ✎ | ▃▁▁▁▁▁▁▃▂█▅▁ beats 65/276 | 0.5% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 52.8% ✎ | ▁▁▁▁▁▁▃▂▄█▄▃ beats 21/146 | 0.4% |
| C-Eval | 32.4% ✎ | ▁···▃▁▂▁▂▂▃█ beats 1/33 | 0.4% |
| Tulu 2: TyDiQA gold passage, 1-shot F1 | 51.2% ✎ | ▂··▁▃▂▂▂█▅▁▂ beats 12/25 | 0.4% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 31.3% ✎ | ▃·▁▁▃▁▂▅█▇▄▁ beats 13/100 | 0.3% |
| TruthfulQA MC2 +1 | 39.0% ✎ | ▅▃█▆▁▂▅···▁▁ beats 7/31 | 0.2% |
| HaluEval QA hallucination detection (accuracy) | 45.7% ✎ | █▁▁·▁▁·▁▁▁▁▁ beats 5/27 | 0.1% |
| COPA | 82.6% ✎ | ▅·▃·▃··█▃··▃ beats 4/8 | 0.1% |
| VEC visual concepts, zero-shot perplexity probing (average) | 61.4% ✎ | ▅▅▃█·▃··▃·▃▃ beats 0/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 7B (base) · needs 8.8 GB memory, 4.08 GB download · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/Llama-2-7B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf TheBloke/Llama-2-7B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 2 7B (base) · needs 8.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/Llama-2-7B-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 7B (base) · needs 8.5 GB memory, 3.83 GB download · from ollama.comchat in the terminal
ollama run llama2:7b-text
Model repository and documentation: huggingface.co/meta-llama ↗
$ how the score was worked out · Stability AI — original Stabl… 26%, Mixtral of Experts — base-mod… 19%, OLMo: Accelerating the Scienc… 12% and 9 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