-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
66 lines (59 loc) · 1.41 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
from setuptools import setup, find_packages
# ensure that torch is installed, and send to torch website if not
try:
import torch
except ModuleNotFoundError:
raise ValueError("Please install torch first: https://pytorch.org/get-started/locally/")
_REQUIRED = [
"protobuf<4.24",
"fsspec==2023.10.0",
"datasets==2.15.0",
"aiohttp", # https://github.com/aio-libs/aiohttp/issues/6794
"dill==0.3.6",
"multiprocess==0.70.14",
"huggingface-hub==0.23.4",
"transformers==4.42.3",
"einops==0.7.0",
"ftfy==6.1.3",
"opt-einsum==3.3.0",
"pydantic==2.5.3",
"pydantic-core==2.14.6",
"pykeops==2.2",
"python-dotenv==1.0.0",
"sentencepiece==0.1.99",
"six==1.16.0",
"flash-attn==2.5.2",
"mamba_ssm==2.0.4",
"rich",
"hydra-core==1.3.2",
"hydra_colorlog",
"wandb==0.16.2",
"ray==2.24.0",
"sacrebleu",
"causal-conv1d",
# "scikit-learn==1.3.2",
# "lm-eval==0.4.1",
# "ninja==1.11.1.1",
]
_OPTIONAL = {
"train": [
"lightning-bolts==0.7.0",
"lightning-utilities==0.10.0",
"pytorch-lightning==1.8.6",
"timm"
],
"dev": [
"pytest"
]
}
setup(
name='jrt',
version="0.0.1",
packages=find_packages(include=['based', 'based.*']),
author="JRT",
author_email="",
description="",
python_requires=">=3.8",
install_requires=_REQUIRED,
extras_require=_OPTIONAL,
)