Model datasheet · Gemma 3
Gemma 3 27B
SupersededSuperseded by Gemma 4 31B and Gemma 4 26B-A4B, Google's next generation in the same size class. Kept for its receipts: best-in-family prose and real vision, and the clearest case on this site of a vendor coding number (HumanEval 48.8) contradicted by an independent one (Aider polyglot 4.9%).
- Vendor
- Architecture
- Dense · 27B
- Context
- 131,072 tokens
- License
- Gemma Terms of Use
- Released
- 2025-03-12
- Vision
- Yes
→ GGUF (llama.cpp / LM Studio / Ollama) → MLX (Apple Silicon)
Architecture, from its own config.json
62 layers · 52 sliding window · 10 full attention
32 attention heads over 16 KV heads (GQA 2:1), head dim 128 · dense feed-forward · vocabulary 262,208
Where the memory goes: weights by band above, plus a KV cache of 1.2GB at 8K · 3.1GB at 32K · 10.6GB at 128K, plus the runtime's own working memory — dominated by the output projection over that vocabulary.
Inside one layer, from its own tensors
62 × layer
52 sliding-window layers, 10 full-attention layers — the same block either way. What differs is how far back the mask lets attention look, not what the layer is built from.
The green line down the right of each half is the residual: it leaves the spine above the norm, skips the operation entirely and rejoins at the +. Where attention is drawn open, q, k and v are scaled to their real output widths — a model that shares key and value heads across many query heads shows one wide box beside two narrow ones.
Around the stack: an embedding of 262,208 × 5,376, a final norm, and an output projection that reuses the embedding (tied weights).
§1 Characteristics by quantization band
— Not yet rated · contributions welcome —
Q4–Q5 — 4–5 bit
17GB weights · e.g. Q4_0 , Q4_K_M , mlx-4bit + KV: 1.2GB at 8K · 3.1GB at 32K · 10.6GB at 128Kdata checked Oct 2026
- quant-degradation-community — editorial band derivation @ Q4_0 · aggregated · 2026-10-04
Editorial derivation: carried from the EQ-Bench-anchored full band; Google's QAT Q4_0 preserves prose quality well. Lowered from 6 to 5 on 2026-10-31 with the full band, after the EQ-Bench re-judge.
data checked Aug 2026
- quant-degradation-community — community consensus @ Q4_0 · aggregated · 2026-08-30
Editorial derivation: small loss vs full band; QAT helps.
data checked Aug 2026
- quant-degradation-community — community consensus @ Q4_0 · aggregated · 2026-08-30
Editorial derivation: carried from full band.
— Not yet rated · contributions welcome —
FP16 — full precision (fp16/bf16)
54GB weights · e.g. bf16 + KV: 1.2GB at 8K · 3.1GB at 32K · 10.6GB at 128Kdata checked Aug 2026
- vendor-model-card — MATH (4-shot) = 50 @ bf16 · vendor-reported · 2026-08-30
GSM8K: 82.6.
data checked Aug 2026
- vendor-model-card — HumanEval = 48.8 @ bf16 · vendor-reported · 2026-08-30
MBPP: 65.6.
- aider-polyglot — percent correct (whole format) = 4.9 @ bf16 · aggregated · 2026-08-30
Near the bottom of the board — real-world code editing is far weaker than HumanEval suggests.
data checked Aug 2026
- vectara-hallucination — HHEM hallucination rate % (lower is better) = 7.4 @ bf16 · aggregated · 2026-08-30
Curiously worse than the 4B's 6.4%.
data checked Oct 2026
- eqbench-creative — EQ-Bench Creative Writing v3 rubric score (0-20) = 11.74 @ bf16 · aggregated · 2026-10-31
Row google/gemma-3-27b-it, Elo 1266.4. Was 15.33 under the old judge. Now level with Gemma 4 E4B (11.59, scored 5) and below every larger Gemma 4 (12.38-13.6, scored 6); lowered from 6 to 5 on 2026-10-31 to match. Independent. Creative Writing v3 was re-scored on 2026-10-25 (rubric now judged by GLM 5.3, pairwise Elo by Claude Opus 5; board median fell from 15.96 to 13.56), and this row was updated after the 2026-10-04 retrieval, so the earlier figure is not comparable. Quant not stated by EQ-Bench (presumed full-precision API serving). Data file behind https://eqbench.com/creative_writing.html, last modified 2026-10-28.
- eqbench-creative — EQ-Bench Creative Writing Longform score (0-100) = 41.9 @ bf16 · aggregated · 2026-10-04
Longform: level with Gemma 3 12B (41.8), below Gemma 4 31B (56.5) and Qwen3.8 27B (53.3). Data file behind the Longform page on eqbench.com. Quant not stated (presumed full precision).
§2 Known issues & what fixes them
Real-world code editing is dismal — 4.9% on the Aider polyglot board, near the bottom, despite a respectable-looking HumanEval. Snippet benchmarks flatter it; repository work exposes it.
Use a Qwen3 model for coding. Gemma's lane is chat, languages, writing, and vision.
Evidence · 2 sources · community-consensus
- Aider polyglot leaderboard (gemma-3-27b-it: 4.9%) (leaderboard, 2026-08-30)
- Model card (HumanEval 48.8 — the contrast) (vendor, 2026-08-30)
No native function-calling tokens or template — tool use rides on prompt-following, which works surprisingly well but breaks more than trained-in tool calling.
Give exact JSON schemas with examples in the system prompt — community benchmarks show it follows them decently.
For heavy MCP/agent work, pick a model with trained-in tool calling.
Evidence · 2 sources · community-consensus
- Discussion: Gemma 3 function-calling support (other, 2026-08-30)
- Gemma 3 prompt-based function-calling benchmarks (github, 2026-08-30)
Family-wide tendency to hallucinate names and specific factual details; HHEM (7.4%) is oddly worse than the 4B.
Ground factual work; treat unsourced names/dates with suspicion.
Evidence · 1 source · anecdotal
- Gemma-family factual-name hallucination reports (other, 2026-08-30)