Across 8 comparable benchmarks, Gemma2-27B has better reported results on 8 and worse on 0.
Strong evidence8 of 8 shared results countedHow we compare
Price basis: Listed rates vs listed rates. The price section below shows the applicable periods.
| Fact | Llama3.1-8B | Gemma2-27B |
|---|---|---|
| Context window | 128K tokens | 8K tokens |
| Input / 1M | — | — |
| Output / 1M | — | — |
| Blended (4:1) | — | — |
| Status | Available | Available |
| Released | July 23, 2024 | June 27, 2024 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 5 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Gemma2-27B ahead on 2 of 2 counted
Gemma2-27B ahead on 1 of 1 counted
Gemma2-27B ahead on 2 of 2 counted
No shared comparable results for Science & health, Computer & tool use, Research & search, Long context, Multimodal, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Llama3.1-8B relative to Gemma2-27B. Reading the results
| Benchmark | Llama3.1-8B | Gemma2-27B | Gap |
|---|---|---|---|
| HumanEvalCode Generation & Editing · Accuracy | 33.5Normal · no tools | 51.8Normal · no tools | −18.3 pts#83 vs #65 of 100 |
| MBPPCode Generation & Editing · Pass rate (%) | 53.9Normal · no tools | 62.6Normal · no tools | −8.7 pts#44 vs #35 of 67 |
| BBHGeneral Reasoning · Average accuracy (%) | 57.7Normal · no tools | 74.9Normal · no tools | −17.2 pts#17 vs #13 of 20 |
| GSM8KMathematics · Accuracy | 55.3Normal · no tools | 74.0Normal · no tools | −18.7 pts#42 vs #29 of 67 |
| MATHMathematics · Accuracy | 20.5Normal · no tools | 42.3Normal · no tools | −21.8 pts#40 vs #38 of 42 |
| MMLUKnowledge Exams · Accuracy | 66.6Normal · no tools | 75.2Normal · no tools | −8.6 pts#73 vs #58 of 114 |
| MMLU-ProKnowledge Exams · Accuracy | 36.6Reported best | 56.5≠Normal · no tools | −19.9 pts#138 vs #115 of 153 |
| ECICapability Indices · ECI score (capability index, higher is better) | 116Reported best | 122Reported best | 0.95×#138 vs #130 of 168 |
A dash means no result is available.
| Benchmark | Llama3.1-8B | Gemma2-27B |
|---|---|---|
| GPQA Diamond | 25.8 | — |
| DROP | — | 74.2 |
| ARC | 59.3 | — |
| HellaSwag | — | 86.4 |
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix · 5% steps
Blended price = effective input rate at 90% cache hits × 80% + output rate × 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
Llama3.1-8B: Listed text rates; pricing tier not confirmed.
Gemma2-27B: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Llama3.1-8B | Gemma2-27B | Ratio |
|---|---|---|---|
| Input | — | — | — |
| Output | — | — | — |
| Cached input | — | — | — |
| Cache write | — | — | — |
| Blended | — | — | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
Lower prices are highlighted. The cache hit rate applies to input tokens only; models without a published cached-input rate use their normal input price for those tokens.| Attribute | Llama3.1-8B | Gemma2-27B |
|---|---|---|
| Availability | Available | Available |
| Provider | Facebook AI Research Lab | Google Deep Mind |
| Model type | Foundation model | Foundation model |
| First release | July 23, 2024 | June 27, 2024 |
| Context window | 128K tokens | 8K tokens |
| Total parameters | 8B | 27B |
| Architecture | Dense | Dense |
| Weights | Open weights | Open weights |
| Licence | LLAMA 3.1 COMMUNITY LICENSE AGREEMENT | Gemma Terms of Use |
| Commercial use | Commercial use allowed | Commercial use allowed |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on Llama3.1-8B vs Gemma2-27B.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.