Model comparison

Codestral vs Gemma 2B

Codestral and Gemma 2B score almost the same on the Noometry Index (30.6 vs 29.6), so choose on price, context window or the category you care about most.

Last verified . 2 shared benchmarks.

Codestral Mistral AI

30.6

Rank #290 Reported

Gemma 2B Google

29.6

Rank #307 Confirmed

Summary

  • They share 2 benchmarks with published results for both. Codestral scores higher in 1 category and Gemma 2B in 1 category; one gap is clear of the uncertainty.
  • Gemma 2B has downloadable open weights; the other is API-only.

Side by side

Codestral and Gemma 2B specifications
CodestralGemma 2B
ProviderMistral AIGoogle
Noometry Index30.629.6
Released2024-05-292024-02-21
WeightsProprietaryOpen
Context window256K—
Max output8K—
Input $ / M tokens$0.30—
Output $ / M tokens$0.90—
Results tracked723

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

Category by category

Coding Gemma 2B leads

Codestral: 27.3 (#321), Gemma 2B: 29.4 (#305)

Coding benchmarks
BenchmarkCodestralGemma 2B
HumanEval+73.8%20.7%
MBPP+61.9%34.1%
Aider Polyglot11.1%—
BigCodeBench Instruct41.8%—
LMArena Coding—1010
BigCodeBench Complete52.5%—
ALE-Bench137.78—

Reasoning Too close to call

Codestral: 19.8 (#251), Gemma 2B: 18.8 (#275)

Reasoning benchmarks
BenchmarkCodestralGemma 2B
Kagi LLM Benchmark32.5%—
LMArena Hard Prompts—989
BIG-Bench Hard—35.2%
Epoch Capabilities Index—94.2
HellaSwag—71.4%
PIQA—77.3%
WinoGrande—65.4%

Math Not comparable

Codestral: —, Gemma 2B: 30.0 (#239)

Math benchmarks
BenchmarkCodestralGemma 2B
LMArena Math—1009
GSM8K—17.7%

Knowledge Not comparable

Codestral: —, Gemma 2B: —

Knowledge benchmarks
BenchmarkCodestralGemma 2B
ARC (AI2) Challenge—42.1%
BoolQ—69.4%
MMLU—42.3%
TriviaQA—53.2%

Multilingual Not comparable

Codestral: —, Gemma 2B: 23.0 (#294)

Multilingual benchmarks
BenchmarkCodestralGemma 2B
LMArena Non-English—958
LMArena Chinese—986
LMArena Russian—937

Instruction Following Not comparable

Codestral: —, Gemma 2B: 48.5 (#302)

Instruction Following benchmarks
BenchmarkCodestralGemma 2B
LMArena Instruction Following—970

Long Context Not comparable

Codestral: —, Gemma 2B: 29.9 (#291)

Long Context benchmarks
BenchmarkCodestralGemma 2B
LMArena Longer Query—981

Writing & Preference Not comparable

Codestral: —, Gemma 2B: 24.0 (#308)

Writing & Preference benchmarks
BenchmarkCodestralGemma 2B
LMArena Text—1002
LMArena Creative Writing—987
LMArena Multi-Turn—945

Frequently asked questions

Is Codestral better than Gemma 2B?

Codestral and Gemma 2B score almost the same on the Noometry Index (30.6 vs 29.6), so choose on price, context window or the category you care about most.

Is Codestral or Gemma 2B better for coding?

Gemma 2B scores higher on coding benchmarks: 29.4 versus 27.3 in the Noometry coding category.

How many benchmarks do Codestral and Gemma 2B share?

2 benchmarks have published results for both models. Codestral has 7 scored results on Noometry and Gemma 2B has 23.

Related comparisons

Go deeper