Skip to content

Commit

Permalink
No symlinks at all for HF download (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrychen109 authored Jan 25, 2024
1 parent 69bf90e commit 2634987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions llmfoundry/utils/model_download_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def download_from_hf_hub(
download_start = time.time()
hf_hub.snapshot_download(model,
local_dir=save_dir,
local_dir_use_symlinks=False,
ignore_patterns=ignore_patterns,
allow_patterns=allow_patterns,
token=token)
Expand Down
1 change: 1 addition & 0 deletions tests/utils/test_model_download_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def test_download_from_hf_hub_weights_pref(mock_list_repo_files: MagicMock,
mock_snapshot_download.assert_called_once_with(
test_repo_id,
local_dir=save_dir,
local_dir_use_symlinks=False,
allow_patterns=None,
ignore_patterns=expected_ignore_patterns,
token=None)
Expand Down

0 comments on commit 2634987

Please sign in to comment.