File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
37Run 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
You can’t perform that action at this time.
0 commit comments