{
  "schema_version": "1.0",
  "id": "T-b921e9d5521a",
  "url": "https://gpuatlas.top/articles/T-b921e9d5521a/",
  "title": "RTX 4090 24G 跑 Qwen3 8B，量化和上下文该怎么选？",
  "summary": "RTX 4090 24G运行Qwen3 8B可先建高精度基线，再按材料、并发和同卡组件比较量化余量。",
  "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-3387ea7659",
      "name": "Qwen3",
      "kind": "model",
      "description": "从小模型到更大参数档位，按显卡搭配查看 Qwen3 的运行条件，并查找长文本微调与适配器验证问题。",
      "url": "https://gpuatlas.top/topics/model-3387ea7659/"
    },
    {
      "id": "task-dce84928dd",
      "name": "量化",
      "kind": "task",
      "description": "权重变小以后，速度和效果会怎样变化？这里收录量化格式选择、运行支持及显存不足时的取舍。",
      "url": "https://gpuatlas.top/topics/task-dce84928dd/"
    }
  ],
  "body_text": "RTX 4090 24G运行Qwen3 8B，短问答可先建立高精度基线，长材料或多请求再比较量化。模型实际约8.2B参数，16bit原始权重约16.4GB，实际文件、元数据和缓冲另核，不能直接用24减去文件大小安排全部缓存。\n\n配置36层、8个KV头、头维128，常规单序列16bit KV在16384 token约2.25GiB、32768约4.5GiB，分页与预留未计。权重精度和KV类型分别配置，多请求状态也要另加。\n\n固定模板、思考模式、采样和输出预算，先同输入比较精度，再固定文件逐档增加材料。分别记录输入处理、首字、生成和完整时间，位宽较低不保证当前负载更快。\n\n确认实际GPU驻留，CPU参与时加入主存及设备映射。若同卡运行语音、图像或嵌入模型，测试重叠阶段的联合峰值，不能沿用单独语言模型的余量。\n\n若主要是短问答，先看高精度基线能否满足质量与等待；若要读长材料，就用那份材料比较量化后的答案和可用长度，特别留意数字、代码与截断。4090的24G余量不必全部用满：选择日常任务足够的精度与缓存，并为同卡其他模型的重叠运行留出空间。",
  "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": "qwen3-8b",
      "url": "https://huggingface.co/Qwen/Qwen3-8B/raw/main/README.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "qwen3-8b-config",
      "url": "https://huggingface.co/Qwen/Qwen3-8B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T10:34:57.629275+00:00"
    },
    {
      "id": "peft-quantization",
      "url": "https://raw.githubusercontent.com/huggingface/peft/main/docs/source/developer_guides/quantization.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-b921e9d5521a/",
    "json": "https://gpuatlas.top/data/articles/T-b921e9d5521a.json",
    "markdown": "https://gpuatlas.top/data/articles/T-b921e9d5521a.md"
  }
}
