-
Notifications
You must be signed in to change notification settings - Fork 54
/
setup.py
107 lines (99 loc) · 2.09 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
from setuptools import setup, find_packages
import sys
def is_cuda_available():
try:
import torch
return torch.cuda.is_available()
except:
print(
"You need to install PyTorch before installing MASE: https://pytorch.org/get-started/locally/."
)
return False
def get_system():
return sys.platform
requirements = [
"torch",
"torchvision",
"onnx",
"black",
"toml",
"GitPython",
"colorlog",
"cocotb[bus]==1.8.0",
"pytest",
"pytorch-lightning",
"transformers",
"toml",
"timm",
"pytorch-nlp",
"datasets",
"ipython",
"ipdb",
"sentencepiece",
"einops",
"pybind11",
"tabulate",
"tensorboardx",
"hyperopt",
"accelerate",
"optuna",
"stable-baselines3[extra]",
"h5py",
"scikit-learn",
"scipy",
"onnxruntime",
"matplotlib",
"sphinx-rtd-theme",
"sphinx-test-reports",
"sphinxcontrib-plantuml",
"sphinx-needs",
"imageio",
"imageio-ffmpeg",
"opencv-python",
"kornia",
"einops",
"ghp-import",
"optimum",
"pytest-profiling",
"myst_parser",
"pytest-cov",
"pytest-xdist",
"pytest-sugar",
"pytest-html",
"lightning",
"wandb",
"bitarray",
"bitstring",
"emoji",
"numpy<2.0",
"tensorboard",
"sphinx_needs",
"onnxconverter-common",
"absl-py",
"sphinx-glpi-theme",
"prettytable",
"pyyaml",
"pynvml",
"bitstring>=4.2",
"myst_parser",
"cvxpy",
"py-cpuinfo",
"pandas",
"psutil",
"Pillow==10.4.0",
"mpmath==1.3.0",
]
setup(
name="mase-tools",
version="1.0.0",
description="Machine-Learning Accelerator System Exploration Tools",
author="Aaron Zhao, Jianyi Cheng, Cheng Zhang, Pedro Gimenes",
license_files=("LICENSE",),
python_requires=">=3.11.9",
package_dir={
"": "src",
},
packages=find_packages("src"),
install_requires=requirements,
)