File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525from huggingface_hub .constants import HUGGINGFACE_HUB_CACHE
2626from huggingface_hub .errors import OfflineModeIsEnabled
2727from huggingface_hub .file_download import REGEX_COMMIT_HASH , repo_folder_name
28+ from packaging import version
29+ from requests .exceptions import ConnectionError
30+ from transformers import AutoConfig , PretrainedConfig
31+ from transformers .utils import SAFE_WEIGHTS_NAME , WEIGHTS_NAME , http_user_agent
32+
33+ from ..utils .import_utils import is_diffusers_available , is_torch_available , is_transformers_version
34+ from ..utils .logging import get_logger
2835
2936
3037try :
@@ -36,15 +43,6 @@ class IncompleteSnapshotError(Exception):
3643 pass
3744
3845
39- from packaging import version
40- from requests .exceptions import ConnectionError
41- from transformers import AutoConfig , PretrainedConfig
42- from transformers .utils import SAFE_WEIGHTS_NAME , WEIGHTS_NAME , http_user_agent
43-
44- from ..utils .import_utils import is_diffusers_available , is_torch_available , is_transformers_version
45- from ..utils .logging import get_logger
46-
47-
4846if TYPE_CHECKING :
4947 from .base import ExporterConfig
5048
You can’t perform that action at this time.
0 commit comments