Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Jan 23, 2024
1 parent 17e261f commit da27b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/utils/model_download_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def download_from_hf_hub(
f'No supported model weights found in repo {model}.' +
' Please make sure the repo contains either safetensors or pytorch weights.'
)

allow_patterns = TOKENIZER_FILES if tokenizers_only else None

download_start = time.time()
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,
allow_patterns=None,
ignore_patterns=expected_ignore_patterns,
token=None)

Expand Down

0 comments on commit da27b1f

Please sign in to comment.