Model comparison

Llama 2-7B vs Phi-4 Mini

Phi-4 Mini is the stronger model overall, scoring 30.9 to 29.1 on the Noometry Index.

Last verified . 0 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Phi-4 Mini Microsoft

30.9

Rank #283 Reported

Summary

  • The widest gap is in reasoning, where Phi-4 Mini leads 22.4 to 15.7.

Side by side

Llama 2-7B and Phi-4 Mini specifications
Llama 2-7BPhi-4 Mini
ProviderMetaMicrosoft
Noometry Index29.130.9
Released2023-07-182024-12-11
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.075
Output $ / M tokens—$0.30
Results tracked293

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), Phi-4 Mini: 28.1 (#317)

Coding benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
SciCode—10.8%
LMArena Coding1002—

Reasoning Phi-4 Mini leads

Llama 2-7B: 15.7 (#312), Phi-4 Mini: 22.4 (#195)

Reasoning benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
CritPt—0%
Chess Puzzles0%—
LMArena Hard Prompts1009—
BIG-Bench Hard39.2%—
Epoch Capabilities Index99.06—
HellaSwag77.2%—
LAMBADA73.3%—
PIQA78.8%—
WinoGrande69.2%—

Math Not comparable

Llama 2-7B: 30.7 (#233), Phi-4 Mini: —

Math benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
LMArena Math1042—
GSM8K16.7%—

Knowledge Llama 2-7B leads

Llama 2-7B: 28.2 (#248), Phi-4 Mini: 25.3 (#262)

Knowledge benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
Vectara Hallucination Rate—23.5%
LMArena Expert1036—
ARC (AI2) Challenge45.9%—
BoolQ77.9%—
MMLU45.8%—
OpenBookQA58.6%—
TriviaQA73.7%—

Multimodal Not comparable

Llama 2-7B: —, Phi-4 Mini: —

Multimodal benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
ScienceQA43.1%—

Multilingual Not comparable

Llama 2-7B: 23.8 (#293), Phi-4 Mini: —

Multilingual benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
LMArena Non-English973—
LMArena Chinese973—
LMArena French970—
LMArena German978—
LMArena Russian995—
LMArena Spanish1007—

Instruction Following Not comparable

Llama 2-7B: 50.8 (#298), Phi-4 Mini: —

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
LMArena Instruction Following1006—

Long Context Not comparable

Llama 2-7B: 30.4 (#287), Phi-4 Mini: —

Long Context benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
LMArena Longer Query999—

Writing & Preference Not comparable

Llama 2-7B: 28.0 (#298), Phi-4 Mini: —

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi-4 Mini
LMArena Text1053—
LMArena Creative Writing1033—
LMArena Multi-Turn1029—

Frequently asked questions

Is Llama 2-7B better than Phi-4 Mini?

Phi-4 Mini is the stronger model overall, scoring 30.9 to 29.1 on the Noometry Index.

Is Llama 2-7B or Phi-4 Mini better for coding?

Llama 2-7B scores higher on coding benchmarks: 29.2 versus 28.1 in the Noometry coding category.

How many benchmarks do Llama 2-7B and Phi-4 Mini share?

0 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and Phi-4 Mini has 3.

Related comparisons

Go deeper