Skip to content

Commit 5e5630a

Browse files
authored
[Bugfix] Path join when building local path for S3 clone (#12353)
Signed-off-by: Omer Dayan (SW-GPU) <[email protected]>
1 parent d3d6bb1 commit 5e5630a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/transformers_utils/s3_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def pull_files(self,
145145
return
146146

147147
for file in files:
148-
destination_file = self.dir + file.removeprefix(base_dir)
148+
destination_file = os.path.join(self.dir,
149+
file.removeprefix(base_dir))
149150
local_dir = Path(destination_file).parent
150151
os.makedirs(local_dir, exist_ok=True)
151152
self.s3.download_file(bucket_name, file, destination_file)

0 commit comments

Comments
 (0)