{
  "slug": "gemma-3-27b",
  "order": 6,
  "name": "Gemma 3 (27B)",
  "baseTitle": "Gemma 3 27B",
  "company": "Google",
  "country": "United States",
  "flag": "🇺🇸",
  "date": "2025-03-11",
  "decoderType": "Dense",
  "attention": "GQA with QK-Norm and 5:1 sliding-window/global attention",
  "layerMix": "52 sliding-window + 10 global",
  "scale": "27B parameters",
  "totalParams": 27000000000,
  "activeParams": 27000000000,
  "context": "128,000",
  "contextTokens": 128000,
  "license": "Gemma Terms of Use + Gemma Prohibited Use Policy",
  "kvCacheText": "496 KiB",
  "kvCacheKiB": 496,
  "kvCacheLevel": "Very high",
  "summary": "Gemma's flagship text stack leans on local attention more aggressively than Gemma 2.",
  "keyDetail": "Built around a 27B sweet spot with heavier local attention and a large 262k multilingual vocabulary.",
  "image": {
    "full": "https://sebastianraschka.com/llm-architecture-gallery/images/architectures/gemma-3-27b.webp",
    "thumb": "https://sebastianraschka.com/llm-architecture-gallery/images/architectures/thumbnails/gemma-3-27b.webp",
    "alt": "Figure 16: Gemma 3 27B",
    "width": 909,
    "height": 960
  },
  "articleUrl": "https://magazine.sebastianraschka.com/p/the-big-llm-architecture-comparison#%C2%A74-mistral-small-31",
  "links": [
    {
      "label": "View in article",
      "href": "https://magazine.sebastianraschka.com/p/the-big-llm-architecture-comparison#%C2%A74-mistral-small-31",
      "title": null
    },
    {
      "label": "From scratch",
      "href": "https://github.com/rasbt/LLMs-from-scratch/tree/main/ch05/12_gemma3",
      "title": null
    },
    {
      "label": "config.json",
      "href": "https://huggingface.co/google/gemma-3-27b-it/blob/main/config.json",
      "title": "google/gemma-3-27b-it"
    },
    {
      "label": "License",
      "href": "https://ai.google.dev/gemma/prohibited_use_policy",
      "title": null
    },
    {
      "label": "Tech report",
      "href": "https://arxiv.org/pdf/2503.19786",
      "title": null
    }
  ],
  "concepts": [
    {
      "slug": "qk-norm",
      "label": "QK-Norm",
      "name": "QK-Norm",
      "url": "https://llm-atlas-7or.pages.dev/concepts/qk-norm/"
    },
    {
      "slug": "gqa",
      "label": "GQA",
      "name": "Grouped-Query Attention",
      "url": "https://llm-atlas-7or.pages.dev/concepts/gqa/"
    },
    {
      "slug": "swa",
      "label": "SWA",
      "name": "Sliding Window Attention",
      "url": "https://llm-atlas-7or.pages.dev/concepts/swa/"
    }
  ],
  "aai": {
    "v4": {
      "label": "AA Intelligence Index v4.3.2",
      "total": 4.9,
      "profile": {
        "General": 6.9,
        "Scientific": 2.2,
        "Coding": 11.6,
        "Agents": 0
      },
      "url": "https://artificialanalysis.ai/models/gemma-3-27b"
    }
  },
  "sourceUrl": "https://sebastianraschka.com/llm-architecture-gallery/#card-gemma-3-27b",
  "family": "dense",
  "url": "https://llm-atlas-7or.pages.dev/models/gemma-3-27b/",
  "markdownUrl": "https://llm-atlas-7or.pages.dev/models/gemma-3-27b.md"
}