[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
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- distributed-systems, machine-learning
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 43.3k
- Fork
- 5.1k
- Merge medio
- 5g 10h
- PR unite (30g)
- 85
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di deepspeedai/DeepSpeed
-
[Bug] DeepSpeedEngine.step leaves _running_engine_step=True permanently on exception, corrupting is_gradient_accumulation_boundary()Forse già presa @its-amann l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
deepspeedai/DeepSpeed#9190 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] PipelineEngine._exec_reduce_grads and _exec_optimizer_step leave _force_grad_boundary=True permanently after any exceptionForse già presa @bantianyue l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepspeedai/DeepSpeed#9183 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
deepspeedai/DeepSpeed#9019 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
fp16 `hysteresis: 0` (or negative) makes DynamicLossScaler never lower the loss scale, so every overflowing step is skipped foreverForse già presa @damienen l’ha presa 26 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
deepspeedai/DeepSpeed#8982 ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG] OneCycle applies the minimum momentum to the first Adam updateForse già presa @ai-yang l’ha presa 30 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepspeedai/DeepSpeed#8951 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di deepspeedai/DeepSpeed
Issue simili
-
area/auth comp/agent P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NousResearch/hermes-agent#161417 ·
I maintainer di solito rispondono entro 1 giorno
-
accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
future-agi/future-agi#4737 ·
I maintainer di solito rispondono entro 1 giorno
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backendForse già presa @patelshivani2283-lab l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
fedora-infra/anitya#2278 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Dao-AILab/flash-attention#3251 ·
I maintainer di solito rispondono entro 2 giorni