GRPOTrainer rollout time limited to 10min
メンテナーはふだん 1 日以内に返信
@hjh0119 がすでに取り組んでいます。
2026年9月8日 から。
評価
この issue はまだ評価されていません。
説明
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelscope/ms-swift のほかの issue
-
get_multimodal_target_regex(..., exclude_router=True) does not exclude shared_expert_gate対応中かも @KonnyakuMatcha が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelscope/ms-swift#10696 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] GRPO REAL loss crashes with beta>0 and kl_in_reward=True (NoneType * Tensor)対応中かも @newcloud123 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
modelscope/ms-swift#10690 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] GRPO REAL loss divides by all groups instead of valid groups, silently scaling gradients対応中かも @newcloud123 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelscope/ms-swift#10688 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 半日 初心者へのやさしさ 62/100
modelscope/ms-swift#10621 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] `get_seed` consumes a draw from the shared RandomState even when decision augmentation is disabled, changing the train/val split and dataset shuffle対応中かも @ryznren が 38 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelscope/ms-swift#10466 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
modelscope/ms-swift の issue をすべて見る
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores対応中かも @AshutoshSingh840 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
UKGovernmentBEIS/control-arena#992 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
mvalentsev/awesome-free-ai-coding#70 ·
メンテナーはふだん 1 日以内に返信