Model comparison

ERNIE 5.1 vs Llama 2-7B

ERNIE 5.1 is the stronger model overall, scoring 43.8 to 29.1 on the Noometry Index.

Last verified . 15 shared benchmarks.

ERNIE 5.1 Baidu

43.8

Rank #83 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 15 benchmarks with published results for both. ERNIE 5.1 scores higher in 8 categories and Llama 2-7B in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where ERNIE 5.1 leads 65.1 to 28.0.
  • Llama 2-7B has downloadable open weights; the other is API-only.

Side by side

ERNIE 5.1 and Llama 2-7B specifications
ERNIE 5.1Llama 2-7B
ProviderBaiduMeta
Noometry Index43.829.1
Released—2023-07-18
WeightsProprietaryOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked1929

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding ERNIE 5.1 leads

ERNIE 5.1: 44.0 (#76), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Coding14881002

Agentic & Tool Use Not comparable

ERNIE 5.1: —, Llama 2-7B: —

Agentic & Tool Use benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Search1227—

Reasoning ERNIE 5.1 leads

ERNIE 5.1: 21.9 (#211), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Hard Prompts14811009
NYT Connections (extended)23.4%—
Chess Puzzles—0%
BIG-Bench Hard—39.2%
Epoch Capabilities Index—99.06
HellaSwag—77.2%
LAMBADA—73.3%
PIQA—78.8%
WinoGrande—69.2%

Math ERNIE 5.1 leads

ERNIE 5.1: 40.3 (#92), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Math14811042
GSM8K—16.7%

Knowledge ERNIE 5.1 leads

ERNIE 5.1: 41.9 (#102), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Expert14921036
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
MMLU—45.8%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

ERNIE 5.1: —, Llama 2-7B: —

Multimodal benchmarks
BenchmarkERNIE 5.1Llama 2-7B
ScienceQA—43.1%

Multilingual ERNIE 5.1 leads

ERNIE 5.1: 55.5 (#29), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Non-English1454973
LMArena Chinese1508973
LMArena French1488970
LMArena German1470978
LMArena Russian1459995
LMArena Spanish14731007
LMArena Japanese1422—
LMArena Korean1427—

Instruction Following ERNIE 5.1 leads

ERNIE 5.1: 76.7 (#37), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Instruction Following14601006

Long Context ERNIE 5.1 leads

ERNIE 5.1: 44.7 (#59), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Longer Query1462999

Writing & Preference ERNIE 5.1 leads

ERNIE 5.1: 65.1 (#52), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkERNIE 5.1Llama 2-7B
LMArena Text14681053
LMArena Creative Writing14411033
LMArena Multi-Turn14711029

Frequently asked questions

Is ERNIE 5.1 better than Llama 2-7B?

ERNIE 5.1 is the stronger model overall, scoring 43.8 to 29.1 on the Noometry Index.

Is ERNIE 5.1 or Llama 2-7B better for coding?

ERNIE 5.1 scores higher on coding benchmarks: 44.0 versus 29.2 in the Noometry coding category.

How many benchmarks do ERNIE 5.1 and Llama 2-7B share?

15 benchmarks have published results for both models. ERNIE 5.1 has 19 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper