File tree Expand file tree Collapse file tree 5 files changed +31
-14
lines changed
Expand file tree Collapse file tree 5 files changed +31
-14
lines changed Original file line number Diff line number Diff line change 33# Get the directory where the script is located
44script_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
718venv_name=" autotuner_env"
819python3 -m venv " $script_dir /$venv_name "
@@ -29,5 +40,5 @@ if [ "$success" = false ]; then
2940 exit 1
3041fi
3142
32- pip3 install --no-cache-dir -e " $script_dir "
43+ pip3 install --no-cache-dir -e " $script_dir [ $dependencies ] "
3344deactivate
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ openroad_autotuner = "autotuner.distributed:main"
1515
1616[tool .setuptools .dynamic ]
1717dependencies = { file = [" requirements.txt" ] }
18+ optional-dependencies.ray = { file = [" requirements-ray.txt" ] }
19+ optional-dependencies.vizier = { file = [" requirements-vizier.txt" ] }
1820optional-dependencies.dev = { file = [" requirements-dev.txt" ] }
1921
2022[build-system ]
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ jax==0.4.33
2+ google-vizier[jax]==0.1.18
3+ tqdm
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments