Model comparison
Gemma 2 27B vs Llama 2-7B
Gemma 2 27B and Llama 2-7B score almost the same on the Noometry Index (29.4 vs 29.1), so choose on price, context window or the category you care about most.
Last verified . 17 shared benchmarks.
Summary
- They share 17 benchmarks with published results for both. Gemma 2 27B scores higher in 5 categories and Llama 2-7B in 3 categories; 7 gaps are clear of the uncertainty.
- The widest gap is in math, where Llama 2-7B leads 30.7 to 10.7.
Side by side
| Gemma 2 27B | Llama 2-7B | |
|---|---|---|
| Provider | Meta | |
| Noometry Index | 29.4 | 29.1 |
| Released | 2024-06-24 | 2023-07-18 |
| Weights | Open | Open |
| Context window | 8K | — |
| Max output | 2K | — |
| Input $ / M tokens | $0.65 | — |
| Output $ / M tokens | $0.65 | — |
| Results tracked | 34 | 29 |
Sponsored placements are available on pages like this one. Advertise on Noometry
Category by category
Coding Gemma 2 27B leads
Gemma 2 27B: 34.1 (#246), Llama 2-7B: 29.2 (#307)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Coding | 1211 | 1002 |
| BigCodeBench Instruct | 42.8% | — |
| LiveBench Coding | 36% | — |
| BigCodeBench Complete | 52.5% | — |
Reasoning Too close to call
Gemma 2 27B: 15.3 (#315), Llama 2-7B: 15.7 (#312)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Hard Prompts | 1198 | 1009 |
| Epoch Capabilities Index | 122.08 | 99.06 |
| Chess Puzzles | — | 0% |
| LiveBench Reasoning | 28.1% | — |
| DTBench | 48% | — |
| LiveBench Data Analysis | 47.9% | — |
| LMCA | 7.1% | — |
| BIG-Bench Hard | — | 39.2% |
| HellaSwag | — | 77.2% |
| LAMBADA | — | 73.3% |
| LiveBench | 38.2% | — |
| PIQA | — | 78.8% |
| WinoGrande | — | 69.2% |
Math Llama 2-7B leads
Gemma 2 27B: 10.7 (#311), Llama 2-7B: 30.7 (#233)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Math | 1212 | 1042 |
| OTIS Mock AIME 2024-2025 | 1.4% | — |
| LiveBench Math | 26.5% | — |
| MATH Level 5 | 27.9% | — |
| GSM8K | — | 16.7% |
Knowledge Llama 2-7B leads
Gemma 2 27B: 19.0 (#280), Llama 2-7B: 28.2 (#248)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Expert | 1172 | 1036 |
| MMLU | 75.7% | 45.8% |
| GPQA Diamond | 36.5% | — |
| Confabulations | 27.1% | — |
| ARC (AI2) Challenge | — | 45.9% |
| BoolQ | — | 77.9% |
| OpenBookQA | — | 58.6% |
| TriviaQA | — | 73.7% |
Multimodal Not comparable
Gemma 2 27B: —, Llama 2-7B: —
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| ScienceQA | — | 43.1% |
Multilingual Gemma 2 27B leads
Gemma 2 27B: 38.6 (#226), Llama 2-7B: 23.8 (#293)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Non-English | 1217 | 973 |
| LMArena Chinese | 1221 | 973 |
| LMArena French | 1247 | 970 |
| LMArena German | 1209 | 978 |
| LMArena Russian | 1234 | 995 |
| LMArena Spanish | 1228 | 1007 |
| LMArena Japanese | 1175 | — |
| LMArena Korean | 1174 | — |
Instruction Following Gemma 2 27B leads
Gemma 2 27B: 60.5 (#249), Llama 2-7B: 50.8 (#298)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Instruction Following | 1206 | 1006 |
| LiveBench Instruction Following | 58.1% | — |
Long Context Gemma 2 27B leads
Gemma 2 27B: 37.3 (#218), Llama 2-7B: 30.4 (#287)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Longer Query | 1231 | 999 |
Writing & Preference Gemma 2 27B leads
Gemma 2 27B: 44.2 (#225), Llama 2-7B: 28.0 (#298)
| Benchmark | Gemma 2 27B | Llama 2-7B |
|---|---|---|
| LMArena Text | 1231 | 1053 |
| LMArena Creative Writing | 1241 | 1033 |
| LMArena Multi-Turn | 1224 | 1029 |
| LiveBench Language | 32.6% | — |
Frequently asked questions
Is Gemma 2 27B better than Llama 2-7B?
Gemma 2 27B and Llama 2-7B score almost the same on the Noometry Index (29.4 vs 29.1), so choose on price, context window or the category you care about most.
Is Gemma 2 27B or Llama 2-7B better for coding?
Gemma 2 27B scores higher on coding benchmarks: 34.1 versus 29.2 in the Noometry coding category.
How many benchmarks do Gemma 2 27B and Llama 2-7B share?
17 benchmarks have published results for both models. Gemma 2 27B has 34 scored results on Noometry and Llama 2-7B has 29.