GRPOTrainer rollout time limited to 10min

オープン
#10,065 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hjh0119 がすでに取り組んでいます。

2026年9月8日 から。

評価

この issue はまだ評価されていません。

説明

bug
Checklist / 检查清单
  • I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述

While using GRPOTrainer, the rollout time appears to be limited to 10 minutes. Once this limit is reached, the trainer raises an NCCL watchdog timeout error.

This seems to be related to the distributed object collectives used during server-side rollout. I could not find any suggested environment variable that reliably extends this timeout.

The solution is to create a dedicated Gloo process group for vLLM server-side rollout and configure its timeout with self.args.ddp_timeout. The object collectives used during rollout, specifically gather_object and broadcast_object_list, are then routed through this Gloo group instead of the default NCCL process group.

This keeps NCCL unchanged for model training, while using Gloo only for rollout synchronization and Python-object communication. As a result, long rollouts are no longer constrained by the NCCL watchdog timeout and can instead follow the configured ddp_timeout.

How to Reproduce / 如何复现

torch: 2.9.1
cuda: 12.9
ms-swift: 4.5.0dev
deepspeed: 0.19.2
accelerate: 0.13.0

MS-Swift, any long context multi-turn rollout takes more than 10 min.

Additional Information / 补充信息

No response

主要言語
Python
スター
16.2k
フォーク
1.8k
平均マージ
1日 14時間
マージ済み PR(30日)
68

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelscope/ms-swift のほかの issue

modelscope/ms-swift の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。