Skip to main content

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.

Metadata

Release files for slurm-to-wandb 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slurm-to-wandb 0.1.2
File Size Uploaded Provenance Actions
slurm_to_wandb-0.1.2.tar.gz 4.7 kB Without provenance Details for slurm_to_wandb-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slurm-to-wandb 0.1.2
File Interpreter ABI Platform Actions
slurm_to_wandb-0.1.2-py3-none-any.whl Python 3 none any Details for slurm_to_wandb-0.1.2-py3-none-any.whl

Total release size: 10.2 kB

Release files / slurm_to_wandb-0.1.2.tar.gz

Download URL slurm_to_wandb-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7de0f0997e1cab5f9bbf03bf6e39bce2e4da03ee5716c7fc5eb99b4138dfa764
BLAKE2b-256 checksum
How to use checksums
2ce0df72ff4664e067bceaf58790e982b9fbaa3719c9308edf413e99790823c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / slurm_to_wandb-0.1.2-py3-none-any.whl

Download URL slurm_to_wandb-0.1.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51acd4cf88f9e99b7b6f46ed0f0f8102707e9b7f8cc88f8771713c0ab3928b19
BLAKE2b-256 checksum
How to use checksums
e4f724486c8171a4200e739f7d1222db3bec6fbc99535022d47da437a5d0e154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Security for slurm-to-wandb 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page