Skip to content
Snippets Groups Projects
Commit d3b037a0 authored by Andres's avatar Andres
Browse files

adding slurm executors

parent 0683f48b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,13 @@ hydra:
callbacks:
log_job_return:
_target_: hydra.experimental.callbacks.LogJobReturnCallback
launcher:
setup: [which python, echo 1]
launcher: # https://hydra.cc/docs/plugins/submitit_launcher/
setup: [
"echo '# Loading python module!'", "module load Python/3.10.4 2>&1",
"echo '# List of modules:'", "module list 2>&1",
"echo '# Current working directory:'", "pwd",
"echo '# List of folders in pwd:'", "ls",
"echo '# Activate venv!'", ". .venv/bin/activate",
"echo '# Which python:'", "which python"]
submitit_folder: ${hydra.sweep.dir}/.submitit/%j
# @package _global_
defaults:
- override /hydra/launcher: submitit_slurm
hydra:
callbacks:
log_job_return:
_target_: hydra.experimental.callbacks.LogJobReturnCallback
launcher: # https://hydra.cc/docs/plugins/submitit_launcher/
setup: [
"echo '# Loading python module!'", "module load Python/3.10.4 2>&1",
"echo '# Loading CUDA module!'", "CUDA/12.3.0 2>&1",
"echo '# List of modules:'", "module list 2>&1",
"echo '# Current working directory:'", "pwd",
"echo '# List of folders in pwd:'", "ls",
"echo '# Activate venv!'", ". .venv/bin/activate",
"echo '# Which python:'", "which python",
"echo '# nvidia-smi:'", "nvidia-smi",
"echo '# Torch collect:'", "python -m torch.utils.collect_env"]
submitit_folder: ${hydra.sweep.dir}/.submitit/%j
cpus_per_task: 4
gpus_per_node: 1
mem_per_cpu: 8000
array_parallelism: 5
gres: "gpu:1"
timeout_min: 5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment