Skip to content

Commit c22aebf

Browse files
eszpotanskiglatosinski
authored andcommitted
tools: Autotuner: Add dependencies for Vizier
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
1 parent e9bae1f commit c22aebf

File tree

5 files changed

+31
-14
lines changed

5 files changed

+31
-14
lines changed

tools/AutoTuner/installer.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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"
@@ -29,5 +40,5 @@ if [ "$success" = false ]; then
2940
exit 1
3041
fi
3142

32-
pip3 install --no-cache-dir -e "$script_dir"
43+
pip3 install --no-cache-dir -e "$script_dir[$dependencies]"
3344
deactivate

tools/AutoTuner/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ openroad_autotuner = "autotuner.distributed:main"
1515

1616
[tool.setuptools.dynamic]
1717
dependencies = { file = ["requirements.txt"] }
18+
optional-dependencies.ray = { file = ["requirements-ray.txt"] }
19+
optional-dependencies.vizier = { file = ["requirements-vizier.txt"] }
1820
optional-dependencies.dev = { file = ["requirements-dev.txt"] }
1921

2022
[build-system]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ray[default,tune]==2.43.0
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.17.0
9+
protobuf>=5.26.1
10+
SQLAlchemy==1.4.17
11+
urllib3>=1.26.17
12+
matplotlib==3.10.0
13+
pyyaml==6.0.1
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]==0.1.18
3+
tqdm

tools/AutoTuner/requirements.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
ray[default,tune]==2.43.0
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.17.0
9-
protobuf>=5.26.1
10-
SQLAlchemy==1.4.17
11-
urllib3>=1.26.17
12-
matplotlib==3.10.0
13-
pyyaml==6.0.1
1+
ray[default]==2.43.0

0 commit comments

Comments
 (0)