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
5203c850
Unverified
Commit
5203c850
authored
Jul 25, 2023
by
lvhan028
Committed by
GitHub
Jul 25, 2023
Browse files
fix getting package root path error in python3.9 (#157)
parent
0bd1fa40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lmdeploy/serve/turbomind/deploy.py
lmdeploy/serve/turbomind/deploy.py
+2
-2
No files found.
lmdeploy/serve/turbomind/deploy.py
View file @
5203c850
...
...
@@ -18,8 +18,8 @@ supported_formats = ['llama', 'hf']
def
get_package_root_path
():
import
importlib.resources
as
pkg_resources
return
pkg_resources
.
p
ath
(
'
lmdeploy
'
,
''
)
import
lmdeploy
return
P
ath
(
lmdeploy
.
__file__
).
parent
def
create_workspace
(
_path
:
str
):
...
...
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