-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
65 lines (58 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
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 = [
"packaging",
"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.19.4",
"transformers==4.36.2",
"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",
"tokenizers==0.15.0",
"six==1.16.0",
"scikit-learn==1.3.2",
"lm-eval==0.4.1",
"ninja==1.11.1.1",
"flash-attn==2.5.2",
"causal-conv1d",
]
_OPTIONAL = {
"train": [
"rich",
"hydra-core==1.3.2",
"hydra_colorlog",
"wandb==0.16.2",
"lightning-bolts==0.7.0",
"lightning-utilities==0.10.0",
"pytorch-lightning==1.8.6",
"timm"
],
"dev": [
"pytest"
]
}
setup(
name='based',
version="0.0.1",
packages=find_packages(include=['based', 'based.*']),
author="Based",
author_email="",
description="",
python_requires=">=3.8",
install_requires=_REQUIRED,
extras_require=_OPTIONAL,
)