{
  "schema_version": "1.0",
  "id": "T-90e7f8d4cc98",
  "url": "https://gpuatlas.top/articles/T-90e7f8d4cc98/",
  "title": "vLLM 双卡启动卡住，怎么区分 NCCL 和模型加载问题？",
  "summary": "vLLM双卡卡住先对齐各rank阶段和最早错误，再用本地权重与最小通信测试隔离加载和NCCL。",
  "language": "zh-Hans",
  "category": {
    "id": "c-09",
    "name": "框架配置与故障",
    "url": "https://gpuatlas.top/categories/c-09/"
  },
  "topics": [
    {
      "id": "framework-87185e8f7f",
      "name": "vLLM",
      "kind": "framework",
      "description": "准备提供模型 API，或遇到张量并行和加载报错？从服务配置、量化支持与运行环境逐项检查。",
      "url": "https://gpuatlas.top/topics/framework-87185e8f7f/"
    }
  ],
  "body_text": "vLLM双卡启动卡住，先看各rank停在什么阶段，不因最后出现NCCL超时就直接认定网络。某个进程下载、读盘或处理权重失败，其他进程也可能等待，通信错误只是最后表现。\n\n先准备固定revision的完整本地文件，排除下载变量。对齐各rank的时间和进度，保留第一条错误，不能只截主进程最后几行。若停在读取或加载，观察存储、主存、换页和重复读取。\n\n进入通信阶段后，再核对设备绑定、进程数、拓扑和容器环境，用文档中的最小通信测试建立对照。底层测试不需要每次加载大模型，能减少等待，也避免把模型峰值混进连接问题。\n\n必要时临时启用对应日志，例如按版本说明设置NCCL_DEBUG，调试结束后恢复再比较性能。最小通信通过后，先用简单受支持模型，再回到原权重、长度和活动负载，前置通过不代表整个模型后端正确。\n\n回到原模型后，先检查最早停住的阶段是否真的向前推进，再确认原请求能完整结束，并记录有效改动和设备映射。加载慢就处理存储与主存，rank先失败就追第一条错误，真正通信阻塞才继续查通信条件。延长超时只是容许等得更久，不能代替这几类根因的区分。",
  "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-troubleshooting",
      "url": "https://raw.githubusercontent.com/vllm-project/vllm/main/docs/usage/troubleshooting.md",
      "retrieved_at": "2026-11-25T09:52:45.997121+00:00"
    },
    {
      "id": "torch-distributed",
      "url": "https://docs.pytorch.org/docs/2.15/distributed.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    },
    {
      "id": "nccl-troubleshooting",
      "url": "https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    },
    {
      "id": "hf-download",
      "url": "https://raw.githubusercontent.com/huggingface/huggingface_hub/main/docs/source/en/guides/download.md",
      "retrieved_at": "2026-11-25T10:24:21.873697+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-90e7f8d4cc98/",
    "json": "https://gpuatlas.top/data/articles/T-90e7f8d4cc98.json",
    "markdown": "https://gpuatlas.top/data/articles/T-90e7f8d4cc98.md"
  }
}
