Skip to content

Commit c43c4a4

Browse files
committed
tools: Autotuner: Add dependencies for Vizier
Signed-off-by: Eryk Szpotanski <[email protected]>
1 parent 22dcced commit c43c4a4

File tree

5 files changed

+29
-12
lines changed

5 files changed

+29
-12
lines changed

tools/AutoTuner/installer.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,20 @@
33
# Get the directory where the script is located
44
script_dir="$(dirname "${BASH_SOURCE[0]}")"
55

6+
dependencies=""
7+
if [[ "$#" -eq 0 ]]; then
8+
echo "Installing dependencies for Ray Tune and Vizier"
9+
dependencies="ray,vizier"
10+
elif [[ "$#" -ne 1 ]] || ([[ "$1" != "ray" ]] && [[ "$1" != "vizier" ]]); then
11+
echo "Please specify whether 'ray' or 'vizier' dependencies should be installed" >&2
12+
exit 1
13+
else
14+
dependencies="$1"
15+
fi
16+
617
# Define the virtual environment name
718
venv_name="autotuner_env"
819
python3 -m venv "$script_dir/$venv_name"
920
source "$script_dir/$venv_name/bin/activate"
10-
pip3 install -e "$script_dir"
21+
pip3 install -e "$script_dir[$dependencies]"
1122
deactivate

tools/AutoTuner/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ dynamic = ["dependencies", "optional-dependencies"]
1212

1313
[tool.setuptools.dynamic]
1414
dependencies = { file = ["requirements.txt"] }
15+
optional-dependencies.ray = { file = ["requirements-ray.txt"] }
16+
optional-dependencies.vizier = { file = ["requirements-vizier.txt"] }
1517
optional-dependencies.dev = { file = ["requirements-dev.txt"] }
1618

1719
[build-system]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ray[tune]==2.9.3
2+
ax-platform>=0.3.3,<=0.3.7
3+
hyperopt==0.2.7
4+
optuna==3.6.0
5+
pandas>=2.0,<=2.2.1
6+
bayesian-optimization==1.4.0
7+
colorama==0.4.6
8+
tensorboard>=2.14.0,<=2.16.2
9+
protobuf==3.20.3
10+
SQLAlchemy==1.4.17
11+
urllib3<=1.26.15
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
jax<=0.4.33
2+
google-vizier[jax]
3+
tqdm

tools/AutoTuner/requirements.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
ray[default,tune]==2.9.3
2-
ax-platform>=0.3.3,<=0.3.7
3-
hyperopt==0.2.7
4-
optuna==3.6.0
5-
pandas>=2.0,<=2.2.1
6-
bayesian-optimization==1.4.0
7-
colorama==0.4.6
8-
tensorboard>=2.14.0,<=2.16.2
9-
protobuf==3.20.3
10-
SQLAlchemy==1.4.17
11-
urllib3<=1.26.15
1+
ray[default]==2.9.3

0 commit comments

Comments
 (0)