forked from quic/efficient-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (92 loc) · 4.18 KB
/
pyproject.toml
File metadata and controls
99 lines (92 loc) · 4.18 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[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.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence for Inference Accelerator",
]
requires-python = ">=3.8,<3.13"
dependencies = [
"transformers==4.55.0",
"diffusers== 0.35.1",
"huggingface-hub==0.34.0",
"hf_transfer==0.1.9",
"peft==0.17.0",
"datasets==2.20.0",
"fsspec==2023.6.0",
"sentencepiece==0.2.0",
"onnx==1.18.0",
"onnxruntime==1.22",
"numpy==1.26.4",
"protobuf==6.31.0",
"onnxscript==0.2.5",
"pillow===10.4.0",
"sympy",
"tensorboard",
"fire",
"py7zr",
"torchmetrics==1.7.0",
"ftfy==6.3.1",
"imageio==2.37.2",
"imageio-ffmpeg==0.6.0",
"torch==2.7.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.4.1%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.7.0%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl ; python_version=='3.9' and platform_machine=='x86_64'",
"torch@https://download.pytorch.org/whl/cpu/torch-2.7.0%2Bcpu-cp310-cp310-manylinux_2_28_x86_64.whl ; python_version=='3.10' and platform_machine=='x86_64'",
"torch@https://download.pytorch.org/whl/cpu/torch-2.7.0%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl ; python_version=='3.11' and platform_machine=='x86_64'",
"torch@https://download.pytorch.org/whl/cpu/torch-2.7.0%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl ; python_version=='3.12' and platform_machine=='x86_64'",
"torchvision@https://download.pytorch.org/whl/cpu/torchvision-0.22.0%2Bcpu-cp39-cp39-manylinux_2_28_x86_64.whl ; python_version=='3.9' and platform_machine=='x86_64'",
"torchvision@https://download.pytorch.org/whl/cpu/torchvision-0.22.0%2Bcpu-cp310-cp310-manylinux_2_28_x86_64.whl ; python_version=='3.10' and platform_machine=='x86_64'",
"torchvision@https://download.pytorch.org/whl/cpu/torchvision-0.22.0%2Bcpu-cp311-cp311-manylinux_2_28_x86_64.whl ; python_version=='3.11' and platform_machine=='x86_64'",
"torchvision@https://download.pytorch.org/whl/cpu/torchvision-0.22.0%2Bcpu-cp312-cp312-manylinux_2_28_x86_64.whl ; python_version=='3.12' 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"]
[tool.setuptools.package-data]
"QEfficient.transformers.models.gemma3.configs" = ["*.yaml"]
"QEfficient.diffusers.pipelines.configs" = ["*.json", "*.yaml"]
[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"]
target-version = "py310"
[tool.pytest.ini_options]
addopts = "-W ignore -s -v"
junit_logging = "all"
doctest_optionflags = "NUMBER NORMALIZE_WHITESPACE ELLIPSIS"
markers = [
"on_qaic: marks tests as requiring QAIC hardware",
"diffusion_models: marks tests for diffusion models",
"wan: marks tests for WAN model",
"flux: marks tests for Flux model",
"regular: marks regular tests",
"nightly: marks nightly tests",
"multimodal: marks multimodal tests",
"qnn: marks QNN tests",
"cli: marks CLI tests",
"finetune: marks finetune tests",
"vllm: marks vLLM tests"
]