-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
49 lines (43 loc) · 1.55 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
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')
install_requires = [
'conllu',
'datasets>=1.8',
'huggingface-hub>=0.0.17',
'seqeval',
]
try:
# Check for pre-existing transformers installations to accomodate
# using composable-sft in parallel with adapter-transformers.
import transformers
except ImportError:
install_requires.append('transformers>=4.9')
setup(
name='composable-sft',
version='0.0.1',
description='Tools for training, composing and using sparse fine-tunings of pre-trained neural networks in PyTorch',
license="Apache",
long_description=long_description,
long_description_context_type='text/markdown',
url='https://github.com/cambridgeltl/composable-sft',
author='Alan Ansell',
author_email='aja63@cam.ac.uk',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
package_dir={'': 'src'},
packages=find_packages(where='src'),
install_requires=install_requires,
python_requires='>=3.9',
)