Model comparison

Llama 2-34B vs Phi-2

Neither Llama 2-34B nor Phi-2 has enough public benchmark results to be ranked yet; the rows below show what has been published.

Last verified . 7 shared benchmarks.

Llama 2-34B Meta

—

Unranked

Phi-2 Microsoft

—

Unranked

Summary

  • They share 7 benchmarks with published results for both.
  • Phi-2 has downloadable open weights; the other is API-only.

Side by side

Llama 2-34B and Phi-2 specifications
Llama 2-34BPhi-2
ProviderMetaMicrosoft
Noometry Index——
Released2023-07-182023-12-12
WeightsProprietaryOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked1011

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

Category by category

Coding Not comparable

Llama 2-34B: —, Phi-2: —

Coding benchmarks
BenchmarkLlama 2-34BPhi-2
HumanEval+—45.1%
MBPP+—54.2%

Reasoning Not comparable

Llama 2-34B: —, Phi-2: —

Reasoning benchmarks
BenchmarkLlama 2-34BPhi-2
BIG-Bench Hard44.1%59.4%
Epoch Capabilities Index104.81107.62
WinoGrande76.7%54.7%
Adversarial NLI—42.5%
HellaSwag—53.6%
PIQA81.9%—

Math Not comparable

Llama 2-34B: —, Phi-2: —

Math benchmarks
BenchmarkLlama 2-34BPhi-2
GSM8K42.2%—

Knowledge Not comparable

Llama 2-34B: —, Phi-2: —

Knowledge benchmarks
BenchmarkLlama 2-34BPhi-2
ARC (AI2) Challenge54.5%75.9%
MMLU62.6%58.4%
OpenBookQA58.2%73.6%
TriviaQA84.6%45.2%
BoolQ83.7%—

Frequently asked questions

Is Llama 2-34B better than Phi-2?

Neither Llama 2-34B nor Phi-2 has enough public benchmark results to be ranked yet; the rows below show what has been published.

How many benchmarks do Llama 2-34B and Phi-2 share?

7 benchmarks have published results for both models. Llama 2-34B has 10 scored results on Noometry and Phi-2 has 11.

Related comparisons

Go deeper