{
  "schema_version": "1.0",
  "id": "T-3ee4ffdef298",
  "url": "https://gpuatlas.top/articles/T-3ee4ffdef298/",
  "title": "RTX 3060 12G 跑 Gemma 3 12B，量化和上下文该怎么选？",
  "summary": "RTX 3060 12G运行Gemma 3 12B先选兼容低位，48层混合结构和视觉负载需分别核对。",
  "language": "zh-Hans",
  "category": {
    "id": "c-10",
    "name": "显卡与模型组合",
    "url": "https://gpuatlas.top/categories/c-10/"
  },
  "topics": [
    {
      "id": "gpu-7a5ed6cb06",
      "name": "RTX 3060",
      "kind": "gpu",
      "description": "已有 RTX 3060 12G，先用对应模型的量化和上下文配置判断可行范围，再考虑是否需要升级。",
      "url": "https://gpuatlas.top/topics/gpu-7a5ed6cb06/"
    },
    {
      "id": "model-6bfe1186af",
      "name": "Gemma 3",
      "kind": "model",
      "description": "按 Gemma 3 的具体模型大小查显卡搭配，分清权重占用、上下文开销和额外运行空间。",
      "url": "https://gpuatlas.top/topics/model-6bfe1186af/"
    },
    {
      "id": "task-dce84928dd",
      "name": "量化",
      "kind": "task",
      "description": "权重变小以后，速度和效果会怎样变化？这里收录量化格式选择、运行支持及显存不足时的取舍。",
      "url": "https://gpuatlas.top/topics/task-dce84928dd/"
    }
  ],
  "body_text": "RTX 3060 12G运行Gemma 3 12B，先选择工具支持的低位文件。按12B名义参数，8bit原始数据约12GB、理想4bit约6GB，实际参数、视觉、元数据和执行开销另计，不能因8bit与12G数字接近就认定合适。\n\n官方实现48层局部滑窗与全局注意力混合，KV头维为256。不能用隐藏维除以查询头数替代明确配置，也不能把所有层按完整历史估算，实际缓存预算还取决于后端。\n\n先短文本、单请求和有限输出，分别记录加载、输入处理与生成峰值，确认真实驻留。逐档增加日常材料，模板、历史和答案共同统计，不直接采用128K模型上限。\n\n图片另建固定样本，保留问题与处理设置，检查文字、数字和目标细节。纯文本通过不代表图像路径可用，图像预处理也可能改变质量，不能全部归因于量化。\n\n图片中的数字读错后，先对照保存的缩放或裁切设置，确认细节是否还在，再比较量化精度；文字答案截断则另查输出与容量。3060上这两类失败不能混成“模型装不下”。涉及CPU时同时看主存和完整等待，最终选择能把日常图文任务答全的文件与长度。",
  "published_at": null,
  "modified_at": "2026-11-26T15:00:32.276655+00:00",
  "evidence": {
    "type": "documentation_and_conditional_estimates",
    "hardware_tested": false,
    "note": "资料解释与条件估算，非硬件实测。"
  },
  "sources": [
    {
      "id": "nvidia-geforce-specs",
      "url": "https://www.nvidia.com/en-us/geforce/graphics-cards/compare/",
      "retrieved_at": "2026-11-25T10:34:57.629275+00:00"
    },
    {
      "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": "vllm-quantization",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/features/quantization/README.md",
      "retrieved_at": "2026-11-25T10:11:32.915597+00:00"
    }
  ],
  "revision_note": "更新使用说明与操作示例；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-3ee4ffdef298/",
    "json": "https://gpuatlas.top/data/articles/T-3ee4ffdef298.json",
    "markdown": "https://gpuatlas.top/data/articles/T-3ee4ffdef298.md"
  }
}
