-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
53 lines (49 loc) · 1.61 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
"""Install Compacter."""
import os
import setuptools
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
#os.environ['TORCH_CUDA_ARCH_LIST']="3.5;3.7;6.1;7.0;7.5;8.6+PTX"
def setup_package():
long_description = "seq2seq"
setuptools.setup(
name='seq2seq',
version='0.0.1',
description='Compacter',
long_description=long_description,
long_description_content_type='text/markdown',
author='Rabeeh Karimi Mahabadi',
license='MIT License',
packages=setuptools.find_packages(
exclude=['docs', 'tests', 'scripts', 'examples']),
dependency_links=[
'https://download.pytorch.org/whl/torch_stable.html',
],
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7.10',
],
keywords='text nlp machinelearning',
ext_modules=[
CUDAExtension('seq2seq.projections.fwh_cuda',
sources=[
'seq2seq/projections/fwh_cuda/fwh_cpp.cpp',
'seq2seq/projections/fwh_cuda/fwh_cu.cu',
]
)
],
cmdclass={"build_ext": BuildExtension},
install_requires=[
'datasets==1.6.2',
'scikit-learn==0.24.2',
'tensorboard==2.5.0',
'matplotlib==3.4.2',
'torch==1.10.0+cu113',
'transformers==4.6.0'
],
)
if __name__ == '__main__':
setup_package()