Clarify safe cross-rank aggregation for MoE forward timing breakdown
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
Línea de trabajo
Start by reading DeepSpeedEngine.print_forward_breakdown() and the TODO for cross-rank aggregation, then trace how MoE layers, pipeline stages, and expert-parallel groups are represented. First agree with maintainers on whether to support a limited synchronized topology or redesign collection around per-layer or per-group ownership. Done means implementing the agreed behavior with regression coverage, including multiprocess tests where applicable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
DeepSpeedEngine.print_forward_breakdown() reports forward, MoE gating, MoE execution, and all-to-all timing measurements. Currently, the method prints rank 0's local measurements rather than aggregating timing values across ranks.
The method contains an existing TODO to all-reduce and average these values for more accurate timing.
While investigating a possible implementation, I found that the main challenge is establishing safe collective participation and meaningful aggregation:
- The method is called only when the local engine has MoE layers, so ranks may not all enter it.
- Pipeline stages can contain different portions of the model, including stages without MoE layers.
- The engine stores expert-parallel groups in mappings rather than exposing one unambiguous reduction group for all aggregated timings.
- The method sums timing measurements across local MoE layers before reporting them, potentially combining layers associated with different expert groups.
An unconditional global reduction could therefore deadlock, while reducing across an incorrectly chosen expert group could produce misleading measurements.
Question for maintainers
What behavior should this enhancement target?
- Initially support a clearly defined topology with a common process group and synchronized participation, preserving existing behavior for unsupported configurations; or
- Redesign the timing collection to retain per-layer or per-process-group ownership so that aggregation remains meaningful across more complex parallel configurations.
I'm happy to implement the agreed approach and add regression coverage, including multiprocess tests where applicable.
Scope
This issue concerns the correctness and interpretation of MoE timing diagnostics. It does not propose changing model execution or training behavior.
- Lenguaje dominante
- Python
- Estrellas
- 43.4k
- Forks
- 5.1k
- Merge medio
- 5 d 10 h
- PR fusionados (30 d)
- 85
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de deepspeedai/DeepSpeed
-
[Bug] DeepSpeedEngine.step leaves _running_engine_step=True permanently on exception, corrupting is_gradient_accumulation_boundary()Posiblemente ocupada @its-amann la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
deepspeedai/DeepSpeed#9190 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[Bug] PipelineEngine._exec_reduce_grads and _exec_optimizer_step leave _force_grad_boundary=True permanently after any exceptionPosiblemente ocupada @bantianyue la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
deepspeedai/DeepSpeed#9183 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
deepspeedai/DeepSpeed#9019 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
fp16 `hysteresis: 0` (or negative) makes DynamicLossScaler never lower the loss scale, so every overflowing step is skipped foreverPosiblemente ocupada @damienen la tomó hace 26 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
deepspeedai/DeepSpeed#8982 ·
Los mantenedores suelen responder en 2 días
-
[BUG] OneCycle applies the minimum momentum to the first Adam updatePosiblemente ocupada @ai-yang la tomó hace 30 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
deepspeedai/DeepSpeed#8951 ·
Los mantenedores suelen responder en 2 días
Todos los issues de deepspeedai/DeepSpeed
Issues similares
-
area/auth comp/agent P3 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NousResearch/hermes-agent#161417 ·
Los mantenedores suelen responder en 1 día
-
Hourly-aggregate projection test depends on other tests' spansPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoaccepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
future-agi/future-agi#4737 ·
Los mantenedores suelen responder en 1 día
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backendPosiblemente ocupada @patelshivani2283-lab la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
fedora-infra/anitya#2278 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Dao-AILab/flash-attention#3251 ·
Los mantenedores suelen responder en 2 días