Skip to content

Commit

Permalink
[Bugfix] Path join when building local path for S3 clone (#12353)
Browse files Browse the repository at this point in the history
Signed-off-by: Omer Dayan (SW-GPU) <omer@run.ai>
  • Loading branch information
omer-dayan authored Jan 24, 2025
1 parent d3d6bb1 commit 5e5630a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/transformers_utils/s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def pull_files(self,
return

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

0 comments on commit 5e5630a

Please sign in to comment.