Skip to content

Google Gemma 2 vs Llama 3.1 8B Instruct

Google Gemma 2 is cheaper on output tokens, while Llama 3.1 8B Instruct offers a larger context window. Choose Google Gemma 2 or Llama 3.1 8B Instruct based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecGoogle Gemma 2Llama 3.1 8B Instruct
ProviderHeliconeMeta
Input / 1M tokens$0.01$0.05
Output / 1M tokens$0.03$0.08
Context window8K131K
Parameters——
Open weightsNo—
ReleasedJun 2024—
GPQA Diamond score—27.0
LMArena (Chatbot Arena) Elo score—1187

FAQ

Is Google Gemma 2 or Llama 3.1 8B Instruct cheaper?

Google Gemma 2 is cheaper on output tokens ($0.03 vs $0.08 per 1M).

Which has the larger context window, Google Gemma 2 or Llama 3.1 8B Instruct?

Llama 3.1 8B Instruct has the larger context window (131K tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.