Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/engine/executor/ray_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def _init_ascend_distributed_environment(self, driver_ip):

# Single-node PG below.
if 'ASCEND_RT_VISIBLE_DEVICES' in os.environ:
ray.get([w.set_device.remote(idx) for idx, w in enumerate(self.workers)])
ray.get([w.set_device.remote(idx + self.rank_offset) for idx, w in enumerate(self.workers)])
else:
local_npu_count = torch.npu.device_count()
if local_npu_count <= 0:
Expand Down
Loading