Across 10 comparable benchmarks, Gemma 2 - 9B has better reported results on 10 and worse on 0.
Strong evidence10 of 10 shared results countedHow we compare
Price basis: Listed rates vs listed rates. The price section below shows the applicable periods.
| Fact | Gemma 2 - 9B | Llama3.1-8B |
|---|---|---|
| Context window | 8K tokens | 128K tokens |
| Input / 1M | — | — |
| Output / 1M | — | — |
| Blended (4:1) | — | — |
| Status | Available | Available |
| Released | June 27, 2024 | July 23, 2024 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 7 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Gemma 2 - 9B ahead on 2 of 2 counted
Gemma 2 - 9B ahead on 2 of 2 counted
Gemma 2 - 9B ahead on 2 of 2 counted
Gemma 2 - 9B ahead on 1 of 1 counted
No shared comparable results for Computer & tool use, Research & search, Long context, Multimodal, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Gemma 2 - 9B relative to Llama3.1-8B. Reading the results
| Benchmark | Gemma 2 - 9B | Llama3.1-8B | Gap |
|---|---|---|---|
| HumanEvalCode Generation & Editing · Accuracy | 37.8Normal · no tools | 33.5Normal · no tools | +4.3 pts#76 vs #83 of 100 |
| MBPPCode Generation & Editing · Pass rate (%) | 62.2Normal · no tools | 53.9Normal · no tools | +8.3 pts#37 vs #44 of 67 |
| ARCCommonsense · Accuracy | 68.2Normal · no tools | 59.3Normal · no tools | +8.9 pts#1 vs #4 of 4 |
| BBHGeneral Reasoning · Average accuracy (%) | 68.2Normal · no tools | 57.7Normal · no tools | +10.5 pts#15 vs #17 of 20 |
| GSM8KMathematics · Accuracy | 70.7Normal · no tools | 55.3Normal · no tools | +15.4 pts#32 vs #42 of 67 |
| MATHMathematics · Accuracy | 37.7Normal · no tools | 20.5Normal · no tools | +17.2 pts#39 vs #40 of 42 |
| GPQA DiamondScientific Reasoning · Accuracy | 32.8Normal · no tools | 25.8Normal · no tools | +7.0 pts#194 vs #198 of 200 |
| MMLUKnowledge Exams · Accuracy | 71.3Normal · no tools | 66.6Normal · no tools | +4.7 pts#62 vs #73 of 114 |
| MMLU-ProKnowledge Exams · Accuracy | 45.1Reported best | 36.6Reported best | +8.5 pts#128 vs #138 of 153 |
| ECICapability Indices · ECI score (capability index, higher is better) | 120Reported best | 116Reported best | 1.03×#133 vs #138 of 168 |
Scientific Reasoning · Accuracy
A dash means no result is available.
| Benchmark | Gemma 2 - 9B | Llama3.1-8B |
|---|---|---|
| Creative Writing | 840 | — |
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.
Gemma 2 - 9B: Listed text rates; pricing tier not confirmed.
Llama3.1-8B: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Gemma 2 - 9B | Llama3.1-8B | 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 | Gemma 2 - 9B | Llama3.1-8B |
|---|---|---|
| Availability | Available | Available |
| Provider | Google Research | Facebook AI Research Lab |
| Model type | Foundation model | Foundation model |
| First release | June 27, 2024 | July 23, 2024 |
| Context window | 8K tokens | 128K tokens |
| Total parameters | 9B | 8B |
| Architecture | Dense | Dense |
| Weights | Open weights | Open weights |
| Licence | Gemma Terms of Use | LLAMA 3.1 COMMUNITY LICENSE AGREEMENT |
| 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 Gemma 2 - 9B vs Llama3.1-8B.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.