{
  "schema_version": "1.0",
  "id": "T-8c17bf8b5505",
  "url": "https://gpuatlas.top/articles/T-8c17bf8b5505/",
  "title": "Gemma 3 27B 本地跑起来，显存、内存和硬盘分别要多少？",
  "summary": "Gemma 3 27B先用位宽算术理解权重规模，再按完整文件、加载主存和图文运行峰值分别预算。",
  "language": "zh-Hans",
  "category": {
    "id": "c-14",
    "name": "模型运行需求",
    "url": "https://gpuatlas.top/categories/c-14/"
  },
  "topics": [
    {
      "id": "model-6bfe1186af",
      "name": "Gemma 3",
      "kind": "model",
      "description": "按 Gemma 3 的具体模型大小查显卡搭配，分清权重占用、上下文开销和额外运行空间。",
      "url": "https://gpuatlas.top/topics/model-6bfe1186af/"
    }
  ],
  "body_text": "Gemma 3 27B本地运行，先根据精度筛选方案，再分别核算三类资源。按27B名义参数，16bit原始权重数据约54GB、8bit约27GB、理想4bit约13.5GB。这只是参数乘位宽的算术，实际参数、视觉组件和元数据需要继续核对。\n\n硬盘以完整发布清单为准。配置、处理器和分词器也要保存，转换时原版与结果可能同时存在，多个精度版本会重复占空间。不能只根据最终量化文件大小估算整个下载与转换过程。\n\n主存要覆盖实际加载方式。GPU推理也可能有CPU暂存峰值；CPU卸载与内存映射方案则要记录驻留、换页和完整等待。显存下降以后，主存或传输可能成为新的瓶颈。\n\n运行显存还需要请求状态、图像处理和工作缓冲。官方27B实现62层局部与全局注意力混合，后端缓存策略会改变长文占用，不能照普通全注意力27B模型直接套表。\n\n27B做图片与长材料联合问答，纯图片成功只是起点。合并后失败，先定位输入处理或请求状态；采用CPU卸载时，主存和等待也要一并判断，多卡则逐卡看分配。理想4bit权重约13.5GB不能覆盖这些条件，资源方案应以联合请求能否完成为准。",
  "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": "gemma3-official",
      "url": "https://raw.githubusercontent.com/google-gemma/docs/main/docs/models/gemma-3/index.md",
      "retrieved_at": "2026-11-25T11:28:43.769677+00:00"
    },
    {
      "id": "gemma3-config-code",
      "url": "https://raw.githubusercontent.com/google/gemma_pytorch/main/gemma/config.py",
      "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-8c17bf8b5505/",
    "json": "https://gpuatlas.top/data/articles/T-8c17bf8b5505.json",
    "markdown": "https://gpuatlas.top/data/articles/T-8c17bf8b5505.md"
  }
}
