whatmodel.sh / Llama 2 7B (base)

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.

31.8±0.5#662 of 743 LLMsfrom 73 benchmark results across 12 sources

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.

#modelscorewhereRAMreleased
785Qwen-7B-Chat Alibaba32±1local~6.6GB2023-08
786Llama 2 7B Chat Meta32±1local~8.5GB2023-07
787Llama 2 7B (base) Meta32±1local~8.5GB2023-07
788Koala 13B UC Berkeley (BAIR)32±1comparison only2023-04
789OLMo 7B Instruct Ai232±2local~16GB2024-02
more from Meta
10Muse Wonder Full Meta81±1Muse Code only2026-10
20Muse Wonder Meta78±1api $8.00/M2026-10
31Muse Ember Meta76±1api $0.20/M2026-11

see all LLMs · find the ones that fit your machine

$ 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.

testresultvs the others in its rundifficultycountswhy
HumanEval +211.6% ✎█···█·███··█ beats 0/5medium · avg 61%▇▇ 6.1%sharp · several runs
MBPP +226.1% ✎▄··▄·▄··█··▄ beats 0/5easy · avg 69%▇ 3.6%at its level · several runs
Tulu 2: CodexEval pass@1026.8% ✎▃▃▃·▆▃▃█▃▂▂▅ beats 1/25easy · avg 84%▇ 1.8%sharp · at its level
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.

testresultvs the others in its rundifficultycountswhy
GSM8K +312.0% ✎▆▂▅█▅▅▃▆···▂ beats 2/25easy · avg 82%▇▇▇ 6.7%sharp · at its level · several runs
MATH +13.9% ✎█·█·█·██···█ beats 0/5hard · avg 28%▇ 1.7%too hard for it · several runs
other tests24 not in a task · 80% of its score
testresultvs the others in its rundifficultycountswhy
ARC Challenge +546.2% ✎▁·▁··▁▁▇▂█▆▃ beats 21/26easy · avg 82%▇▇▇▇▇▇▇▇▇▇ 25%sharp · at its level · several runs
WinoGrande +469.6% ✎▁····▁··▁▂█▄ beats 22/26easy · avg 87%▇▇▇▇ 8.9%at its level · several runs
MMLU +341.8% ✎▁▁▃▃▄█▄▁█··▁ beats 3/25easy · avg 82%▇▇▇ 6.3%at its level · several runs
HellaSwag +475.9% ✎▃···▁▇▅█▇▃▁▁ beats 19/26very easy · avg 91%▇▇ 6.0%at its level · several runs
BIG-Bench Hard +139.3% ✎▁·····▃█▂▅·▁ beats 2/25medium · avg 65%▇▇ 4.8%sharp · several runs
BoolQ +277.7% ✎▂▃▂▅▆▂▅▆█▃▂▂ beats 24/26easy · avg 88%▇▇ 4.3%at its level · several runs
ARC Easy +474.5% ✎▁▁·▁▁▄▅▄█▅▃▃ beats 24/26easy · avg 85%▇▇ 4.1%blunt · at its level · several runs
Natural Questions (closed book) +227.1% ✎▁·▁·▁▂▁▂·▅▂█ beats 23/28medium · avg 49%▇▇ 3.8%several runs
16 more tests
testresultvs the others in its rundifficultycountswhy
OpenBookQA +231.4% ✎█·▁▁▃·▁▃▅▇▃▄ beats 19/26easy · avg 81%▇ 3.7%at its level · several runs
PIQA +477.7% ✎▁·▁··▁▁▃█▅█▂ beats 17/26easy · avg 87%▇ 2.8%blunt · at its level · several runs
TriviaQA +29.2% ✎▁··▁█▃▃▁▄▅▄█ beats 4/28easy · avg 83%▇ 2.4%at its level · several runs
SciQ +193.6% ✎▁·▁·▁·▃▅▃█▄▁ beats 17/26very easy · avg 98%▇ 1.9%blunt · several runs
Social IQA +143.5% ✎▁···▁▃█▃▁▁·▁ beats 21/26medium · avg 61%▇ 1.3%blunt · several runs
VEC embodied concepts, zero-shot perplexity probing (average)55.4% ✎▁····▁▁·▁·▃█ beats 7/11hard · avg 63%▇ 1.0%typical
LAMBADA (OpenAI version), last-word accuracy73.5% ✎▁··▂▁▁▁▂▆█▅▃ beats 21/26very easy · avg 86%▇ 0.6%blunt · at its level
Open PT-LLM Leaderboard average (9 Portuguese tasks)48.9% ✎▃▁▁▁▁▁▁▃▂█▅▁ beats 65/276medium · avg 72%▇ 0.5%noisy
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy52.8% ✎▁▁▁▁▁▁▃▂▄█▄▃ beats 21/146easy · avg 82%▇ 0.4%at its level · noisy
C-Eval32.4% ✎▁···▃▁▂▁▂▂▃█ beats 1/33medium · avg 59%▇ 0.4%noisy
Tulu 2: TyDiQA gold passage, 1-shot F151.2% ✎▂··▁▃▂▂▂█▅▁▂ beats 12/25medium · avg 59%▇ 0.4%blunt · at its level
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy31.3% ✎▃·▁▁▃▁▂▅█▇▄▁ beats 13/100medium · avg 67%▇ 0.3%sharp · noisy
TruthfulQA MC2 +139.0% ✎▅▃█▆▁▂▅···▁▁ beats 7/31medium · avg 55%▇ 0.2%blunt · at its level · several runs
HaluEval QA hallucination detection (accuracy)45.7% ✎█▁▁·▁▁·▁▁▁▁▁ beats 5/27hard · avg 66%▇ 0.1%too hard for it · noisy
COPA82.6% ✎▅·▃·▃··█▃··▃ beats 4/8easy · avg 92%▇ 0.1%at its level · noisy
VEC visual concepts, zero-shot perplexity probing (average)61.4% ✎▅▅▃█·▃··▃·▃▃ beats 0/11hard · avg 66%▇ 0.0%blunt · at its level

$ 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 Llama 2 7B (base) · needs 8.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/Llama-2-7B-GGUF:Q4_K_M
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Llama 2 7B (base) · needs 8.8 GB memory, 4.08 GB download · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/Llama-2-7B-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Llama 2 7B (base) · needs 8.5 GB memory, 3.83 GB download · from ollama.com
    chat 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