Skip to content

A lightweight tool for launching and managing experiments with slurm.

Notifications You must be signed in to change notification settings

arjunmajum/slurm-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slurm-launcher

A lightweight tool for launching and managing experiments with slurm.

TLDR: This tool copies your experiment code into a new folder before launching your job on slurm.

By making a full copy of your code, you won't need to worry about local edits interfering with your slurm jobs. It also makes it easy to see exactly what code, configuration, etc. was used for previous experiments.

Notes:

  1. Because this tool makes a copy of the current working directory it's best if you use symlinks to point to data folders that you don't want to (unnecessarily) copy.

Getting started

The slurm-launcher tools (launch and search) can be installed using the commands below.

You will be asked to specify an "experiments" directory that will be stored in SLURM_LAUNCHER_ROOT. This directory will be the root folder for storing code, data, checkpoints, etc. for your experiments.

git clone [email protected]:arjunmajum/slurm-launcher.git
cd slurm-launcher
./install.sh

To verify the installation run:

which launch search
# should print the paths to the `launch` and `search` scripts

Launching an experiment

To launch an experiment simply replace sbatch [...] with launch [...].

The launch tool will do three things:

  1. Copies the current working directory into a new folder for this experiment within SLURM_LAUNCHER_ROOT.
  2. Launches a job on slurm from the new experiment folder using sbatch.
  3. Saves the slurm jobid to a file named "jobid" in the experiment folder.

Example:

launch test.sh
# will run `sbatch test.sh` and output the JOBID

Searching for an old experiment

The search tool can be used to find the experiment folder for a previous job.

Example:

search JOBID
# will print the path to folder

Use search -h to see more options.

About

A lightweight tool for launching and managing experiments with slurm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published