GRPOTrainer rollout time limited to 10min

Abierto
#10,065 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@hjh0119 ya está trabajando en esto.

Desde el 8/9/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
Python
Estrellas
16.2k
Forks
1.8k
Merge medio
1 d 14 h
PR fusionados (30 d)
68

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de modelscope/ms-swift

Todos los issues de modelscope/ms-swift

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.