Jean Zay tailored Hydra submitit launcher.
Project description
JZ-hydra-submitit-launcher
A Jean Zay 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 Jean Zay.
Install
This package can be installed from pypi:
pip install 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 .
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
References
- Hydra: https://hydra.cc/docs/intro/
- submitit-launcher: https://hydra.cc/docs/plugins/submitit_launcher/
- submitit: https://github.com/facebookincubator/submitit
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
Hashes for jz-hydra-submitit-launcher-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5047823acaa15ba783de38b985a05baf9f95ba45bae77bc51a24f868a0639c00 |
|
MD5 | 92d1fa2fac6f978f5baffbd37fe46c4d |
|
BLAKE2b-256 | db7136aa51f2eb9322192e5b3b2c4af860edb7f8d9dc7f8806ea66687fe8d999 |
Hashes for jz_hydra_submitit_launcher-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ef2b98995f96457d317c5e411fd3bd74c2186f36b922f3f461e2ff431e16ac |
|
MD5 | b05ccf9c75bfe0271bdbe7e2d0e62aad |
|
BLAKE2b-256 | 654168596d48e8a84f78f8046c88d80c0153366aaed423177af01834130c076a |