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

Gemma 2 27B vs Llama 3.1 405B Instruct

A detailed comparison of pricing, benchmarks, and capabilities

108 out of our 483 tracked models have had a price change in March.

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

Key Takeaways

Gemma 2 27B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Higher intelligence benchmark
  • Supports vision

Llama 3.1 405B Instruct wins:

  • Larger context window
  • Faster response time
  • Better at coding
  • Better at math
Price Advantage
Gemma 2 27B
Benchmark Advantage
Llama 3.1 405B Instruct
Context Window
Llama 3.1 405B Instruct
Speed
Llama 3.1 405B Instruct

Pricing Comparison

Price Comparison

MetricGemma 2 27BLlama 3.1 405B InstructWinner
Input (per 1M tokens)$0.65$0.90 Gemma 2 27B
Output (per 1M tokens)$0.65$0.90 Gemma 2 27B
Cache Read (per 1M)N/A$0.45 Llama 3.1 405B Instruct
Using a 3:1 input/output ratio, Gemma 2 27B is 28% cheaper overall.

Gemma 2 27B Providers

No provider data available

Llama 3.1 405B Instruct Providers

No provider data available

Benchmark Comparison

9
Benchmarks Compared
1
Gemma 2 27B Wins
3
Llama 3.1 405B Instruct Wins

Benchmark Scores

BenchmarkGemma 2 27BLlama 3.1 405B InstructWinner
Intelligence Index
Overall intelligence score
36.217.4
Coding Index
Code generation & understanding
-14.5-
Math Index
Mathematical reasoning
-3.0-
MMLU Pro
Academic knowledge
38.473.2
GPQA
Graduate-level science
16.751.5
LiveCodeBench
Competitive programming
-30.5-
Aider
Real-world code editing
36.166.2
AIME
Competition math
-21.3-
BBH
Big-Bench Hard
49.3--
Llama 3.1 405B Instruct significantly outperforms in coding benchmarks.

Cost vs Quality

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

Context & Performance

Context Window

Gemma 2 27B
8,192
tokens
Llama 3.1 405B Instruct
131,000
tokens
Llama 3.1 405B Instruct has a 94% larger context window.

Speed Performance

MetricGemma 2 27BLlama 3.1 405B InstructWinner
Tokens/secondN/A33.7 tok/s
Time to First TokenN/A0.71s

Capabilities

Feature Comparison

FeatureGemma 2 27BLlama 3.1 405B Instruct
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 27BLlama 3.1 405B Instruct
LicenseOpen SourceOpen Source
AuthorGoogleMeta-llama
ReleasedJul 2024Jul 2024

Gemma 2 27B Modalities

Input
text
Output
text

Llama 3.1 405B Instruct Modalities

Input
text
Output
text

Related Comparisons

Compare Gemma 2 27B with:

Compare Llama 3.1 405B Instruct with:

Frequently Asked Questions

Gemma 2 27B has cheaper input pricing at $0.65/M tokens. Gemma 2 27B has cheaper output pricing at $0.65/M tokens.
Llama 3.1 405B Instruct scores higher on coding benchmarks with a score of 14.5, compared to Gemma 2 27B's score of N/A.
Gemma 2 27B has a 8,192 token context window, while Llama 3.1 405B Instruct has a 131,000 token context window.
Gemma 2 27B supports vision. Llama 3.1 405B Instruct does not support vision.