Price Per TokenPrice Per Token
Google
Google
vs
Meta-llama
Meta-llama

Gemma 2 9B vs Llama 3 8B Instruct

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Gemma 2 9B wins:

  • Higher intelligence benchmark

Llama 3 8B Instruct wins:

  • Cheaper output tokens
  • Faster response time
  • Better at coding
Price Advantage
Llama 3 8B Instruct
Benchmark Advantage
Gemma 2 9B
Context Window
Llama 3 8B Instruct
Speed
Llama 3 8B Instruct

Pricing Comparison

Price Comparison

MetricGemma 2 9BLlama 3 8B InstructWinner
Input (per 1M tokens)$0.03$0.03Tie
Output (per 1M tokens)$0.09$0.04 Llama 3 8B Instruct
Using a 3:1 input/output ratio, Llama 3 8B Instruct is 28% cheaper overall.

Gemma 2 9B Providers

Nebius $0.03 (Cheapest)
Novita $0.08

Llama 3 8B Instruct Providers

DeepInfra $0.03 (Cheapest)
Novita $0.04
Together $0.10
Cloudflare $0.28

Benchmark Comparison

7
Benchmarks Compared
1
Gemma 2 9B Wins
2
Llama 3 8B Instruct Wins

Benchmark Scores

BenchmarkGemma 2 9BLlama 3 8B InstructWinner
Intelligence Index
Overall intelligence score
32.18.7
Coding Index
Code generation & understanding
-4.0-
MMLU Pro
Academic knowledge
31.940.5
GPQA
Graduate-level science
14.829.6
LiveCodeBench
Competitive programming
-9.6-
AIME
Competition math
-0.0-
BBH
Big-Bench Hard
42.1--
Llama 3 8B Instruct wins 2 out of 7 benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Gemma 2 9B
Other models

Context & Performance

Context Window

Gemma 2 9B
8,192
tokens
Llama 3 8B Instruct
8,192
tokens
Max output: 16,384 tokens

Speed Performance

MetricGemma 2 9BLlama 3 8B InstructWinner
Tokens/secondN/A66.3 tok/s
Time to First TokenN/A0.39s

Capabilities

Feature Comparison

FeatureGemma 2 9BLlama 3 8B Instruct
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 9BLlama 3 8B Instruct
LicenseOpen SourceOpen Source
AuthorGoogleMeta-llama
ReleasedJun 2024Apr 2024

Gemma 2 9B Modalities

Input
text
Output
text

Llama 3 8B Instruct Modalities

Input
text
Output
text

Related Comparisons

Compare Gemma 2 9B with:

Compare Llama 3 8B Instruct with:

Frequently Asked Questions

Gemma 2 9B has cheaper input pricing at $0.03/M tokens. Llama 3 8B Instruct has cheaper output pricing at $0.04/M tokens.
Llama 3 8B Instruct scores higher on coding benchmarks with a score of 4.0, compared to Gemma 2 9B's score of N/A.
Gemma 2 9B has a 8,192 token context window, while Llama 3 8B Instruct has a 8,192 token context window.
Gemma 2 9B does not support vision. Llama 3 8B Instruct does not support vision.