Model comparison
Gemma 2B vs Llama 2-7B
Gemma 2B and Llama 2-7B score almost the same on the Noometry Index (29.6 vs 29.1), so choose on price, context window or the category you care about most.
Last verified . 21 shared benchmarks.
Summary
- They share 21 benchmarks with published results for both. Gemma 2B scores higher in 2 categories and Llama 2-7B in 5 categories; 3 gaps are clear of the uncertainty.
- The widest gap is in writing & preference, where Llama 2-7B leads 28.0 to 24.0.
Side by side
| Gemma 2B | Llama 2-7B | |
|---|---|---|
| Provider | Meta | |
| Noometry Index | 29.6 | 29.1 |
| Released | 2024-02-21 | 2023-07-18 |
| Weights | Open | Open |
| Context window | — | — |
| Max output | — | — |
| Input $ / M tokens | — | — |
| Output $ / M tokens | — | — |
| Results tracked | 23 | 29 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Too close to call
Gemma 2B: 29.4 (#305), Llama 2-7B: 29.2 (#307)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Coding | 1010 | 1002 |
| HumanEval+ | 20.7% | — |
| MBPP+ | 34.1% | — |
Reasoning Gemma 2B leads
Gemma 2B: 18.8 (#275), Llama 2-7B: 15.7 (#312)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Hard Prompts | 989 | 1009 |
| BIG-Bench Hard | 35.2% | 39.2% |
| Epoch Capabilities Index | 94.2 | 99.06 |
| HellaSwag | 71.4% | 77.2% |
| PIQA | 77.3% | 78.8% |
| WinoGrande | 65.4% | 69.2% |
| Chess Puzzles | — | 0% |
| LAMBADA | — | 73.3% |
Math Too close to call
Gemma 2B: 30.0 (#239), Llama 2-7B: 30.7 (#233)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Math | 1009 | 1042 |
| GSM8K | 17.7% | 16.7% |
Knowledge Not comparable
Gemma 2B: —, Llama 2-7B: 28.2 (#248)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| ARC (AI2) Challenge | 42.1% | 45.9% |
| BoolQ | 69.4% | 77.9% |
| MMLU | 42.3% | 45.8% |
| TriviaQA | 53.2% | 73.7% |
| LMArena Expert | — | 1036 |
| OpenBookQA | — | 58.6% |
Multimodal Not comparable
Gemma 2B: —, Llama 2-7B: —
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| ScienceQA | — | 43.1% |
Multilingual Too close to call
Gemma 2B: 23.0 (#294), Llama 2-7B: 23.8 (#293)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Non-English | 958 | 973 |
| LMArena Chinese | 986 | 973 |
| LMArena Russian | 937 | 995 |
| LMArena French | — | 970 |
| LMArena German | — | 978 |
| LMArena Spanish | — | 1007 |
Instruction Following Llama 2-7B leads
Gemma 2B: 48.5 (#302), Llama 2-7B: 50.8 (#298)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Instruction Following | 970 | 1006 |
Long Context Too close to call
Gemma 2B: 29.9 (#291), Llama 2-7B: 30.4 (#287)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Longer Query | 981 | 999 |
Writing & Preference Llama 2-7B leads
Gemma 2B: 24.0 (#308), Llama 2-7B: 28.0 (#298)
| Benchmark | Gemma 2B | Llama 2-7B |
|---|---|---|
| LMArena Text | 1002 | 1053 |
| LMArena Creative Writing | 987 | 1033 |
| LMArena Multi-Turn | 945 | 1029 |
Frequently asked questions
Is Gemma 2B better than Llama 2-7B?
Gemma 2B and Llama 2-7B score almost the same on the Noometry Index (29.6 vs 29.1), so choose on price, context window or the category you care about most.
Is Gemma 2B or Llama 2-7B better for coding?
They score almost the same on coding (29.4 vs 29.2); test both on your own repository before choosing.
How many benchmarks do Gemma 2B and Llama 2-7B share?
21 benchmarks have published results for both models. Gemma 2B has 23 scored results on Noometry and Llama 2-7B has 29.