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.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

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 and Llama 3.1-8B specifications
Llama 2-7BLlama 3.1-8B
ProviderMetaMeta
Noometry Index29.123.0
Released2023-07-182024-07-23
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.05
Output $ / M tokens—$0.08
Results tracked2943

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)

Coding benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Coding10021195
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)

Agentic & Tool Use benchmarks
BenchmarkLlama 2-7BLlama 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)

Reasoning benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
Chess Puzzles0%0%
LMArena Hard Prompts10091175
Epoch Capabilities Index99.06116.57
PIQA78.8%81.2%
CritPt—0%
DTBench—50.9%
LMCA—5.4%
BIG-Bench Hard39.2%—
HellaSwag77.2%—
LAMBADA73.3%—
WinoGrande69.2%—

Math Llama 2-7B leads

Llama 2-7B: 30.7 (#233), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Math10421179
GSM8K16.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)

Knowledge benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Expert10361144
BoolQ77.9%82.8%
MMLU45.8%56.1%
GPQA Diamond—27%
MMLU-Pro—40.6%
GPQA (HELM)—24.7%
ARC (AI2) Challenge45.9%—
OpenBookQA58.6%—
TriviaQA73.7%—

Multimodal Not comparable

Llama 2-7B: —, Llama 3.1-8B: —

Multimodal benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
ScienceQA43.1%—

Multilingual Llama 3.1-8B leads

Llama 2-7B: 23.8 (#293), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Non-English9731148
LMArena Chinese9731151
LMArena French9701177
LMArena German9781144
LMArena Russian9951158
LMArena Spanish10071169
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)

Instruction Following benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Instruction Following10061159
IFEval—74.3%

Long Context Llama 3.1-8B leads

Llama 2-7B: 30.4 (#287), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Longer Query9991182

Writing & Preference Llama 3.1-8B leads

Llama 2-7B: 28.0 (#298), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkLlama 2-7BLlama 3.1-8B
LMArena Text10531187
LMArena Creative Writing10331154
LMArena Multi-Turn10291172
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.

Related comparisons

Go deeper