Skip to content

Commit 23a0aa4

Browse files
committed
Address comments
1 parent 52b9cbb commit 23a0aa4

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/electrai/configs/MP/config_hpo_tier1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ data:
4646
split_file: null
4747
precision: f32
4848
batch_size: 1 # fixed
49-
# train_workers: 8
50-
# val_workers: 2
49+
train_workers: 8
50+
val_workers: 2
5151
pin_memory: false
5252
val_frac: 0.1
5353
drop_last: false

src/electrai/entrypoints/hpo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""Hyperparameter optimization entrypoint using Optuna.
22
3+
Installation: This module requires the optional ``hpo`` extra (optuna and
4+
optuna-integration). Install with:
5+
uv sync --extra hpo
6+
37
Run with regular python (NOT torchrun):
48
uv run python src/electrai/entrypoints/hpo.py --config path/to/config.yaml
59
@@ -159,7 +163,7 @@ def objective(trial: Trial) -> float:
159163
"trial_number": trial.number,
160164
"num_devices": num_devices,
161165
},
162-
reinit=True,
166+
reinit="finish_previous",
163167
)
164168
else:
165169
wandb_logger = None

0 commit comments

Comments
 (0)