Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hfutils/index/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def _hf_tar_file_info_write(repo_id: str, archive_in_repo: str, file_in_archive:


def _check_hf_transfer_conflict():
if constants.HF_HUB_ENABLE_HF_TRANSFER and vpip('huggingface_hub') < '0.31':
if vpip('huggingface_hub') < '0.31' and constants.HF_HUB_ENABLE_HF_TRANSFER:
warnings.warn(f"You are trying to use huggingface_hub=={huggingface_hub.__version__} "
f"with hf_transfer enabled at the same time, this may cause unexpected error "
f"(see: https://github.com/huggingface/huggingface_hub/issues/2978 for more details). "
Expand Down