forked from huggingface/optimum-executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
75 lines (64 loc) · 2.24 KB
/
setup.py
File metadata and controls
75 lines (64 loc) · 2.24 KB
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
import re
from setuptools import find_namespace_packages, setup
# Ensure we match the version set in optimum/executorch/version.py
filepath = "optimum/executorch/version.py"
try:
with open(filepath) as version_file:
(__version__,) = re.findall('__version__ = "(.*)"', version_file.read())
except Exception as error:
assert False, "Error: Could not open '%s' due %s\n" % (filepath, error)
INSTALL_REQUIRE = [
"optimum~=1.24",
"executorch>=0.7.0",
"transformers==4.56.1",
]
TESTS_REQUIRE = [
"accelerate>=0.26.0",
"coremltools>=8.2.0",
"datasets",
"parameterized",
"pytest",
"safetensors",
"sentencepiece",
"numba!=0.58.0", # Due to the bug https://github.com/numba/numba/issues/9209
"librosa",
"soundfile",
"tiktoken",
]
QUALITY_REQUIRE = ["black~=23.1", "ruff==0.4.4"]
EXTRAS_REQUIRE = {
"tests": TESTS_REQUIRE,
"quality": QUALITY_REQUIRE,
"dev": TESTS_REQUIRE + QUALITY_REQUIRE,
}
setup(
name="optimum-executorch",
version=__version__,
description="Optimum Executorch is an interface between the Hugging Face libraries and ExecuTorch",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="transformers, quantization, inference, executorch",
url="https://github.com/huggingface/optimum",
author="HuggingFace Inc. Special Ops Team",
author_email="hardware@huggingface.co",
license="Apache",
packages=find_namespace_packages(include=["optimum*"]),
install_requires=INSTALL_REQUIRE,
extras_require=EXTRAS_REQUIRE,
python_requires=">=3.10.0",
include_package_data=True,
zip_safe=False,
)