We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
local_rank
1 parent 64cfd97 commit b150df1Copy full SHA for b150df1
vllm/executor/uniproc_executor.py
@@ -28,6 +28,11 @@ def _init_executor(self) -> None:
28
distributed_init_method = get_distributed_init_method(
29
get_ip(), get_open_port())
30
local_rank = 0
31
+ # set local rank as the device index if specified
32
+ device_info = self.vllm_config.device_config.device.__str__().split(
33
+ ":")
34
+ if len(device_info) > 1:
35
+ local_rank = int(device_info[1])
36
rank = 0
37
kwargs = dict(
38
vllm_config=self.vllm_config,
0 commit comments