{
  "schema_version": "1.0",
  "id": "T-7b3e4f57c750",
  "url": "https://gpuatlas.top/articles/T-7b3e4f57c750/",
  "title": "Gemma 3 12B 本地跑起来，显存、内存和硬盘分别要多少？",
  "summary": "Gemma 3 12B资源需求应区分理想权重数据、完整下载与真实图文请求，不直接套普通12B配置表。",
  "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 12B的资源规划可以先算权重，再加上部署与任务成本。按12B名义参数，16bit原始数据约24GB、理想4bit约6GB，实际参数、视觉组件和其他开销仍需核对，不能把这两个数字直接写成整机要求。\n\n硬盘按完整发布清单准备，配置、分词器和处理器都需匹配。若要转换格式，原文件、中间结果和最终量化文件可能同时存在；保留多个版本时分别计入，不只看一个成品文件。\n\n主存跟加载及卸载方式有关。GPU方案也可能在启动时暂存数据，CPU混合则会持续使用主存。观察启动和运行峰值、换页与完整等待，能避免只看稳定生成阶段漏掉压力。\n\n显存除权重外，还需要图像处理、请求状态和缓冲。官方实现48层混合注意力，头维256，实际缓存应按后端核对，不能用普通12B表或简单头维推导代替。\n\n准备做图片附文档问答时，先分别跑通短文本与固定图片，再组合成日常请求。若组合时显存不足，记录峰值出现在图像处理还是后续生成；若启动就失败，则检查加载主存。这样可以决定调整请求还是卸载，不会把约6GB的理想低位权重误当成12B图文任务的全部需求。",
  "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": "vllm-memory",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/configuration/conserving_memory.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-7b3e4f57c750/",
    "json": "https://gpuatlas.top/data/articles/T-7b3e4f57c750.json",
    "markdown": "https://gpuatlas.top/data/articles/T-7b3e4f57c750.md"
  }
}
