From a10c2f2effacb3598ce2f5b0c0ab0c3731ff76d8 Mon Sep 17 00:00:00 2001 From: YANGBoSunning <396122554@qq.com> Date: Fri, 22 Nov 2024 21:54:39 +0800 Subject: [PATCH] Fix: Solve the problem of model files in the image being soft links pointing to a non-existent address. #3584 (#3586) ### What problem does this PR solve? Fix: Solve the problem of model files in the image being soft links pointing to a non-existent address. #3584 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: Kevin Hu --- download_deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_deps.py b/download_deps.py index 6c0c6d5bc..36d83e60b 100644 --- a/download_deps.py +++ b/download_deps.py @@ -27,7 +27,7 @@ repos = [ def download_model(repo_id): local_dir = os.path.abspath(os.path.join("huggingface.co", repo_id)) os.makedirs(local_dir, exist_ok=True) - snapshot_download(repo_id=repo_id, local_dir=local_dir) + snapshot_download(repo_id=repo_id, local_dir=local_dir, local_dir_use_symlinks=False) if __name__ == "__main__":