Skip to content

Commit

Permalink
do a difference change
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzjn committed Aug 18, 2024
1 parent 9ec06f2 commit 7188490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/executor/gpu_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _init_executor(self) -> None:
assert self.parallel_config.world_size == 1, (
"GPUExecutor only supports single GPU.")

self.driver_worker = self._create_worker()
self.driver_worker = self._create_worker(local_rank=self.device_config.device.index)
self.driver_worker.init_device()
self.driver_worker.load_model()

Expand All @@ -51,7 +51,7 @@ def _get_worker_kwargs(
device_config=self.device_config,
cache_config=self.cache_config,
load_config=self.load_config,
local_rank=self.device_config.device.index,
local_rank=local_rank,
rank=rank,
distributed_init_method=distributed_init_method,
lora_config=self.lora_config,
Expand Down

0 comments on commit 7188490

Please sign in to comment.