Skip to content

Commit

Permalink
update reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon committed Oct 18, 2023
1 parent bb3cce9 commit 2054d63
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
20 changes: 3 additions & 17 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
accelerate
datasets
fastapi
fire
gradio
mmengine
numpy
pybind11
safetensors
sentencepiece
setuptools
shortuuid
tiktoken
torch
transformers>=4.33.0
tritonclient[all]
uvicorn
-r requirements/build.txt
-r requirements/runtime.txt
-r requirements/optional.txt
2 changes: 2 additions & 0 deletions requirements/build.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pybind11
setuptools
5 changes: 5 additions & 0 deletions requirements/optional.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accelerate
datasets
fastapi
shortuuid
uvicorn
9 changes: 9 additions & 0 deletions requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fire
gradio
mmengine
numpy
safetensors
sentencepiece
tiktoken
torch
transformers>=4.33.0
2 changes: 2 additions & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
pytest
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ def gen_packages_items():
'lmdeploy': lmdeploy_package_data,
},
include_package_data=True,
install_requires=parse_requirements('requirements.txt'),
setup_requires=parse_requirements('requirements/build.txt'),
tests_require=parse_requirements('requirements/test.txt'),
install_requires=parse_requirements('requirements/runtime.txt'),
extras_require={
'all': parse_requirements('requirements.txt'),
'optional': parse_requirements('requirements/optional.txt'),
},
has_ext_modules=check_ext_modules,
classifiers=[
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit 2054d63

Please sign in to comment.