forked from quic/efficient-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
66 lines (60 loc) · 2.37 KB
/
pyproject.toml
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
[project]
name = "QEfficient"
dynamic = ["version"]
description = """
QEfficient is the library interface for the Hugging Face Transformer \
models for efficient inference on Qualcomm Cloud AI 100"""
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Qualcomm Cloud AI ML Team" }]
keywords = ["transformers", "Cloud AI 100", "Inference"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Development/Unstable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Operating System :: Linux",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence for Inference Accelerator",
]
requires-python = ">=3.8,<3.11"
dependencies = [
"transformers==4.44.2",
"peft==0.12.0",
"datasets==2.7.0",
"fsspec==2023.6.0",
"multidict==6.0.4",
"urllib3<2",
"sentencepiece==0.2.0",
"onnx==1.16.0",
"onnxruntime==1.16.3",
"numpy==1.23.0",
"protobuf==3.20.2",
"onnxscript==0.1.0.dev20240327",
"sympy",
"torch==2.0.0; platform_machine=='aarch64'",
# Specifying torch cpu package URL per python version, update the list once pytorch releases whl for python>3.11
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp38-cp38-linux_x86_64.whl ; python_version=='3.8' and platform_machine=='x86_64'",
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp39-cp39-linux_x86_64.whl ; python_version=='3.9' and platform_machine=='x86_64'",
"torch@https://download.pytorch.org/whl/cpu/torch-2.0.0%2Bcpu-cp310-cp310-linux_x86_64.whl ; python_version=='3.10' and platform_machine=='x86_64'",
]
[project.optional-dependencies]
test = ["pytest","pytest-mock"]
docs = ["Sphinx==7.1.2","sphinx-rtd-theme==2.0.0","myst-parser==3.0.1","sphinx-multiversion"]
quality = ["black", "ruff", "hf_doc_builder@git+https://github.com/huggingface/doc-builder.git"]
[build-system]
requires = ["setuptools>=62.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["QEfficient*"]
namespaces = false
[tool.setuptools.dynamic.version]
attr = "QEfficient.__version__"
[tool.ruff]
line-length = 120
# Enable the isort rules.
lint.extend-select = ["I"]
[tool.pytest.ini_options]
addopts = "-W ignore -s -v"
junit_logging = "all"
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE ELLIPSIS"