-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
submitit
Hydra launcher, to launch runs on SLURM clusters
The use of this launcher is meant in time to completely replace the `vital.utils.jobs` package
- Loading branch information
1 parent
d0a5a2a
commit c214ef4
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ natsort | |
nibabel | ||
albumentations | ||
hydra-core~=1.2.0 | ||
hydra-submitit-launcher | ||
python-dotenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# @package _global_ | ||
|
||
defaults: | ||
- submitit_slurm@_group_ | ||
|
||
hydra: | ||
launcher: | ||
timeout_min: ${oc.select:run_time_min,60} | ||
setup: | ||
- "module load httpproxy" # load module allowing to connect to whitelisted domains | ||
- "source $ALLIANCE_VENV_PATH/bin/activate" # activate the pre-installed virtual environment | ||
- "rsync -a ${data.dataset_path} $SLURM_TMPDIR" # copy the dataset to the compute node | ||
additional_parameters: | ||
mail-user: ${oc.env:SLURM_MAIL_USER,null} | ||
mail-type: ALL | ||
|
||
# NOTE: Options meant to override train/task/data should be defined in a "final" launcher config (e.g. `beluga.yaml`) | ||
# and not in launcher config meant to be used as in the defaults list. Otherwise, the order of the composition of the | ||
# configs might not give priority to the launcher config. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @package _global_ | ||
|
||
defaults: | ||
- alliance | ||
|
||
hydra: | ||
launcher: | ||
gpus_per_node: 1 | ||
cpus_per_gpu: 10 | ||
mem_per_gpu: "47750M" | ||
|
||
trainer: | ||
enable_progress_bar: False | ||
|
||
data: | ||
num_workers: 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters