A more flexible hydra submitit launcher
Project description
hydra_submitit_extension
A more flexible Hydra Submitit Launcher plugin
This launcher is a extension of Submiti Launcher Plugin.
Features:
- Iterative scheduling of jobs:
- Max Number for Active and Pending Jobs
- Automatically Schedule Jobs and Wait depending on Limits
Drawbacks:
- Single Jobs are submitted instead of Job arrays
- Hydra must be active to schedule jobs
- No Naming Scheme for Slurm jobs. This makes manual canceling difficult
Installation
pip install hydra-submitit-extension
Quickstart
python main.py hydra/launcher=submitit_slurm_extended -m
All Parameter:
# @package hydra.launcher
# No changes to Submitit Launcher plugin
submitit_folder: ${hydra.sweep.dir}/.submitit/%j
timeout_min: 30
cpus_per_task: 1
gpus_per_node: null
tasks_per_node: 1
mem_gb: 1
nodes: 1
name: ${hydra.job.name}
partition: "dev_single"
qos: null
comment: null
constraint: null
exclude: null
#gres: "gpu:1"
cpus_per_gpu: null
gpus_per_task: null
mem_per_gpu: null
mem_per_cpu: null
account: null
signal_delay_s: 120
max_num_timeout: 0
additional_parameters: {}
array_parallelism: 256
setup: null
# Hydra Submitit Extension
_target_: hydra_plugins.hydra_submitit_extension.submitit_launcher.ExtendedSlurmLauncher
# Time between reschedule tries in s.
# Min is 60s
reschedule_interval: 60
# Maximum number of total active jobs in slurm account.
max_jobs_in_total: 5
# Maximum number of active jobs in current partition (e.g dev_single).
max_jobs_in_partition: 4
# Maximum number of active jobs in current sweep.
max_jobs_in_sweep: 3
Roadmap
- Iterative Scheduling
- Greedy Partition Selection
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 hydra_submitit_extension-0.0.5.tar.gz
.
File metadata
- Download URL: hydra_submitit_extension-0.0.5.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b82ad8d4b1113877c1a42f3d68df50872e6e6530a69265bb7e5d7fa86fedd0 |
|
MD5 | 82ceebf29bad90e9c7563c4b3467bedf |
|
BLAKE2b-256 | f7c41127ec6add9718e8af01299f2e3127c0603d80546e164dbd8f44bba56f5c |
File details
Details for the file hydra_submitit_extension-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: hydra_submitit_extension-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2da2abd783758ce9547cadbabe5eca4440180f58fe8a2ad70e3c40aabbf25d3 |
|
MD5 | 103a5046a7d05e13d22460ca264c4518 |
|
BLAKE2b-256 | 4a0546c35db5d79aae6a324db7c14ece6ca52489c4b6562aaeafe5c964eea23f |