Model comparison

Codellama 34b Instruct vs Llama 2-7B

Codellama 34b Instruct is the stronger model overall, scoring 30.8 to 29.1 on the Noometry Index.

Last verified . 10 shared benchmarks.

Codellama 34b Instruct Meta

30.8

Rank #287 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 10 benchmarks with published results for both. Codellama 34b Instruct scores higher in 6 categories and Llama 2-7B in 1 category; 3 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where Codellama 34b Instruct leads 19.6 to 15.7.

Side by side

Codellama 34b Instruct and Llama 2-7B specifications
Codellama 34b InstructLlama 2-7B
ProviderMetaMeta
Noometry Index30.829.1
Released—2023-07-18
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked1429

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

Category by category

Coding Too close to call

Codellama 34b Instruct: 28.5 (#314), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Coding10461002
BigCodeBench Instruct29%—
BigCodeBench Complete37.1%—
HumanEval+43.9%—
MBPP+56.3%—

Reasoning Codellama 34b Instruct leads

Codellama 34b Instruct: 19.6 (#255), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Hard Prompts10321009
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 Too close to call

Codellama 34b Instruct: 31.0 (#230), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Math10561042
GSM8K—16.7%

Knowledge Not comparable

Codellama 34b Instruct: —, Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Expert—1036
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
MMLU—45.8%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Codellama 34b Instruct: —, Llama 2-7B: —

Multimodal benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
ScienceQA—43.1%

Multilingual Codellama 34b Instruct leads

Codellama 34b Instruct: 25.8 (#284), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Non-English1011973
LMArena Chinese976973
LMArena French—970
LMArena German—978
LMArena Russian—995
LMArena Spanish—1007

Instruction Following Codellama 34b Instruct leads

Codellama 34b Instruct: 52.2 (#291), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Instruction Following10281006

Long Context Too close to call

Codellama 34b Instruct: 30.9 (#284), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Longer Query1013999

Writing & Preference Too close to call

Codellama 34b Instruct: 28.2 (#297), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkCodellama 34b InstructLlama 2-7B
LMArena Text10661053
LMArena Creative Writing10321033
LMArena Multi-Turn10151029

Frequently asked questions

Is Codellama 34b Instruct better than Llama 2-7B?

Codellama 34b Instruct is the stronger model overall, scoring 30.8 to 29.1 on the Noometry Index.

Is Codellama 34b Instruct or Llama 2-7B better for coding?

They score almost the same on coding (28.5 vs 29.2); test both on your own repository before choosing.

How many benchmarks do Codellama 34b Instruct and Llama 2-7B share?

10 benchmarks have published results for both models. Codellama 34b Instruct has 14 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper