Key Specifications

SpecificationGemma 2 9BGemma 7B
Vendorgooglegoogle
Versiongemma-2-9bgemma-7b
Release Date2024-06-272024-02-21
Context Window8192 tokens8192 tokens
Input Modalitiestexttext
Output Modalitiestexttext
LicenseGemma LicenseGemma License
SOC2
HIPAA
GDPR
ISO 27001

Benchmark Results

BenchmarkGemma 2 9BGemma 7BWinner
ARC90.388.4Gemma 2 9B
BBH66.765.7Gemma 2 9B
GPQA30.337.1Gemma 7B
GSM8K64.363.6Gemma 2 9B
HUMANEVAL60.961Gemma 7B
IFEVAL64.366.9Gemma 7B
MATH28.925.7Gemma 2 9B
MMLU64.369.6Gemma 7B
MUSR44.136.2Gemma 2 9B
WINOGRANDE72.574.1Gemma 7B

Pricing Comparison

Tier (per Mtok)Gemma 2 9BGemma 7B
Input$0.3$0.22
Output$0.3$0.22
Cache Read$0$0
Cache Write$0$0

Gemma 2 9B vs Gemma 7B

Model Overview

Gemma 2 9B and Gemma 7B are both notable options in the AI model market. This page compares their benchmarks, pricing, and compliance.

Key Specifications

VendorRelease DateContext WindowLicense
Google / Google2024-06-27 / 2024-02-218K / 8KGemma License / Gemma License

Benchmark Performance

BenchmarkGemma 2 9BGemma 7BWinner
ARC90.388.4A
BBH (BIG-Bench Hard)66.765.7A
GPQA30.337.1B
GSM8K (Grade School Math 8K)64.363.6A
HumanEval60.961.0Tie
IFEval64.366.9B
MATH28.925.7A
MMLU (Massive Multitask Language Understanding)64.369.6B
MUSR44.136.2A
WinoGrande72.574.1B

Pricing Comparison

InputOutputCache ReadCache Write
— / —— / —— / —— / —

per million tokens — A / B

Strengths & Weaknesses

Gemma 2 9B

  • ✅ Reliable general-purpose model.
  • ⚠️ Proprietary, not self-hostable.
  • ⚠️ Context window 8K is limited.

Gemma 7B

  • ✅ Reliable general-purpose model.
  • ⚠️ Proprietary, not self-hostable.
  • ⚠️ Context window 8K is limited.

Editor’s Take

Gemma 2 9B and Gemma 7B each have their strengths. Choose based on workload (code, long context, vision), referencing the tables above.

FAQ

Which model is better for coding tasks?

Refer to the HumanEval benchmark table; the model with a higher score is better suited for coding tasks.

Which model is cheaper?

Refer to the pricing comparison table above; the model with lower input/output prices is more cost-effective.

Which has a longer context window?

Refer to the key specifications table; the model with a larger context window is better for long documents.

References

Editor's Take

See Editor's Take section.