{
  "schema_version": "1.0",
  "id": "T-f4dc75f83adc",
  "url": "https://gpuatlas.top/articles/T-f4dc75f83adc/",
  "title": "RTX 4090 24G 跑 Gemma 3 12B，量化和上下文该怎么选？",
  "summary": "RTX 4090 24G运行Gemma 3 12B应比较高精度余量与兼容量化，并用票据等真实图文任务验收。",
  "language": "zh-Hans",
  "category": {
    "id": "c-10",
    "name": "显卡与模型组合",
    "url": "https://gpuatlas.top/categories/c-10/"
  },
  "topics": [
    {
      "id": "gpu-fc423f40d1",
      "name": "RTX 4090",
      "kind": "gpu",
      "description": "24G 显存跑大模型，需要在精度与上下文之间做选择。这里同时整理常见模型搭配和硬件比较。",
      "url": "https://gpuatlas.top/topics/gpu-fc423f40d1/"
    },
    {
      "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 4090 24G运行Gemma 3 12B，先按任务选择精度。按12B名义参数，16bit原始权重约24GB，即约22.35GiB，视觉、元数据与运行状态未包含，高精度完整流程并不宽松。\n\n理想8bit约12GB、4bit约6GB，为其他部分提供候选空间，但实际文件与执行路径另核。量化方法、格式和设备内核要对应，不能把更低位直接等同更快。\n\n模型局部滑窗与全局注意力混合，缓存取决于实现，不能照普通全注意力12B表，也不能从滑窗推任意使用128K。先短文本比较精度，再固定文件增加日常长度，分别观察输入与生成峰值。\n\n例如票据整理，准备内容已知的图片，逐项核对日期、项目与金额。JSON格式正确和数值识别正确是两件事，需分别通过。随后加入较长文字说明，检查图像证据和文字约束是否都保留。\n\n保存处理器的缩放、裁切设置和实际输入，识别变化未必来自权重位宽。资源记录从启动驻留、图像处理、预填充一直到答案结束，只看稳定生成阶段可能漏掉真正峰值。\n\n交付票据JSON前，把日期、项目与金额逐项对回原图，格式通过并不能补救金额识别错误。再看加上文字约束后是否仍正确，以及完整等待能否满足整理流程。多人或附加组件加入时重跑这些票据，保留出错原图与精确文件，让量化选择围绕交付内容展开。",
  "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": "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-f4dc75f83adc/",
    "json": "https://gpuatlas.top/data/articles/T-f4dc75f83adc.json",
    "markdown": "https://gpuatlas.top/data/articles/T-f4dc75f83adc.md"
  }
}
