pyproject.toml (79 lines of code) (raw):

[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.26", "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.17.0", "optimum >= 1.21.0", "setuptools", "tensorrt-llm == 0.16.0", "torch>=2.4.0a,<=2.6.0a", "transformers >= 4.45.1", "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] tests = ["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" ]