Skip to content

Commit

Permalink
fix neuron
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
  • Loading branch information
youkaichao committed Jan 14, 2025
1 parent 0be6c88 commit f5cf4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/worker/neuron_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(
local_rank: int,
rank: int,
distributed_init_method: str,
is_driver_worker: bool = True,
) -> None:
WorkerBase.__init__(self, vllm_config=vllm_config)
self.local_rank = local_rank
Expand All @@ -38,7 +39,7 @@ def __init__(

self.model_runner: NeuronModelRunner = NeuronModelRunner(
vllm_config=vllm_config)
self.is_driver_worker = True
self.is_driver_worker = is_driver_worker

def execute_model(
self,
Expand Down

0 comments on commit f5cf4e9

Please sign in to comment.