Skip to content

Commit 4aa8652

Browse files
committed
Done
Signed-off-by: Jee Jee Li <[email protected]>
1 parent 74d5941 commit 4aa8652

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vllm/model_executor/model_loader/weight_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import tempfile
99
import time
1010
from collections import defaultdict
11+
from pathlib import Path
1112
from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Union
1213

1314
import filelock
@@ -67,7 +68,8 @@ def __init__(self, *args, **kwargs):
6768
super().__init__(*args, **kwargs, disable=True)
6869

6970

70-
def get_lock(model_name_or_path: str, cache_dir: Optional[str] = None):
71+
def get_lock(model_name_or_path: Union[str, Path],
72+
cache_dir: Optional[str] = None):
7173
lock_dir = cache_dir or temp_dir
7274
os.makedirs(os.path.dirname(lock_dir), exist_ok=True)
7375
model_name = model_name_or_path.replace("/", "-")

0 commit comments

Comments
 (0)