-
Notifications
You must be signed in to change notification settings - Fork 61
/
pyproject.toml
69 lines (60 loc) · 1.95 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
67
68
69
[project]
name = 'optimum-quanto'
description = 'A pytorch quantization backend for optimum.'
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.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Artificial Intelligence'
]
keywords = ['torch', 'quantization']
requires-python = '>=3.9.0'
authors = [{ name = 'David Corvoysier' }]
maintainers = [
{name = "HuggingFace Inc. Special Ops Team", email="[email protected]"},
]
dependencies = ['torch>=2.4.0', 'ninja', 'numpy', 'safetensors', 'huggingface_hub']
license = { text = 'Apache-2.0' }
readme = 'README.md'
dynamic = ['version']
[project.urls]
homepage = 'https://github.com/huggingface/optimum-quanto'
[project.optional-dependencies]
dev = ['pytest', 'ruff']
examples = [
'torchvision',
'transformers',
'diffusers',
'datasets',
'accelerate',
'sentencepiece',
'scipy'
]
[tool.setuptools.packages.find]
where = ["."]
include = ["optimum*"]
[tool.setuptools.dynamic]
version = {attr = 'optimum.quanto.__version__'}
[build-system]
requires = ['setuptools>65.5.1', 'setuptools_scm']
build-backend = 'setuptools.build_meta'
[tool.ruff]
# Configuration for Ruff
line-length = 119 # Same line-length as Black had
# Linting rules:
# Never enforce `E501` (line length violations) and other specific rules.
lint.ignore = ['C901', 'E501', 'E741']
lint.select = ['C', 'E', 'F', 'I', 'W']
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
'__init__.py' = ['E402', 'F401', 'F403', 'F811']
# isort configuration (to sort imports)
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ['optimum.quanto']