Skip to content
llmmodels

Gemma 7B vs Llama-3.1-8B-Instruct

Llama-3.1-8B-Instruct wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (110.9 vs 103.2).

SpecGemma 7BLlama-3.1-8B-Instruct
ProviderGoogle DeepMindMeta
ReleasedFeb 21, 2024Jul 23, 2024 (better)
TypeChat LLMChat LLM
Parameters8.5B8B
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 Index103.2110.9 (better)
GPQA Diamond—27.0%
OTIS Mock AIME—1.7%
MATH Level 5—22.9%
MMLU66.1% (better)56.1%
GSM8K46.4%82.4% (better)
HellaSwag82.2%—

About Gemma 7B

Gemma 7B is an open-weight chat llm from Google DeepMind, released Feb 21, 2024. It has 8.5B parameters. It scores 103.2 on the Epoch Capabilities Index. Full Gemma 7B 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 7B or Llama-3.1-8B-Instruct?

Llama-3.1-8B-Instruct wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (110.9 vs 103.2).

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

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