[Bug] TorchBackend.all_gather_base references nonexistent self.has_allgather_base and all_gather_coalesced only waits reqs[-1] / crashes on Gloo & non-member ranks
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
Línea de trabajo
Start with deepspeed/comm/torch.py, focusing on TorchBackend.all_gather_base() and TorchBackend.all_gather_coalesced(). Run the provided three-rank Gloo reproduction to confirm the missing-attribute and non-member-rank failures. Done means all_gather_base() uses a valid capability check, and all_gather_coalesced() safely handles unsupported groups or backends and waits for every relevant request.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
In deepspeed/comm/torch.py:468,481-503:
TorchBackend.all_gather_base()(line 468): Checksif self.has_allgather_base:, an attribute never initialized inTorchBackend.__init__, unconditionally raisingAttributeError.TorchBackend.all_gather_coalesced()(lines 490-502):- Calls
get_coalescing_managerunconditionally even whengroupdoes not include the current rank (NON_GROUP_MEMBER->AttributeError: 'int' object has no attribute '_get_backend') or on Gloo (_coalescing_managerunsupported). - Waits/returns only
reqs[-1]instead of waiting on all handles inreqs(or the coalescing manager work handle).
- Calls
Affected Location
- Repository:
deepspeedai/DeepSpeed(master,deepspeed/comm/torch.py:468,481-503)
Minimal Standalone Reproduction
3-rank Gloo group with subgroup pg01 = dist.new_group([0, 1]):
all_gather_baseraisesAttributeError: ... has no attribute 'has_allgather_base'on all ranks.all_gather_coalesced(..., group=pg01)raisesAttributeErroron non-member rank 2 ('int' object has no attribute '_get_backend').
Suggested Fix
- Replace
self.has_allgather_basewithself.has_all_gather_into_tensor()(or checkhasattr(torch.distributed.distributed_c10d, "_all_gather_base")). - Guard
all_gather_coalescedforNON_GROUP_MEMBERand backend support, and wait on all handles inreqswhenasync_op=False.
- 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