Skip to content

Commit

Permalink
[Bugfix] use SoftLockFile instead of LockFile (vllm-project#3578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kota-iizuka authored Mar 23, 2024
1 parent 67898b8 commit b8885b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/model_executor/weight_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_lock(model_name_or_path: str, cache_dir: Optional[str] = None):
lock_dir = cache_dir if cache_dir is not None else _vllm_filelocks_path
os.makedirs(os.path.dirname(lock_dir), exist_ok=True)
lock_file_name = model_name_or_path.replace("/", "-") + ".lock"
lock = filelock.FileLock(os.path.join(lock_dir, lock_file_name))
lock = filelock.SoftFileLock(os.path.join(lock_dir, lock_file_name))
return lock


Expand Down

0 comments on commit b8885b9

Please sign in to comment.