Skip to content

Commit

Permalink
Test optuna and ray (huggingface#11924)
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik authored May 28, 2021
1 parent af1a10b commit 8d17162
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"onnxconverter-common",
"onnxruntime-tools>=1.4.2",
"onnxruntime>=1.4.0",
"optuna",
"packaging",
"parameterized",
"protobuf",
Expand All @@ -121,6 +122,7 @@
"pytest-sugar",
"pytest-xdist",
"python>=3.6.0",
"ray",
"recommonmark",
"regex!=2019.12.17",
"requests",
Expand Down Expand Up @@ -239,6 +241,10 @@ def run(self):
extras["sagemaker"] = deps_list("sagemaker")
extras["deepspeed"] = deps_list("deepspeed")
extras["fairscale"] = deps_list("fairscale")
extras["optuna"] = deps_list("optuna")
extras["ray"] = deps_list("ray")

extras["integrations"] = extras["optuna"] + extras["ray"]

extras["serving"] = deps_list("pydantic", "uvicorn", "fastapi", "starlette")
extras["speech"] = deps_list("soundfile", "torchaudio")
Expand All @@ -263,6 +269,7 @@ def run(self):
+ extras["tokenizers"]
+ extras["speech"]
+ extras["vision"]
+ extras["integrations"]
)

extras["docs_specific"] = deps_list(
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"onnxconverter-common": "onnxconverter-common",
"onnxruntime-tools": "onnxruntime-tools>=1.4.2",
"onnxruntime": "onnxruntime>=1.4.0",
"optuna": "optuna",
"packaging": "packaging",
"parameterized": "parameterized",
"protobuf": "protobuf",
Expand All @@ -38,6 +39,7 @@
"pytest-sugar": "pytest-sugar",
"pytest-xdist": "pytest-xdist",
"python": "python>=3.6.0",
"ray": "ray",
"recommonmark": "recommonmark",
"regex": "regex!=2019.12.17",
"requests": "requests",
Expand Down

0 comments on commit 8d17162

Please sign in to comment.