Skip to content

Commit c16e5e7

Browse files
committed
style
1 parent 8f9c3ad commit c16e5e7

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

optimum/exporters/tasks.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
2626
from huggingface_hub.errors import OfflineModeIsEnabled
2727
from 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

3037
try:
@@ -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-
4846
if TYPE_CHECKING:
4947
from .base import ExporterConfig
5048

0 commit comments

Comments
 (0)