[XPU][Bugfix] Fix GroupCoordinator device_index (#47295)
Signed-off-by: Michal Ganczarenko <michal.ganczarenko@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
Michał Ganczarenko committed
Jul 20, 2026 at 09:25 UTC
37bf988c2f8de10165e279fff652e9d818556fe8
1 file changed
+4
-7
vllm/distributed/parallel_state.py
+4
-7
@@ -400,13 +400,10 @@ class GroupCoordinator:
400
self.rank = torch.distributed.get_rank()
401
self.local_rank = local_rank
402
self.device_index: int
403
- if _WORLD is not None:
404
- self.device_index = _WORLD.device_index
405
- else:
406
- assert local_rank >= 0, (
407
- "local_rank must be provided when creating the world group"
408
- )
409
- self.device_index = local_rank
403
+ assert local_rank >= 0, (
404
+ "local_rank must be provided when creating the world group"
405
+ )
406
+ self.device_index = local_rank
407
408
self_device_group = None
409
self_cpu_group = None