Skip to content

Commit

Permalink
Add triton_models to whl package (InternLM#163)
Browse files Browse the repository at this point in the history
* defer symlink

* fix lint
  • Loading branch information
irexyc authored Jul 26, 2023
1 parent 5ed6bb5 commit e7bc11b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ include lmdeploy/lib/*.so
include lmdeploy/lib/*.so*
include lmdeploy/lib/*.dll
include lmdeploy/lib/*.pyd
include lmdeploy/serve/turbomind/service_docker_up.sh
recursive-include lmdeploy/serve/turbomind/triton_models *
9 changes: 9 additions & 0 deletions lmdeploy/serve/turbomind/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,15 @@ def pack_model_repository(workspace_path: str):
Args:
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')
os.makedirs(model_repo_dir, exist_ok=True)
os.symlink(src=osp.join('../triton_models/interactive'),
Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def gen_packages_items():
long_description_content_type='text/markdown',
author='OpenMMLab',
author_email='[email protected]',
packages=find_packages(
exclude=('lmdeploy/serve/turbomind/triton_models', )),
packages=find_packages(exclude=()),
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
classifiers=[
Expand Down

0 comments on commit e7bc11b

Please sign in to comment.