Skip to content

Commit acc41af

Browse files
committed
Fix non-existent import in transformers.utils.hub
Signed-off-by: ZX-ModelCloud <zx@modelcloud.ai>
1 parent a726b30 commit acc41af

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

gptqmodel/utils/hub.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55

66
from __future__ import annotations
77

8-
from huggingface_hub import create_repo
8+
import huggingface_hub
99
from transformers.utils import hub as transformers_hub
1010
from transformers.utils import logging as transformers_logging
1111

1212

1313
cached_file = transformers_hub.cached_file
14+
create_repo = huggingface_hub.create_repo
1415
has_file = transformers_hub.has_file
15-
hf_hub_download = transformers_hub.hf_hub_download
16-
list_repo_tree = transformers_hub.list_repo_tree
17-
snapshot_download = transformers_hub.snapshot_download
16+
hf_hub_download = huggingface_hub.hf_hub_download
17+
list_repo_tree = huggingface_hub.list_repo_tree
18+
snapshot_download = huggingface_hub.snapshot_download
1819

1920
disable_progress_bar = transformers_logging.disable_progress_bar
2021

0 commit comments

Comments
 (0)