Skip to content
llmmodels

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).

SpecGemma 2 27BLlama-3.1-70B-Instruct
ProviderGoogle DeepMindMeta
ReleasedJul 13, 2024Jul 23, 2024 (better)
TypeChat LLMChat LLM
Parameters27B71B
Context window8K128K (better)
Max output2K8K (better)
Input price / 1M$0.65 (better)$0.72
Output price / 1M$0.65 (better)$0.72
Input modalitiestexttext
Open weightsYesYes
Licensegemmallama3.1
Reasoning modeNoNo
Tool callingNoYes
API providers48 (better)
Epoch Capabilities Index118.6124.7 (better)
GPQA Diamond36.5%44.2% (better)
OTIS Mock AIME1.4%3.6% (better)
MATH Level 527.9%36.7% (better)
LiveBench38.2%—
MMLU75.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

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.