GRPOTrainer rollout time limited to 10min

Aperta
#10,065 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hjh0119 ci sta già lavorando.

Dal 8/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Python
Stelle
16.2k
Fork
1.8k
Merge medio
1g 14h
PR unite (30g)
68

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelscope/ms-swift

Tutte le issue di modelscope/ms-swift

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.