Skip to main content

Uploads SLURM job information to WandB for better monitoring.

Project description

slurm-to-wandb

build status pypi badge

Monitor SLURM jobs using Weights and Biases (wandb) 📊

Usage

On your cluster, login to wandb using the cli, then run:

pip install slurm-to-wandb
slurm_to_wandb <job_ids>

... to upload all sacct information to wandb. Currently, uploads to a project called "peregrine" - support for configuring this is planned #4. <job_ids> can be multiple space-separated job ids. In the case multiple job id's match, all matched job ids are uploaded (useful, for example, when using job arrays).

To construct a DataFrame with the information yourself, use the function slurm_to_wandb.sacct_as_df(*job_ids, **sacct_args). sacct_args can be any additional args to pass to sacct. Run it on the cluster:

from slurm_to_wandb import sacct_as_df

df = sacct_as_df("job_id_123", "another_job_id", starttime="2021-05-20")
df

You can now upload the information to wandb however you like 🙌🏻

About

By Jeroen Overschie.

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

slurm_to_wandb-0.1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

slurm_to_wandb-0.1.2-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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