YANGBoSunning
Kevin Hu
commited on
Commit
·
1aee27d
1
Parent(s):
4ea113b
Fix: Solve the problem of model files in the image being soft links pointing to a non-existent address. #3584 (#3586)
Browse files### 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 <[email protected]>
- download_deps.py +1 -1
download_deps.py
CHANGED
@@ -27,7 +27,7 @@ repos = [
|
|
27 |
def download_model(repo_id):
|
28 |
local_dir = os.path.abspath(os.path.join("huggingface.co", repo_id))
|
29 |
os.makedirs(local_dir, exist_ok=True)
|
30 |
-
snapshot_download(repo_id=repo_id, local_dir=local_dir)
|
31 |
|
32 |
|
33 |
if __name__ == "__main__":
|
|
|
27 |
def download_model(repo_id):
|
28 |
local_dir = os.path.abspath(os.path.join("huggingface.co", repo_id))
|
29 |
os.makedirs(local_dir, exist_ok=True)
|
30 |
+
snapshot_download(repo_id=repo_id, local_dir=local_dir, local_dir_use_symlinks=False)
|
31 |
|
32 |
|
33 |
if __name__ == "__main__":
|