[dist] XPU distributed backend selection (XCCL / oneCCL) is unverified — needs XPU hardware
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Domaine
- distributed-systems
Piste de recherche
Start with get_default_dist_backend() and tests/test_distributed_device_setup.py, which the issue identifies as the implementation and test entry points. The issue requires an exact-head, two-rank torchrun on Intel XPU hardware, checking device binding, all_reduce, DDP forward and backward, and end-of-epoch cache release. Done means the XPU backend selection and test are updated, with the PyTorch, oneAPI, and device versions recorded.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Context
#3771 binds distributed training to the active accelerator instead of assuming CUDA. Writing that change surfaced a second, independent defect on XPU.
get_default_dist_backend() returns "nccl" for every non-NPU device. Since get_accelerator_device_type() does select XPU, an XPU run reaches init_process_group(backend="nccl") and cannot start at all on a build without NCCL — the same class of failure #3771 fixes for Ascend NPU.
Why this is not in #3771
The correct backend for XPU is XCCL (oneCCL; the legacy name on older builds is "ccl"), so the fix is small:
_ACCELERATOR_DIST_BACKENDS = {"npu": ("hccl",), "xpu": ("xccl", "ccl")}
but it advertises a runtime path that nobody here can exercise. We have no Intel XPU hardware in our environment, so under the repository's hardware-validation requirement the XPU arm was the only path #3771 changed without real-device evidence. #3771 therefore keeps the historical "nccl" value for XPU — i.e. exactly the pre-PR behaviour, unchanged — and the selection is tracked here for whoever has the hardware.
What a fix needs
- Add the XPU entry above (keep
"ccl"only for builds that positively confirm it throughtorch.distributed.is_ccl_available()). - Run an exact-head 2-rank
torchrunon Intel XPU with XCCL, showing per-rankxpu:0/xpu:1binding, anall_reduce, DDP forward/backward, the end-of-epoch cache release, plus the exact PyTorch / oneAPI / device versions. - Update
tests/test_distributed_device_setup.pyaccordingly — the current test pins the narrowed behaviour (XPU stays"nccl"even when a build reportsis_xccl_available()), so it needs to be flipped.
Related
- #3771 — the Ascend NPU path, verified end to end on 910B2 hardware.
- Failure mode this follows up on:
init_process_group(backend="nccl")->RuntimeError: Distributed package doesn't have NCCL built in.
- Langage dominant
- Python
- Étoiles
- 20.8k
- Forks
- 2.1k
- Merge moyen
- 1 j 46 min
- PR mergées (30 j)
- 36
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de modelscope/FunASR
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
modelscope/FunASR#3780 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
modelscope/FunASR#3762 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: blank lines in wav.scp / jsonl file lists crash prepare_data_iterator (IndexError / JSONDecodeError)Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverteneeds feedback
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
modelscope/FunASR#3757 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
modelscope/FunASR#3730 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
modelscope/FunASR#3704 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de modelscope/FunASR
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 66/100
AlexsLemonade/scpca-docs#518 ·
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
rocketride-org/rocketride-server#2705 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Metabuilder-Labs/tokenjam#786 ·
Les mainteneurs répondent en général sous 1 jour
-
prototype(verifier_token): map disallowed warning to contraindicated before composite precedence checkPeut-être pris @drk-ram l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
agentrust-io/trace-spec#582 ·
Les mainteneurs répondent en général sous 1 jour
-
area:cli priority:low refactor size:small
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
RonaldHensbergen/composable-data-stack#906 ·
Les mainteneurs répondent en général sous 1 jour