Skip to content

Commit

Permalink
move lmdeploy/turbomind/utils.py to lmdeploy/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Aug 2, 2023
1 parent 4767b04 commit 3e1e154
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lmdeploy/serve/turbomind/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def stream_callback(que, result, error):

def get_logger(log_file=None, log_level=logging.INFO):
"""Return the logger."""
from lmdeploy.turbomind.utils import get_logger
from lmdeploy.utils import get_logger
logger = get_logger('service.ft', log_file=log_file, log_level=log_level)
return logger

Expand Down
2 changes: 1 addition & 1 deletion lmdeploy/turbomind/turbomind.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import lmdeploy
from lmdeploy.model import MODELS
from lmdeploy.turbomind.utils import get_logger
from lmdeploy.utils import get_logger

# TODO: find another way import _turbomind
lmdeploy_dir = osp.split(lmdeploy.__file__)[0]
Expand Down
File renamed without changes.

0 comments on commit 3e1e154

Please sign in to comment.