whatmodel.sh / Llama 2 7B Chat
Llama 2 7B Chat
↗ share
+ contribute
Llama 2 7B Chat 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
Comparison model from the Epoch AI internal-evaluation CSVs (Epoch release date 2023-07-18). Chat checkpoint Llama-2-7b-chat (not the base model). 6,738,417,664 parameters (safetensors metadata of the -hf repo).
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Llama 2 7B Chat, out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 784 | 32±1 | comparison only | |||
| 785 | 32±1 | local | |||
| 786 | 32±1 | local | |||
| 787 | 32±1 | local | |||
| 788 | 32±1 | comparison only | |||
| 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▁▃▁▃▆▇█▆▆▃▃▁ #467 of 474 * · 4.9% of its score · 1 test
Beats Molmo 7B-D (0924), DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Phi-1 (1.3B), Pythia 6.9B, GPT-J 6B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Tulu 2: CodexEval pass@10 | 24.0% ✎ | ▃▃▃·▆▃▃█▃▂▂▅ beats 0/25 | 4.9% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #389 of 405 · 35% of its score · 7 tests
Beats Phi-2 (2.7B), Nous-Hermes-13b, Qwen1.5 4B Chat here, though they rank higher overall. Trails Gemma 3 270M IT, SmolLM2 360M Instruct, Granite 4.0 350M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| AlpacaEval 2 length-controlled | 5.3% ✎ | ▁▂▃▃▆▆█▆▄▄▁▁ beats 8/122 | 8.3% |
| LMArena (text) | 1108.0 ✎ | ▁▁▁▃▃▂▃▆▆▇█▃ beats 16/388 | 7.4% |
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 1036.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 21/95 | 7.1% |
| MT-Bench (GPT-4 single-answer grading, LMSYS runs) | 6.2700 MT-Bench score (1-10) ✎ | ▆▂▂▆▆▄██▂▄▄▆ beats 14/28 | 5.5% |
| Arena-Hard (v0.1, GPT-4-1106 judge) | 4.6% ✎ | ▃▁▁▅█▅▄▃▃▅▃▁ beats 2/60 | 2.4% |
| AlpacaEval 1.0 win rate (vs text-davinci-003, GPT-4 judge) | 71.4% ✎ | ▂▂·▆·▇▃▆█▆▄▂ beats 16/45 | 2.1% |
| Arabic IFEval prompt-level (Inception) | 0.7% ✎ | ▃·▁▁▂▁▄▄▆▄█▄ beats 0/38 | 1.9% |
math▁▁▃▅█▆▅█▄▁▁▁ #377 of 440 * · 3.7% of its score · 1 test
Beats GPT-3.5 Turbo (0125), DBRX Instruct, Command R Plus (04-2024) here, though they rank higher overall. Trails OPT-1.3B, OPT-2.7B, Gemma 2B (base) here, though they rank lower overall.
other tests21 not in a task · 56% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LiveBench 2024-07-26 | 11.6% ✎ | ▁▁▁▃▂▃▂█▆▃▅▃ beats 6/61 | 13% |
| WildBench v2 WB-Score (task macro) | 8.2621 WB-Score ✎ | ▁·▁▃·▃█▄▇▆▅▆ beats 2/52 | 8.2% |
| BIG-Bench Hard | 25.6% ✎ | ▃·····▂█▂▅·▁ beats 0/25 | 6.5% |
| Natural Questions (closed book) | 23.7% ✎ | ▁·▁·▁▂▁▂·▅▃█ beats 18/28 | 6.0% |
| Open Persian LLM Leaderboard v2 average (21 tasks) | 31.7% ✎ | ▃▄▂▃█▄▃▆▃▅▂▂ beats 2/81 | 3.3% |
| MMLU | 46.8% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 7/25 | 3.2% |
| BRIDGE clinical text, zero-shot average (87 tasks) | 16.5% ✎ | ▁▁▁▃▁▂▂▃▄▆█▃ beats 6/97 | 2.9% |
| VEC embodied concepts, zero-shot perplexity probing (average) | 56.7% ✎ | ▁····▁▁·▁·▃█ beats 11/11 | 2.8% |
13 more tests
$ 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 Chat · needs 8.8 GB memory, 4.08 GB download · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/Llama-2-7B-Chat-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-Chat-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 2 7B Chat · 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-Chat-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 Llama 2 7B Chat · needs 8.5 GB memory, 3.83 GB download · from ollama.comchat in the terminal
ollama run llama2:7b-chat
Model repository and documentation: huggingface.co/meta-llama ↗
$ how the score was worked out · Tulu 2 — base and instruction… 19%, LiveBench model judgments (HF… 13%, AlpacaEval 1.0 and 2.0 leader… 10% and 16 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