Skip to content

Commit 84c7602

Browse files
committed
fix pip cache, pip-compile lock reqs
Signed-off-by: Jack Luar <[email protected]>
1 parent 9e7df40 commit 84c7602

File tree

5 files changed

+463
-9
lines changed

5 files changed

+463
-9
lines changed

tools/AutoTuner/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ __pycache__/
1010
# Autotuner env
1111
autotuner_env
1212
.env
13+
.venv

tools/AutoTuner/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
clearcache:
2+
@echo "Cleaning python cache"
3+
@find . -type d -name __pycache__ -exec rm -r {} \+
4+
5+
init:
6+
@echo "Installing python environment"
7+
@./installer.sh
8+
9+
reqs:
10+
@echo "Compiling requirements"
11+
@rm -f requirements.txt
12+
@.venv/bin/pip-compile --output-file=requirements.txt requirements.in
13+
14+
test:
15+
@echo "Running tests"

tools/AutoTuner/installer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ script_dir="$(dirname "${BASH_SOURCE[0]}")"
77
venv_name="autotuner_env"
88
python3 -m venv "$script_dir/$venv_name"
99
source "$script_dir/$venv_name/bin/activate"
10-
pip3 install -U -r $script_dir/requirements.txt
10+
pip3 cache purge
11+
pip3 install --no-cache-dir -U -r $script_dir/requirements.txt
1112
deactivate

tools/AutoTuner/requirements.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
12+
pip-tools==7.4.1

0 commit comments

Comments
 (0)