Jean Zay tailored Hydra submitit launcher.
Project description
JZ-hydra-submitit-launcher
A Jean Zay (JZ) tailored Hydra submitit launcher based on Hydra and its submitit-launcher plugin. Basically it extends the submitit-launcher plugin with defaults that make sense for JZ.
Install
This package can be installed from pypi (using --user
is required on JZ):
pip install --user jz-hydra-submitit-launcher
You can also install it from source:
git clone https://github.com/zaccharieramzi/jz-hydra-submitit-launcher.git
cd jz-hydra-submitit-launcher
pip install --user .
Use
The primary use is with the hydra-submitit-launch
command with your script name and the config type:
hydra-submitit-launch my_app.py dev
Available configs
6 different configs are available:
dev
: with 2 hours, 1 gpu, and qos_gpu-dev.t3
: with 20 hours, 1 gpu, and qos_gpu-t3.t4
: with 100 hours, 1 gpu, and qos_gpu-t4.4gpus_dev
: with 2 hours, 4 gpus, and qos_gpu-dev.4gpus_t3
: with 20 hours, 4 gpus, and qos_gpu-t3.4gpus_t4
: with 100 hours, 4 gpus, and qos_gpu-t4.
By default, all the configs select 32Gb GPUs, use a single node and use the gpu_p1 partition.
Advanced configs
You can override the SLURM config, the same way you would with any hydra configuration.
The parameters you can override are defined in the hydra-submitit-launcher
plugin doc.
For example, if you want to use the gpu_p2 partition, you would need to do:
hydra-submitit-launch my_app.py dev hydra.launcher.setup=null hydra.launcher.partition=gpu_p2 hydra.launcher.cpus_per_task=3
In order to change the timeout on the SLURM job to for example 10 hours, you would need to do:
hydra-submitit-launch my_app.py base +hydra.launcher.hours=10
This will automatically select the right qos for you.
References
- Hydra: https://hydra.cc/docs/intro/
- submitit-launcher: https://hydra.cc/docs/plugins/submitit_launcher/
- submitit: https://github.com/facebookincubator/submitit
- JZ docs: http://www.idris.fr/ or https://jean-zay-doc.readthedocs.io/en/latest/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jz-hydra-submitit-launcher-0.1.4.tar.gz
.
File metadata
- Download URL: jz-hydra-submitit-launcher-0.1.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190c91a75637dccb78a457d20d6217d5b2bef050de5188ceef6d3bfdc4394d43 |
|
MD5 | 133013bc03fe98ae540697b39c4f821a |
|
BLAKE2b-256 | e63257f6d9d5851a4d4e7b2b32b9ef6c3b8456b2fb13fc9e4b2e2a17dd152551 |
File details
Details for the file jz_hydra_submitit_launcher-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: jz_hydra_submitit_launcher-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c644b4fc363aa9b53a1b67d2cd3e289105c002d99b135a098697c29b700d3c6b |
|
MD5 | 01f4fded5ad4d9a3618607ecab335f2a |
|
BLAKE2b-256 | 417b318057d9bb57e5349034d95f9799f6d690739f09e83194edc247e9b6cd6c |