Skip to content

Commit

Permalink
Update vllm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dotpyu authored Mar 4, 2024
1 parent 3c2f3f0 commit bd6aab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alfred/fm/vllm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class vLLMModel(LocalAccessFoundationModel):
source: https://github.com/vllm-project/vllm
"""

def __init__(self, model: str, local_dir: str = None, **kwargs: Any):
def __init__(self, model: str, local_path: str = None, **kwargs: Any):
"""
Initialize a VLLM with MultiGPU.
Expand All @@ -33,7 +33,7 @@ def __init__(self, model: str, local_dir: str = None, **kwargs: Any):
super().__init__(model)
self.gpu_count = torch.cuda.device_count()
self.model = LLM(
local_dir if local_dir is not None else model,
local_path if local_path is not None else model,
tensor_parallel_size=self.gpu_count,
)

Expand Down

0 comments on commit bd6aab9

Please sign in to comment.