{
  "schema_version": "1.0",
  "id": "T-3a51a156a4a6",
  "url": "https://gpuatlas.top/articles/T-3a51a156a4a6/",
  "title": "双 RTX 5090 开 vLLM 张量并行时报非法内存访问，怎么定位？",
  "summary": "双5090张量并行非法访问需定位各rank最早失败，以最小通信和模型对照区分历史警告与实际原因。",
  "language": "zh-Hans",
  "category": {
    "id": "c-20",
    "name": "真实用户问题线索",
    "url": "https://gpuatlas.top/categories/c-20/"
  },
  "topics": [
    {
      "id": "gpu-e5d6e3a500",
      "name": "RTX 5090",
      "kind": "gpu",
      "description": "32G 显存之外，还要核对框架与新硬件的兼容性。查找模型搭配、双卡并行及具体运行报错。",
      "url": "https://gpuatlas.top/topics/gpu-e5d6e3a500/"
    },
    {
      "id": "framework-87185e8f7f",
      "name": "vLLM",
      "kind": "framework",
      "description": "准备提供模型 API，或遇到张量并行和加载报错？从服务配置、量化支持与运行环境逐项检查。",
      "url": "https://gpuatlas.top/topics/framework-87185e8f7f/"
    }
  ],
  "body_text": "双RTX 5090用vLLM张量并行出现非法内存访问，先保存各rank最早错误，别把前面的警告直接当根因。CUDA错误可能异步呈现，最后退出的进程未必是最先出问题的进程。\n\n本地固定公开讨论来自2025年9月，涉及双5090、TP为2与Gemma视觉模型，先有P2P警告，后有非法访问。这是具体历史案例，不能证明当前所有双卡配置相同，也不能直接归因于缺少某种互联。\n\n固定权重、驱动、镜像或包版本与完整输入，比较容量允许的单卡和双卡最小任务。单卡正常、双卡失败只缩小到通信、并行后端或多模态初始化等范围，尚不是最终结论。\n\n必要时按官方说明临时使用CUDA_LAUNCH_BLOCKING=1定位异步内核，调试结束恢复，性能不按阻塞模式评估。再做最小通信与简单受支持模型对照，每次只改一个后端或版本。\n\n旧讨论中的猜测和自动回复只能提供排查线索，不能据此固定一套环境组合。找到有效变化后，仍要重跑最初触发非法访问的图文请求，再恢复目标活动负载，确认答案和完整等待都正常。双卡服务能重新启动，只说明初始化通过，尚不能证明原来的多模态执行路径已修好。",
  "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": "issue-1",
      "url": "https://discuss.vllm.ai/t/added-second-5090-and-turne-on-tensor-parallel-2/1629.json",
      "retrieved_at": "2026-11-25T10:51:53.600205+00:00"
    },
    {
      "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"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-3a51a156a4a6/",
    "json": "https://gpuatlas.top/data/articles/T-3a51a156a4a6.json",
    "markdown": "https://gpuatlas.top/data/articles/T-3a51a156a4a6.md"
  }
}
