Gemma 2 27B
Larger Gemma 2, competitive with Llama 70B on some benchmarks at half the size.
Updated
Quick facts
- Released
- Jun 2024
- Context
- 8.2K tokens
- Output / 1M
- Pricing not published
- License
- Gemma License
About Gemma 2 27B
Gemma 2 27B punches above its weight on English benchmarks, often landing within striking distance of Llama-3 70B at meaningfully lower inference cost. Built on Gemini-related research with extensive distillation and curated data work.
The short 8k context window is a real limitation for RAG and long-doc workloads. For chat, classification, and short-form generation, it's a strong open-weight pick.
Benchmarks
Published scores from Google's model card or independent leaderboards. We do not publish numbers we cannot source, see methodology.
- MMLU75.2
Capabilities
Strengths
- Strong quality-per-parameter
- Well-supported
Tracked weaknesses
- Short context
Pricing
Per-million-token rates as published by Google.
Call Gemma 2 27B from your code
Drop-in snippet for the Google SDK. Set your API key in the environment and run.
import { GoogleGenerativeAI } from "@google/generative-ai";
const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
const model = genAI.getGenerativeModel({ model: "gemma-2-27b" });
const result = await model.generateContent(
"What's the time complexity of quicksort?",
);
console.log(result.response.text());Compare Gemma 2 27B with…
Frequently asked
How much does Gemma 2 27B cost?
Google has not published per-token API pricing for Gemma 2 27B at the time of writing. Check the official site for current pricing tiers, or compare against alternative models on LLMDex.What is Gemma 2 27B's context window?
Gemma 2 27B supports a context window of 8.2K tokens.Is Gemma 2 27B open source?
Gemma 2 27B ships with open weights under the Gemma License license. You can self-host it, fine-tune it, and (subject to the license terms) deploy it commercially.When was Gemma 2 27B released?
Gemma 2 27B was released on Jun 27, 2024 by Google.
Intelligence, distilled weekly.
One short email every Friday, new model launches, leaderboard moves, and pricing drops. Curated by hand. Free, no spam.