Skip to content

Commit 4d62821

Browse files
committed
fixup! convert.py: named instance logging
convert.py: E402 module level import not at top of file
1 parent be5e53f commit 4d62821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
import numpy as np
3030
from sentencepiece import SentencePieceProcessor
3131

32-
logger = logging.getLogger(__name__)
33-
3432
if 'NO_LOCAL_GGUF' not in os.environ:
3533
sys.path.insert(1, str(Path(__file__).parent / 'gguf-py'))
3634
import gguf
3735

3836
if TYPE_CHECKING:
3937
from typing import TypeAlias
4038

39+
logger = logging.getLogger(__name__)
40+
4141
if hasattr(faulthandler, 'register') and hasattr(signal, 'SIGUSR1'):
4242
faulthandler.register(signal.SIGUSR1)
4343

0 commit comments

Comments
 (0)