{
  "schema_version": "1.0",
  "id": "T-0f09234ee3ad",
  "url": "https://gpuatlas.top/articles/T-0f09234ee3ad/",
  "title": "RTX 3060 12G 跑 Gemma 4 12B，量化和上下文该怎么选？",
  "summary": "RTX 3060 12G运行Gemma 4 12B可先研究兼容Q4方案，SFP8静态参考与多模态成本需分清。",
  "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-bf587b53c1",
      "name": "Gemma 4",
      "kind": "model",
      "description": "这里整理已有 Gemma 4 相关文章的配置问题；实际使用前，需核对文章所指版本、来源与框架支持。",
      "url": "https://gpuatlas.top/topics/model-bf587b53c1/"
    },
    {
      "id": "task-dce84928dd",
      "name": "量化",
      "kind": "task",
      "description": "权重变小以后，速度和效果会怎样变化？这里收录量化格式选择、运行支持及显存不足时的取舍。",
      "url": "https://gpuatlas.top/topics/task-dce84928dd/"
    }
  ],
  "body_text": "RTX 3060 12G运行Gemma 4 12B Unified，先研究明确兼容的低位方案。官方SFP8静态加载参考约13.4GB，Q4_0约6.7GB，未包含上下文和支持软件额外显存，不能因8bit看起来接近容量就默认可用。\n\n这些静态值也不是所有工具通用的峰值。核对实际文件与当前可用显存，桌面、其他程序和框架预留都需考虑；量化格式与3060上的实际执行内核还要对应确认。\n\n模型约11.95B参数，没有独立视觉与音频编码器，但多模态仍有投影、输入处理和状态成本。不能套用Gemma 3组件预算或普通缓存公式，处理器、分词器与模板应配套。\n\n先单请求短文本和有限输出，再固定图片或音频分别验收内容与峰值，最后增加日常文字长度。组合输入应重新测试，模型256K能力不是这张卡的默认范围。\n\nQAT训练经历与低位成品要分开看，unquantized不能直接按4bit估算。若3060用于听取音频并回答问题，就用同一段录音核对识别内容、数字和回答是否完整，再记录等待；有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": "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": "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": "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": "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-0f09234ee3ad/",
    "json": "https://gpuatlas.top/data/articles/T-0f09234ee3ad.json",
    "markdown": "https://gpuatlas.top/data/articles/T-0f09234ee3ad.md"
  }
}
