Skip to content

Commit

Permalink
[Bugfix] Path join when building local path for S3 clone (vllm-projec…
Browse files Browse the repository at this point in the history
…t#12353)

Signed-off-by: Omer Dayan (SW-GPU) <omer@run.ai>
Signed-off-by: Isotr0py <2037008807@qq.com>
  • Loading branch information
omer-dayan authored and Isotr0py committed Feb 2, 2025
1 parent a289c99 commit 3202b6b
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 3202b6b

Please sign in to comment.