Skip to content

Commit

Permalink
[Bugfix] Fix OpenVino/Neuron driver_worker init (#10779)
Browse files Browse the repository at this point in the history
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
  • Loading branch information
NickLucche and DarkLight1337 authored Nov 30, 2024
1 parent 661175b commit 40bc242
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions vllm/executor/neuron_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ def _init_worker(self):
wrapper = WorkerWrapperBase(vllm_config=self.vllm_config)
distributed_init_method = get_distributed_init_method(
get_ip(), get_open_port())
self.driver_worker = wrapper.init_worker(
wrapper.init_worker(
vllm_config=self.vllm_config,
local_rank=0,
rank=0,
distributed_init_method=distributed_init_method)
distributed_init_method=distributed_init_method,
)
self.driver_worker = wrapper.worker
self.driver_worker.init_device()
self.driver_worker.load_model()

Expand Down
3 changes: 2 additions & 1 deletion vllm/executor/openvino_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _init_worker(self):

distributed_init_method = get_distributed_init_method(
get_ip(), get_open_port())
self.driver_worker = wrapper.init_worker(
wrapper.init_worker(
ov_core=ov.Core(),
vllm_config=self.vllm_config,
local_rank=0,
Expand All @@ -45,6 +45,7 @@ def _init_worker(self):
kv_cache_dtype=self.cache_config.cache_dtype,
is_driver_worker=True,
)
self.driver_worker = wrapper.worker
self.driver_worker.init_device()
self.driver_worker.load_model()

Expand Down

0 comments on commit 40bc242

Please sign in to comment.