Gemma 2 27B vs Llama-3.1-70B-Instruct
Llama-3.1-70B-Instruct wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (124.7 vs 118.6). Gemma 2 27B is slightly cheaper on a blended (3:1 input:output) token price. Llama-3.1-70B-Instruct has the larger context window (128K vs 8K).
| Spec | Gemma 2 27B | Llama-3.1-70B-Instruct |
|---|---|---|
| Provider | Google DeepMind | Meta |
| Released | Jul 13, 2024 | Jul 23, 2024 (better) |
| Type | Chat LLM | Chat LLM |
| Parameters | 27B | 71B |
| Context window | 8K | 128K (better) |
| Max output | 2K | 8K (better) |
| Input price / 1M | $0.65 (better) | $0.72 |
| Output price / 1M | $0.65 (better) | $0.72 |
| Input modalities | text | text |
| Open weights | Yes | Yes |
| License | gemma | llama3.1 |
| Reasoning mode | No | No |
| Tool calling | No | Yes |
| API providers | 4 | 8 (better) |
| Epoch Capabilities Index | 118.6 | 124.7 (better) |
| GPQA Diamond | 36.5% | 44.2% (better) |
| OTIS Mock AIME | 1.4% | 3.6% (better) |
| MATH Level 5 | 27.9% | 36.7% (better) |
| LiveBench | 38.2% | — |
| MMLU | 75.7% | 80.1% (better) |
Cost example
For a workload of 10M input + 2M output tokens per month: Gemma 2 27B costs $7.80 and Llama-3.1-70B-Instruct costs $8.64 at list price (openrouter / openrouter pricing).
About Gemma 2 27B
Gemma 2 27B is an open-weight chat llm from Google DeepMind, released Jul 13, 2024. It has 27B parameters and a 8K-token context window. API pricing starts at $0.65 per million input tokens and $0.65 per million output tokens. It is available from 4 API providers. It scores 118.6 on the Epoch Capabilities Index. Full Gemma 2 27B specs →
About Llama-3.1-70B-Instruct
Llama-3.1-70B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 71B parameters and a 128K-token context window. API pricing starts at $0.72 per million input tokens and $0.72 per million output tokens. It is available from 8 API providers. It scores 124.7 on the Epoch Capabilities Index. Full Llama-3.1-70B-Instruct specs →
Compare other models
- Gemma 2 27B vs Qwen2.5-Coder-32B-Instruct
- Gemma 2 27B vs Llama 3-70B
- Gemma 2 27B vs Qwen2-72B
- Gemma 2 27B vs Mixtral 8x22B Instruct
- Llama-3.1-70B-Instruct vs Qwen2-72B
- Llama-3.1-70B-Instruct vs Llama-3.3-70B-Instruct
- Llama-3.1-70B-Instruct vs Anthropic: Claude 3.5 Haiku
- Llama-3.1-70B-Instruct vs Llama 3-70B
FAQ
Which is better, Gemma 2 27B or Llama-3.1-70B-Instruct?
Llama-3.1-70B-Instruct wins 5 of 5 benchmarks both models report and has a higher Epoch Capabilities Index (124.7 vs 118.6). Gemma 2 27B is slightly cheaper on a blended (3:1 input:output) token price. Llama-3.1-70B-Instruct has the larger context window (128K vs 8K).
Is Gemma 2 27B cheaper than Llama-3.1-70B-Instruct?
Gemma 2 27B costs $0.65 input / $0.65 output per 1M tokens; Llama-3.1-70B-Instruct costs $0.72 / $0.72. Gemma 2 27B is cheaper overall.
Which has a bigger context window?
Gemma 2 27B: 8,192 tokens. Llama-3.1-70B-Instruct: 131,072 tokens.
Are Gemma 2 27B and Llama-3.1-70B-Instruct open source?
Gemma 2 27B is open-weight; Llama-3.1-70B-Instruct is open-weight.