Model comparison

Granite 4.0 H Small vs Llama 2-7B

Granite 4.0 H Small is the stronger model overall, scoring 35.9 to 28.6 on the Noometry Index.

Last verified . 13 shared benchmarks.

Granite 4.0 H Small IBM

35.9

Rank #213 Confirmed

Llama 2-7B Meta

28.6

Rank #315 Confirmed

Summary

  • They share 13 benchmarks with published results for both. Granite 4.0 H Small scores higher in 8 categories and Llama 2-7B in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in instruction following, where Granite 4.0 H Small leads 68.9 to 51.0.

Side by side

Granite 4.0 H Small and Llama 2-7B specifications
Granite 4.0 H SmallLlama 2-7B
ProviderIBMMeta
Noometry Index35.928.6
Released—2023-07-18
WeightsOpenOpen
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 Granite 4.0 H Small leads

Granite 4.0 H Small: 35.8 (#207), Llama 2-7B: 28.7 (#302)

Coding benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Coding12471002

Reasoning Granite 4.0 H Small leads

Granite 4.0 H Small: 23.4 (#164), Llama 2-7B: 15.1 (#309)

Reasoning benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Hard Prompts12401009
Chess Puzzles—0%
BIG-Bench Hard—39.2%
Epoch Capabilities Index—98.54
HellaSwag—77.2%
LAMBADA—73.3%
PIQA—78.8%
WinoGrande—69.2%

Math Granite 4.0 H Small leads

Granite 4.0 H Small: 29.3 (#219), Llama 2-7B: 28.2 (#231)

Math benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Math12511042
Omni-MATH29.6%—
GSM8K—16.7%

Knowledge Granite 4.0 H Small leads

Granite 4.0 H Small: 31.5 (#210), Llama 2-7B: 27.7 (#243)

Knowledge benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Expert12441036
MMLU-Pro56.9%—
Vectara Hallucination Rate5.2%—
GPQA (HELM)38.3%—
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
MMLU—45.8%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Granite 4.0 H Small: —, Llama 2-7B: —

Multimodal benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
ScienceQA—43.1%

Multilingual Granite 4.0 H Small leads

Granite 4.0 H Small: 38.7 (#223), Llama 2-7B: 23.9 (#288)

Multilingual benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Non-English1216973
LMArena Chinese1250973
LMArena Russian1198995
LMArena Spanish12581007
LMArena French—969
LMArena German—978

Instruction Following Granite 4.0 H Small leads

Granite 4.0 H Small: 68.9 (#178), Llama 2-7B: 51.0 (#293)

Instruction Following benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Instruction Following12211006
IFEval89%—

Long Context Granite 4.0 H Small leads

Granite 4.0 H Small: 37.6 (#209), Llama 2-7B: 30.4 (#282)

Long Context benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Longer Query1240999

Writing & Preference Granite 4.0 H Small leads

Granite 4.0 H Small: 44.0 (#222), Llama 2-7B: 28.1 (#293)

Writing & Preference benchmarks
BenchmarkGranite 4.0 H SmallLlama 2-7B
LMArena Text12411053
LMArena Creative Writing12101033
LMArena Multi-Turn12431029
WildBench73.9%—

Frequently asked questions

Is Granite 4.0 H Small better than Llama 2-7B?

Granite 4.0 H Small is the stronger model overall, scoring 35.9 to 28.6 on the Noometry Index.

Is Granite 4.0 H Small or Llama 2-7B better for coding?

Granite 4.0 H Small scores higher on coding benchmarks: 35.8 versus 28.7 in the Noometry coding category.

How many benchmarks do Granite 4.0 H Small and Llama 2-7B share?

13 benchmarks have published results for both models. Granite 4.0 H Small has 19 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper