-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
58 lines (55 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import json
from setuptools import setup, find_packages
model_specific_requirement_files = {
"cogvlm2-video": "lmm_engines/huggingface/model/videollm_utils/cogvlm/requirements.txt",
"qwen2vl": "lmm_engines/model_requirements/qwen2vl.txt",
"pixtral": "lmm_engines/model_requirements/pixtral.txt",
}
extra_requirements = {}
for model, requirement_file in model_specific_requirement_files.items():
with open(requirement_file) as f:
extra_requirements[model] = f.read().splitlines()
setup(
name='lmm-engines',
version='0.0.1',
description='',
author='Dongfu Jiang',
author_email='[email protected]',
packages=find_packages(),
url='https://github.com/jdf-prog/LMM-Engines',
install_requires=[
"fire",
"openai",
"google-generativeai",
"accelerate",
"transformers",
"torch",
"Pillow",
"torch",
"tqdm",
"numpy",
"requests",
"sentencepiece",
"icecream",
"prettytable",
"mistralai",
"anthropic",
"peft>=0.11.0",
"decord",
"matplotlib",
"transformers_stream_generator",
"einops",
"timm",
"av",
"opencv-python",
'uvicorn',
'datasets',
'fastapi',
'together'
],
extras_require={
**extra_requirements,
"vllm": ["vllm"],
"sglang": ["sglang[all]"],
}
)