{
  "schema_version": "1.0",
  "id": "T-5ecf6e53c221",
  "url": "https://gpuatlas.top/articles/T-5ecf6e53c221/",
  "title": "多机训练时，为什么有一台掉线全部都停了？",
  "summary": "多机一节点失败会使其他rank等待同步，根因需看最早日志，恢复取决于完整检查点和框架条件。",
  "language": "zh-Hans",
  "category": {
    "id": "c-04",
    "name": "多卡与多机",
    "url": "https://gpuatlas.top/categories/c-04/"
  },
  "topics": [
    {
      "id": "task-796e01d5af",
      "name": "训练",
      "kind": "task",
      "description": "模型训练时的资源占用与推理不同。查看优化器、激活值、并行策略和中断恢复相关问题。",
      "url": "https://gpuatlas.top/topics/task-796e01d5af/"
    }
  ],
  "body_text": "多机训练一台掉线全组停止，常因训练步骤依赖各rank共同完成。某进程退出后，其他进程可能继续等同步、超时或被启动器终止，不能从最后通信错误就认定网络首先出问题。\n\n对齐所有节点时间，找最早异常。显存、数据读取、磁盘、权限、节点重启都可能先失败，记录故障前步骤和系统状态，后续NCCL超时可能只是连带结果。\n\n恢复需要完整且兼容的检查点，权重之外通常还要优化器、调度、步数、随机和数据状态。目录存在不保证写入完成，分片和共享路径应核对，异步保存也要确认落盘。\n\n弹性和容错由框架支持，不是任何任务少一台都会自动继续。即使允许重组，数据分配、有效批量和训练轨迹也需重新核对，不能承诺与故障前完全一致。\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": "torch-distributed",
      "url": "https://docs.pytorch.org/docs/2.15/distributed.html",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    },
    {
      "id": "torch-distributed-checkpoint",
      "url": "https://docs.pytorch.org/docs/2.15/distributed.checkpoint.html",
      "retrieved_at": "2026-11-25T16:00:47.832201+00:00"
    },
    {
      "id": "transformers-training-memory",
      "url": "https://raw.githubusercontent.com/huggingface/transformers/main/docs/source/en/model_memory_anatomy.md",
      "retrieved_at": "2026-11-25T10:16:15.738480+00:00"
    }
  ],
  "revision_note": "完善阅读结构；非硬件实测。",
  "representations": {
    "html": "https://gpuatlas.top/articles/T-5ecf6e53c221/",
    "json": "https://gpuatlas.top/data/articles/T-5ecf6e53c221.json",
    "markdown": "https://gpuatlas.top/data/articles/T-5ecf6e53c221.md"
  }
}
