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
e7bc11b4
Unverified
Commit
e7bc11b4
authored
Jul 26, 2023
by
Chen Xin
Committed by
GitHub
Jul 26, 2023
Browse files
Add triton_models to whl package (#163)
* defer symlink * fix lint
parent
5ed6bb59
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
5 deletions
+12
-5
MANIFEST.in
MANIFEST.in
+2
-0
lmdeploy/serve/turbomind/deploy.py
lmdeploy/serve/turbomind/deploy.py
+9
-0
lmdeploy/serve/turbomind/triton_models/interactive/1/placeholder
...y/serve/turbomind/triton_models/interactive/1/placeholder
+0
-0
lmdeploy/serve/turbomind/triton_models/interactive/1/weights
lmdeploy/serve/turbomind/triton_models/interactive/1/weights
+0
-1
lmdeploy/serve/turbomind/triton_models/postprocessing/1/tokenizer
.../serve/turbomind/triton_models/postprocessing/1/tokenizer
+0
-1
lmdeploy/serve/turbomind/triton_models/preprocessing/1/tokenizer
...y/serve/turbomind/triton_models/preprocessing/1/tokenizer
+0
-1
setup.py
setup.py
+1
-2
No files found.
MANIFEST.in
View file @
e7bc11b4
...
@@ -3,3 +3,5 @@ include lmdeploy/lib/*.so
...
@@ -3,3 +3,5 @@ include lmdeploy/lib/*.so
include lmdeploy/lib/*.so*
include lmdeploy/lib/*.so*
include lmdeploy/lib/*.dll
include lmdeploy/lib/*.dll
include lmdeploy/lib/*.pyd
include lmdeploy/lib/*.pyd
include lmdeploy/serve/turbomind/service_docker_up.sh
recursive-include lmdeploy/serve/turbomind/triton_models *
lmdeploy/serve/turbomind/deploy.py
View file @
e7bc11b4
...
@@ -497,6 +497,15 @@ def pack_model_repository(workspace_path: str):
...
@@ -497,6 +497,15 @@ def pack_model_repository(workspace_path: str):
Args:
Args:
workspace_path: the path of workspace
workspace_path: the path of workspace
"""
"""
os
.
symlink
(
src
=
'../../tokenizer'
,
dst
=
osp
.
join
(
workspace_path
,
'triton_models'
,
'preprocessing'
,
'1'
,
'tokenizer'
))
os
.
symlink
(
src
=
'../../tokenizer'
,
dst
=
osp
.
join
(
workspace_path
,
'triton_models'
,
'postprocessing'
,
'1'
,
'tokenizer'
))
os
.
symlink
(
src
=
'../../weights'
,
dst
=
osp
.
join
(
workspace_path
,
'triton_models'
,
'interactive'
,
'1'
,
'weights'
))
model_repo_dir
=
osp
.
join
(
workspace_path
,
'model_repository'
)
model_repo_dir
=
osp
.
join
(
workspace_path
,
'model_repository'
)
os
.
makedirs
(
model_repo_dir
,
exist_ok
=
True
)
os
.
makedirs
(
model_repo_dir
,
exist_ok
=
True
)
os
.
symlink
(
src
=
osp
.
join
(
'../triton_models/interactive'
),
os
.
symlink
(
src
=
osp
.
join
(
'../triton_models/interactive'
),
...
...
lmdeploy/serve/turbomind/triton_models/interactive/1/placeholder
0 → 100644
View file @
e7bc11b4
lmdeploy/serve/turbomind/triton_models/interactive/1/weights
deleted
120000 → 0
View file @
5ed6bb59
../../weights
\ No newline at end of file
lmdeploy/serve/turbomind/triton_models/postprocessing/1/tokenizer
deleted
120000 → 0
View file @
5ed6bb59
../../tokenizer/
\ No newline at end of file
lmdeploy/serve/turbomind/triton_models/preprocessing/1/tokenizer
deleted
120000 → 0
View file @
5ed6bb59
../../tokenizer
\ No newline at end of file
setup.py
View file @
e7bc11b4
...
@@ -103,8 +103,7 @@ if __name__ == '__main__':
...
@@ -103,8 +103,7 @@ if __name__ == '__main__':
long_description_content_type
=
'text/markdown'
,
long_description_content_type
=
'text/markdown'
,
author
=
'OpenMMLab'
,
author
=
'OpenMMLab'
,
author_email
=
'openmmlab@gmail.com'
,
author_email
=
'openmmlab@gmail.com'
,
packages
=
find_packages
(
packages
=
find_packages
(
exclude
=
()),
exclude
=
(
'lmdeploy/serve/turbomind/triton_models'
,
)),
include_package_data
=
True
,
include_package_data
=
True
,
install_requires
=
parse_requirements
(
'requirements.txt'
),
install_requires
=
parse_requirements
(
'requirements.txt'
),
classifiers
=
[
classifiers
=
[
...
...
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