Across 6 comparable benchmarks, Llama3.1-405B Instruct has better reported results on 6 and worse on 0.
Moderate evidence6 of 6 shared results countedHow we compare
Price basis: Listed rates vs listed rates. The price section below shows the applicable periods.
| Fact | Gemma2-27B | Llama3.1-405B Instruct |
|---|---|---|
| Context window | 8K tokens | 128K tokens |
| Input / 1M | — | $2.40 |
| Output / 1M | — | $2.40 |
| Blended (4:1) | — | $2.40 |
| 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 4 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Llama3.1-405B Instruct ahead on 2 of 2 counted
Llama3.1-405B Instruct ahead on 1 of 1 counted
Llama3.1-405B Instruct ahead on 1 of 1 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 Gemma2-27B relative to Llama3.1-405B Instruct. Reading the results
| Benchmark | Gemma2-27B | Llama3.1-405B Instruct | Gap |
|---|---|---|---|
| HumanEvalCode Generation & Editing · Accuracy | 51.8Normal · no tools | 89.0Normal · no tools | −37.2 pts#65 vs #18 of 100 |
| MBPPCode Generation & Editing · Pass rate (%) | 62.6Normal · no tools | 88.6Normal · no tools | −26.0 pts#35 vs #1 of 67 |
| BBHGeneral Reasoning · Average accuracy (%) | 74.9Normal · no tools | 89.2Normal · no tools | −14.3 pts#13 vs #6 of 20 |
| MATHMathematics · Accuracy | 42.3Normal · no tools | 73.9Normal · no tools | −31.6 pts#38 vs #17 of 42 |
| MMLUKnowledge Exams · Accuracy | 75.2Normal · no tools | 88.6Normal · no tools | −13.4 pts#58 vs #14 of 114 |
| MMLU-ProKnowledge Exams · Accuracy | 56.5Normal · no tools | 73.4Normal · no tools | −16.9 pts#115 vs #85 of 153 |
A dash means no result is available.
| Benchmark | Gemma2-27B | Llama3.1-405B Instruct |
|---|---|---|
| GPQA Diamond | — | 49.0 |
| GSM8K | 74.0 | — |
| LiveCodeBench | — | 30.2 |
| ECI | 122 | — |
| Creative Writing | — | 868 |
| DROP | 74.2 | — |
| HellaSwag | 86.4 | — |
| SimpleBench | — | 23.0 |
| SimpleQA | — | 17.1 |
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.
Gemma2-27B: Listed text rates; pricing tier not confirmed.
Llama3.1-405B Instruct: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Gemma2-27B | Llama3.1-405B Instruct | Ratio |
|---|---|---|---|
| Input | — | $2.40 | — |
| Output | — | $2.40 | — |
| Cached input | — | — | — |
| Cache write | — | — | — |
| Blended | — | $2.40 | — |
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.Effective dates: Gemma2-27B —; Llama3.1-405B Instruct 2026-11-14.| Attribute | Gemma2-27B | Llama3.1-405B Instruct |
|---|---|---|
| Availability | Available | Available |
| Provider | Google Deep Mind | 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 | 27B | 405B |
| 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 Gemma2-27B vs Llama3.1-405B Instruct.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.