Skip to content

Commit

Permalink
Don't use cupy when enforce_eager=True (vllm-project#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
esmeetu authored and jimpang committed Mar 4, 2024
1 parent 88ffe97 commit d55c43c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vllm/engine/llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ def _init_workers_ray(self, placement_group: "PlacementGroup",
is_driver_worker=True,
)

self._run_workers("init_model", cupy_port=get_open_port())
# don't use cupy for eager mode
self._run_workers("init_model",
cupy_port=get_open_port()
if not model_config.enforce_eager else None)
self._run_workers(
"load_model",
max_concurrent_workers=self.parallel_config.
Expand Down

0 comments on commit d55c43c

Please sign in to comment.