Skip to content
llmmodels

Gemma 2 9B vs Llama-3.1-8B-Instruct

Gemma 2 9B wins 4 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (112.4 vs 110.9).

SpecGemma 2 9BLlama-3.1-8B-Instruct
ProviderGoogle DeepMindMeta
ReleasedJun 24, 2024Jul 23, 2024 (better)
TypeChat LLMChat LLM
Parameters9.2B8B
Context window—128K
Max output—16K
Input price / 1M—$0.02
Output price / 1M—$0.04
Input modalitiestexttext
Open weightsYesYes
Licensegemmallama3.1
Reasoning modeNoNo
Tool callingNoYes
API providers—19 (better)
Epoch Capabilities Index112.4 (better)110.9
GPQA Diamond27.5% (better)27.0%
OTIS Mock AIME0.6%1.7% (better)
MATH Level 521.0%22.9% (better)
LiveBench28.7%—
MMLU72.1% (better)56.1%
GSM8K84.9% (better)82.4%

About Gemma 2 9B

Gemma 2 9B is an open-weight chat llm from Google DeepMind, released Jun 24, 2024. It has 9.2B parameters. It scores 112.4 on the Epoch Capabilities Index. Full Gemma 2 9B specs →

About Llama-3.1-8B-Instruct

Llama-3.1-8B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 8B parameters and a 128K-token context window. API pricing starts at $0.02 per million input tokens and $0.04 per million output tokens. It is available from 19 API providers. It scores 110.9 on the Epoch Capabilities Index. Full Llama-3.1-8B-Instruct specs →

Compare other models

FAQ

Which is better, Gemma 2 9B or Llama-3.1-8B-Instruct?

Gemma 2 9B wins 4 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (112.4 vs 110.9).

Are Gemma 2 9B and Llama-3.1-8B-Instruct open source?

Gemma 2 9B is open-weight; Llama-3.1-8B-Instruct is open-weight.