forked from huggingface/optimum-nvidia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
93 lines (76 loc) · 2.72 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[project]
name = "optimum-nvidia"
requires-python = ">= 3.10"
dynamic = ["version"]
description = """Optimum Nvidia is the interface between the Hugging Face Transformers and NVIDIA GPUs. "
"It provides a set of tools enabling easy model loading, training and "
"inference on single and multiple GPU cards for different downstream tasks."""
# Some contact information
authors = [{name = "HuggingFace Inc. Machine Learning Optimization Team", email = "[email protected]"}]
keywords = ["transformers", "neural-network", "inference", "nvidia", "tensorrt", "ampere", "hopper"]
readme = "README.md"
license = {text = "Apache/2.0"}
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.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
# List dependencies
dependencies = [
"accelerate == 0.25",
"datasets >= 2.14.0",
"huggingface-hub >= 0.22.0",
"hf-transfer",
"mpmath == 1.3.0",
"numpy >= 1.26.0, < 2.0.0",
"onnx >= 1.12.0",
"optimum >= 1.13.0",
"setuptools",
"tensorrt-llm == 0.10.0",
"torch>=2.2.0a,<=2.3.1",
"transformers >= 4.38.2",
"pynvml"
]
[project.urls]
Homepage = "https://huggingface.co/hardware/nvidia"
Repository = "https://github.com/huggingface/optimum-nvidia"
Issues = "https://github.com/huggingface/optimum-nvidia/issues"
# List additional dependencies
[project.optional-dependencies]
test = ["mock", "pytest", "pytest-xdist", "psutil", "parameterized", "datasets", "safetensors",]
# quality = ["black", "ruff", "isort", "hf_doc_builder @ git+https://github.com/huggingface/doc-builder.git",]
# Configure build system
[build-system]
requires = ["setuptools"]
# Configure tools around
[tool.ruff.lint]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "F402", "F823" ]
select = ["C", "E", "F", "I", "W"]
[tool.ruff.lint.pycodestyle]
max-line-length = 119
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
"examples/*.py" = ["E402"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["optimum"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
pythonpath = [
"src"
]