From 5e5630a478fe75bc99e4ceea304f9ea68de5aaa6 Mon Sep 17 00:00:00 2001 From: omer-dayan Date: Fri, 24 Jan 2025 05:06:07 +0200 Subject: [PATCH] [Bugfix] Path join when building local path for S3 clone (#12353) Signed-off-by: Omer Dayan (SW-GPU) --- vllm/transformers_utils/s3_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vllm/transformers_utils/s3_utils.py b/vllm/transformers_utils/s3_utils.py index 6ae68161bbd9..74a56cbf57ec 100644 --- a/vllm/transformers_utils/s3_utils.py +++ b/vllm/transformers_utils/s3_utils.py @@ -145,7 +145,8 @@ class S3Model: 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)