{
  "schema_version": "1.0",
  "id": "T-7f240587e9a7",
  "url": "https://gpuatlas.top/articles/T-7f240587e9a7/",
  "title": "RTX 4090 24G 跑 DeepSeek R1 蒸馏版 7B，量化和上下文该怎么选？",
  "summary": "RTX 4090 24G运行R1蒸馏7B可先建较高精度基线，再用参考题比较量化和完整推理长度。",
  "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-b64bc5faa8",
      "name": "DeepSeek R1",
      "kind": "model",
      "description": "完整版与蒸馏版的硬件需求不能混算。分别查看权重预算、多卡部署、量化运行及微调相关问题。",
      "url": "https://gpuatlas.top/topics/model-b64bc5faa8/"
    },
    {
      "id": "task-dce84928dd",
      "name": "量化",
      "kind": "task",
      "description": "权重变小以后，速度和效果会怎样变化？这里收录量化格式选择、运行支持及显存不足时的取舍。",
      "url": "https://gpuatlas.top/topics/task-dce84928dd/"
    }
  ],
  "body_text": "RTX 4090 24G运行DeepSeek-R1-Distill-Qwen-7B，先按任务建立较高精度基线，再决定是否量化。它不同于完整R1和0528-Qwen3-8B，具体文件、模板与采样应按该发布保存。\n\n按7B名义参数，16bit原始数据约14GB、理想4bit约3.5GB，实际参数、元数据和缓冲另核。常规单序列16bit KV在8K约0.4375GiB、32K约1.75GiB、128K约7GiB，输入、历史、思考与答案共同占长度。\n\n准备算术、带条件逻辑与短代码推理三类题，保存参考答案和判定方法。固定输出预算比较精度，再固定文件增加任务复杂度，检查最终结论、重复和截断，不按思考篇幅打分。\n\n遇到截断时，可在其他条件不变下增加预算，观察是否完成。若仍反复重复或偏题，应检查提示与采样，不能只持续扩大长度。资源调整改变的是可生成范围，不自动证明推理能力改善。\n\n多次采样保存每次结果，记录正确次数及完整耗时范围，避免一次成功掩盖随机性。分别记录输入处理、首字、生成总量与峰值，未完成结果不能算正常提速。\n\n算术、条件逻辑和短代码推理的结果可分别比较：量化后省了多少资源，是否有某类题更容易重复或答错，完整等待是否合适。接入服务后再加入实际活动请求与同卡组件。选择依据应是这些日常题的完成情况，而不是把模型卡成绩当作4090上的部署成绩。",
  "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": "r1-distill-7b",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B/raw/main/README.md",
      "retrieved_at": "2026-11-25T11:18:40.540160+00:00"
    },
    {
      "id": "r1-distill-7b-config",
      "url": "https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B/resolve/main/config.json",
      "retrieved_at": "2026-11-25T11:18:40.540160+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-7f240587e9a7/",
    "json": "https://gpuatlas.top/data/articles/T-7f240587e9a7.json",
    "markdown": "https://gpuatlas.top/data/articles/T-7f240587e9a7.md"
  }
}
