Skip to main content

Jean Zay tailored Hydra submitit launcher.

Project description

JZ-hydra-submitit-launcher

GitHub Workflow Build Status

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

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

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

jz-hydra-submitit-launcher-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jz-hydra-submitit-launcher-0.1.1.tar.gz.

File metadata

File hashes

Hashes for jz-hydra-submitit-launcher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a84482c12858d6baa22a299d31ee0a4a1ce8214fbbb94306b6ccf327af699cc
MD5 c1810698425a29635ffb3b61e6a651e6
BLAKE2b-256 6c483981de8fb2fbac398b2eea9bda2cebd4a071fe39b772003125d24d77b6e0

See more details on using hashes here.

File details

Details for the file jz_hydra_submitit_launcher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jz_hydra_submitit_launcher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd634f44460b01f07bba25cc967d62618b6e5d997cf58611094e3491111bda83
MD5 3a55fe4b2346fd97444541c8c2529252
BLAKE2b-256 eb9171c75e53b0f99e7b165e348d339fb5f00510112d1c925b2e8a6944856468

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page