Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Lmdeploy
Commits
7a2128be
Unverified
Commit
7a2128be
authored
Aug 03, 2023
by
lvhan028
Committed by
GitHub
Aug 03, 2023
Browse files
Move lmdeploy/turbomind/utils.py to lmdeploy/utils.py (#191)
parent
44a85546
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
lmdeploy/serve/turbomind/chatbot.py
lmdeploy/serve/turbomind/chatbot.py
+1
-1
lmdeploy/turbomind/turbomind.py
lmdeploy/turbomind/turbomind.py
+1
-1
lmdeploy/utils.py
lmdeploy/utils.py
+0
-0
No files found.
lmdeploy/serve/turbomind/chatbot.py
View file @
7a2128be
...
...
@@ -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
...
...
lmdeploy/turbomind/turbomind.py
View file @
7a2128be
...
...
@@ -13,7 +13,7 @@ from torch.nn.utils.rnn import pad_sequence
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
]
...
...
lmdeploy/
turbomind/
utils.py
→
lmdeploy/utils.py
View file @
7a2128be
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment