-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
79 lines (75 loc) · 1.91 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from setuptools import setup, find_packages
setup(
name='mantis-vl',
version='0.0.5',
description='Official Codes for of "MANTIS: Interleaved Multi-Image Instruction Tuning"',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author='Dongfu Jiang',
author_email='[email protected]',
packages=find_packages(),
url='https://github.com/TIGER-AI-Lab/Mantis',
install_requires=[
"transformers",
"sentencepiece",
"torch",
"Pillow",
"torch",
"accelerate",
"torchvision",
"datasets==2.18.0",
"diffusers",
"decord",
"ring"
],
extras_require={
"train": [
"fire",
"tqdm",
"numpy",
"requests",
"matplotlib",
"transformers<4.46.0",
"transformers_stream_generator",
"tiktoken",
"chardet",
"deepspeed==0.15.4",
"peft>=0.10",
"bitsandbytes",
"wandb",
"ninja",
"scipy",
"webdataset",
"braceexpand",
"pandas",
"orjson",
"prettytable",
"pytest",
"opencv-python",
"pyarrow",
"dask",
"einops-exts",
"datasets==2.18.0",
"open_clip_torch",
"openai",
"av",
"qwen_vl_utils",
"ring-flash-attn @ git+https://github.com/jdf-prog/ring-flash-attention.git",
],
"eval": [
"tqdm",
"numpy",
"prettytable",
"fire",
"datasets==2.18.0",
"openai",
"tiktoken",
"av",
"decord",
]
}
)
# change it to pyproject.toml
# [build-system]
# python setup.py sdist bdist_wheel
# twine upload dist/*