{
  "schema_version": "1.0",
  "id": "T-3bf95103f921",
  "url": "https://gpuatlas.top/articles/T-3bf95103f921/",
  "title": "双卡跑模型为什么没有快一倍？",
  "summary": "双卡收益受通信、同步和目标负载影响，应分容量、单人响应与多人吞吐，不按卡数预设倍数。",
  "language": "zh-Hans",
  "category": {
    "id": "c-04",
    "name": "多卡与多机",
    "url": "https://gpuatlas.top/categories/c-04/"
  },
  "topics": [],
  "body_text": "双卡没有快一倍，是因为模型拆分不只分计算，还增加通信、同步和调度。新增开销、分配不均及较慢设备，都会改变整体时间，不能按两卡直接线性推收益。\n\n先明确要改善单人生成、长输入还是多人有效完成。某模式主要扩大可承载权重，未必让逐字生成同比变快；独立副本与切分一份模型也要分别测试。\n\nlayer按不同层放置，tensor分摊部分层内工作，具体通信与实现条件不同。用目标模型、文件、精度和互联验证，模式名称不能直接决定速度，最大长度和活动量也不能同时照搬。\n\n单卡装不下时，双卡相对单卡CPU混合的改善，和相对完整GPU单卡的比较不是同一基线。保存设备映射、主存及完整时间，不把放置差异全归显卡数量。\n\n单卡必须卸载到CPU、双卡能让更多权重驻留GPU时，这首先是放置和容量的改善；若原来单卡已经完整驻留，就另看通信是否抵消计算收益。用同题记录输入处理、首字、生成及完整时间，同时看每卡峰值和答案。第二张卡的价值由原先的容量或响应缺口是否补上决定。",
  "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": "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": "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-3bf95103f921/",
    "json": "https://gpuatlas.top/data/articles/T-3bf95103f921.json",
    "markdown": "https://gpuatlas.top/data/articles/T-3bf95103f921.md"
  }
}
