{
  "schema_version": "1.0",
  "id": "T-6a7bfe6b5df3",
  "url": "https://gpuatlas.top/articles/T-6a7bfe6b5df3/",
  "title": "Gemma 4 26B-A4B 本地跑起来，显存、内存和硬盘分别要多少？",
  "summary": "Gemma 4 26B-A4B整机资源应按总权重和专家部署方式规划，分别记录磁盘、主存与请求峰值。",
  "language": "zh-Hans",
  "category": {
    "id": "c-14",
    "name": "模型运行需求",
    "url": "https://gpuatlas.top/categories/c-14/"
  },
  "topics": [
    {
      "id": "model-bf587b53c1",
      "name": "Gemma 4",
      "kind": "model",
      "description": "这里整理已有 Gemma 4 相关文章的配置问题；实际使用前，需核对文章所指版本、来源与框架支持。",
      "url": "https://gpuatlas.top/topics/model-bf587b53c1/"
    }
  ],
  "body_text": "Gemma 4 26B-A4B本地部署，需要围绕总权重和专家放置方式算资源。约25.2B总参数、3.8B激活参数分别描述模型规模和一次计算涉及的部分，后者不能用来估算完整下载量。\n\n官方静态加载参考为BF16约57.7GB、SFP8约28.8GB、Q4_0约14.4GB。这些值未包含上下文与支持软件额外显存，也不是统一的磁盘文件大小。硬盘空间应按选定发布的清单计算，再加上转换中间文件和计划保留的版本。\n\n主存预算要跟设备映射一起写。专家都在GPU，与部分专家驻留CPU，得到的显存和主存需求不同。内存映射也需要观察实际驻留与换页；GPU占用变低，并不能证明整机资源更少或响应更快。\n\n启动成功后，用长材料、固定图片和预期并发检查请求峰值。先分别运行，再组合负载，避免把单项测试的剩余空间重复分配。若启用草稿模型，其权重与缓存也需加入预算。\n\n26B-A4B出现显存下降、整机却更慢的情况，应先检查专家是否转到CPU以及是否发生换页，不急着再换量化文件。若启用草稿模型后才超预算，把草稿权重和缓存也列入。将实际专家映射与失败阶段放在配置单旁，才能判断要补主存、调整放置，还是缩减请求。",
  "published_at": null,
  "modified_at": "2026-11-26T15:17:38.690397+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "id": "gemma4-card",
      "url": "https://raw.githubusercontent.com/google-gemma/docs/main/docs/models/gemma-4/model-card.md",
      "retrieved_at": "2026-11-25T11:31:21.126309+00:00"
    },
    {
      "id": "gemma4-official",
      "url": "https://raw.githubusercontent.com/google-gemma/docs/main/docs/models/gemma-4/index.md",
      "retrieved_at": "2026-11-25T11:31:21.126309+00:00"
    },
    {
      "id": "hf-download",
      "url": "https://raw.githubusercontent.com/huggingface/huggingface_hub/main/docs/source/en/guides/download.md",
      "retrieved_at": "2026-11-25T10:24:21.873697+00:00"
    },
    {
      "id": "llamacpp-server",
      "url": "https://raw.githubusercontent.com/ggml-org/llama.cpp/master/tools/server/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-6a7bfe6b5df3/",
    "json": "https://gpuatlas.top/data/articles/T-6a7bfe6b5df3.json",
    "markdown": "https://gpuatlas.top/data/articles/T-6a7bfe6b5df3.md"
  }
}
