forked from karpathy/nanoGPT
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
62 lines (55 loc) · 1.34 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
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",
"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",
"tokenizers==0.15.0",
"six==1.16.0",
"scikit-learn==1.3.2",
"ninja==1.11.1.1",
]
_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='tktrainer',
version="0.0.1",
packages=find_packages(include=['tktrainer', 'tktrainer.*']),
author="TK Train",
author_email="",
description="",
python_requires=">=3.8",
install_requires=_REQUIRED,
extras_require=_OPTIONAL,
)