{
  "schema_version": "1.0",
  "id": "T-b649c5b6e90e",
  "url": "https://gpuatlas.top/articles/T-b649c5b6e90e/",
  "title": "想跑 70B 模型，显存预算应该怎么算？",
  "summary": "70B推理先算精确权重数量级，再加状态和每卡分配，名义35GB低位数据不等于完整运行需求。",
  "language": "zh-Hans",
  "category": {
    "id": "c-01",
    "name": "显存与选卡",
    "url": "https://gpuatlas.top/categories/c-01/"
  },
  "topics": [],
  "body_text": "70B模型显存预算，先限定推理并选精确发布。假设恰有700亿参数，16bit原始权重140GB、8bit70GB、理想4bit35GB，十进制算术仅覆盖数据，实际量化和参数需另核。\n\n比例尺、未量化部分、其他组件、缓存、缓冲和预留都在外面。相同4bit文件也可能平均位宽不同，下载到本地不代表同大小显存可以完整运行，不能直接用标称容量相减。\n\n写清材料、模板、历史与答案总token，以及活动请求。短聊天和长文状态差很大，权重共享不免除多人开销，模型最大长度也不是设备默认范围。\n\n70B上多卡时，先看每张卡的实际余量和组件分配。总容量刚刚超过理想权重，并不能保证每张卡都装得下；CPU混合则要把主存和搬运等待一起算进来，不能只展示较低的显存占用。\n\n准备一段短对话确认加载路径，再用真正需要处理的最长材料检查完整回答。若能加载却在长文阶段失败，就回到缓存预算；若能答完但等待不合适，就比较卸载和通信代价。保存这两组请求，能比“70B需要几张卡”这样的单一数字更准确地描述你的配置。",
  "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": "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"
    },
    {
      "id": "llamacpp-multigpu",
      "url": "https://raw.githubusercontent.com/ggml-org/llama.cpp/master/docs/multi-gpu.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+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-b649c5b6e90e/",
    "json": "https://gpuatlas.top/data/articles/T-b649c5b6e90e.json",
    "markdown": "https://gpuatlas.top/data/articles/T-b649c5b6e90e.md"
  }
}
