Skip to content

Commit

Permalink
fix for multi-step
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
  • Loading branch information
youkaichao committed Jan 21, 2025
1 parent 3d0d593 commit 06db992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion vllm/worker/cpu_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ def __init__(
# Set after load_model.
self.lora_manager: Optional[LRUCacheWorkerLoRAManager] = None

self.builder = self._builder_cls(weakref.proxy(self))
if hasattr(self, "_builder_cls"):
self.builder = self._builder_cls(weakref.proxy(self))

def load_model(self) -> None:
self.model = get_model(vllm_config=self.vllm_config)
Expand Down
3 changes: 2 additions & 1 deletion vllm/worker/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,8 @@ def __init__(
SamplingMetadataCache() \
if self.parallel_config.pipeline_parallel_size == 1 else None

self.builder = self._builder_cls(weakref.proxy(self))
if hasattr(self, "_builder_cls"):
self.builder = self._builder_cls(weakref.proxy(self))

def load_model(self) -> None:
logger.info("Starting to load model %s...", self.model_config.model)
Expand Down

0 comments on commit 06db992

Please sign in to comment.