-
Notifications
You must be signed in to change notification settings - Fork 86
/
pyproject.toml
95 lines (79 loc) · 2.83 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
94
95
[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 = "hardware@huggingface.co"}]
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.24.0",
"hf-transfer==0.1.6",
"mpi4py < 4.0.0",
"mpmath == 1.3.0",
"numpy >= 1.26.0, < 2.0.0",
"onnx >= 1.12.0",
"optimum >= 1.21.0",
"setuptools",
"tensorrt-llm == 0.13.0.dev2024090300",
"torch>=2.4.0a,<=2.5.0a",
"transformers >= 4.42.4",
"pynvml"
]
[project.scripts]
optimum-cli="optimum.commands.optimum_cli:main"
[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-console-scripts", "pytest-xdist", "psutil", "parameterized"]
# 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"
]