We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45814e commit dcc3276Copy full SHA for dcc3276
swift/hub/hub.py
@@ -1,4 +1,5 @@
1
# Copyright (c) Alibaba, Inc. and its affiliates.
2
+import logging
3
import os
4
import tempfile
5
from contextlib import contextmanager
@@ -11,11 +12,11 @@
11
12
from huggingface_hub.hf_api import api, future_compatible
13
from requests.exceptions import HTTPError
14
from transformers import trainer
-from transformers.utils import logging, strtobool
15
+from transformers.utils import strtobool
16
-from swift.utils import ms_logger_context, use_hf_hub
17
+from swift.utils import get_logger, ms_logger_context, use_hf_hub
18
-logger = logging.get_logger(__name__)
19
+logger = get_logger()
20
21
22
class HubOperation:
0 commit comments