Model comparison
Llama 2-7B vs Llama 3.1-8B
Llama 2-7B is the stronger model overall, scoring 29.1 to 23.0 on the Noometry Index.
Last verified . 21 shared benchmarks.
Summary
- They share 21 benchmarks with published results for both. Llama 2-7B scores higher in 4 categories and Llama 3.1-8B in 4 categories; 7 gaps are clear of the uncertainty.
- The widest gap is in math, where Llama 2-7B leads 30.7 to 10.2.
Side by side
| Llama 2-7B | Llama 3.1-8B | |
|---|---|---|
| Provider | Meta | Meta |
| Noometry Index | 29.1 | 23.0 |
| Released | 2023-07-18 | 2024-07-23 |
| Weights | Open | Open |
| Context window | — | 128K |
| Max output | — | 4K |
| Input $ / M tokens | — | $0.05 |
| Output $ / M tokens | — | $0.08 |
| Results tracked | 29 | 43 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Llama 2-7B leads
Llama 2-7B: 29.2 (#307), Llama 3.1-8B: 20.2 (#340)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Coding | 1002 | 1195 |
| SciCode | — | 13.2% |
| WeirdML | — | 1.7% |
| BigCodeBench Instruct | — | 32.8% |
| BigCodeBench Complete | — | 40.5% |
| HumanEval+ | — | 62.8% |
| MBPP+ | — | 55.6% |
Agentic & Tool Use Not comparable
Llama 2-7B: —, Llama 3.1-8B: 22.5 (#131)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| Berkeley Function Calling Leaderboard | — | 25.8% |
| BALROG | — | 15.1% |
Reasoning Too close to call
Llama 2-7B: 15.7 (#312), Llama 3.1-8B: 14.9 (#321)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| Chess Puzzles | 0% | 0% |
| LMArena Hard Prompts | 1009 | 1175 |
| Epoch Capabilities Index | 99.06 | 116.57 |
| PIQA | 78.8% | 81.2% |
| CritPt | — | 0% |
| DTBench | — | 50.9% |
| LMCA | — | 5.4% |
| BIG-Bench Hard | 39.2% | — |
| HellaSwag | 77.2% | — |
| LAMBADA | 73.3% | — |
| WinoGrande | 69.2% | — |
Math Llama 2-7B leads
Llama 2-7B: 30.7 (#233), Llama 3.1-8B: 10.2 (#317)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Math | 1042 | 1179 |
| GSM8K | 16.7% | 82.4% |
| OTIS Mock AIME 2024-2025 | — | 1.7% |
| Omni-MATH | — | 13.7% |
| MATH Level 5 | — | 22.9% |
Knowledge Llama 2-7B leads
Llama 2-7B: 28.2 (#248), Llama 3.1-8B: 8.0 (#307)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Expert | 1036 | 1144 |
| BoolQ | 77.9% | 82.8% |
| MMLU | 45.8% | 56.1% |
| GPQA Diamond | — | 27% |
| MMLU-Pro | — | 40.6% |
| GPQA (HELM) | — | 24.7% |
| ARC (AI2) Challenge | 45.9% | — |
| OpenBookQA | 58.6% | — |
| TriviaQA | 73.7% | — |
Multimodal Not comparable
Llama 2-7B: —, Llama 3.1-8B: —
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| ScienceQA | 43.1% | — |
Multilingual Llama 3.1-8B leads
Llama 2-7B: 23.8 (#293), Llama 3.1-8B: 34.0 (#249)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Non-English | 973 | 1148 |
| LMArena Chinese | 973 | 1151 |
| LMArena French | 970 | 1177 |
| LMArena German | 978 | 1144 |
| LMArena Russian | 995 | 1158 |
| LMArena Spanish | 1007 | 1169 |
| LMArena Japanese | — | 1061 |
| LMArena Korean | — | 1053 |
Instruction Following Llama 3.1-8B leads
Llama 2-7B: 50.8 (#298), Llama 3.1-8B: 58.9 (#258)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Instruction Following | 1006 | 1159 |
| IFEval | — | 74.3% |
Long Context Llama 3.1-8B leads
Llama 2-7B: 30.4 (#287), Llama 3.1-8B: 35.8 (#238)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Longer Query | 999 | 1182 |
Writing & Preference Llama 3.1-8B leads
Llama 2-7B: 28.0 (#298), Llama 3.1-8B: 29.7 (#290)
| Benchmark | Llama 2-7B | Llama 3.1-8B |
|---|---|---|
| LMArena Text | 1053 | 1187 |
| LMArena Creative Writing | 1033 | 1154 |
| LMArena Multi-Turn | 1029 | 1172 |
| EQ-Bench Creative Writing | — | 713 |
| WildBench | — | 68.7% |
Frequently asked questions
Is Llama 2-7B better than Llama 3.1-8B?
Llama 2-7B is the stronger model overall, scoring 29.1 to 23.0 on the Noometry Index.
Is Llama 2-7B or Llama 3.1-8B better for coding?
Llama 2-7B scores higher on coding benchmarks: 29.2 versus 20.2 in the Noometry coding category.
How many benchmarks do Llama 2-7B and Llama 3.1-8B share?
21 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and Llama 3.1-8B has 43.