Skip to main content

Backend implementation for running MLFlow projects on Slurm

Project description

MLFlow-Slurm

Backend for executing MLFlow projects on Slurm batch system

Usage

Install this package in the environment from which you will be submitting jobs. If you are submitting jobs from inside jobs, make sure you have this package listed in your conda or pip environment.

Just list this as your --backend in the job run. You should include a json config file to control how the batch script is constructed:

mlflow run --backend slurm \
          --backend-config slurm_config.json \
          examples/sklearn_elasticnet_wine

It will generate a batch script named after the job id and submit it via the Slurm sbatch command. It will tag the run with the Slurm JobID

Configure Jobs

You can set values in a json file to control job submission. The supported properties in this file are:

Config File Setting Use
partition Which Slurm partition should the job run in?
account What account name to run under
gpus_per_node On GPU partitions how many GPUs to allocate per node
gres SLURM Generic RESources requests
mem Amount of memory to allocate to CPU jobs
modules List of modules to load before starting job
time Max CPU time job may run
sbatch-script-file Name of batch file to be produced. Leave blank to have service generate a script file name based on the run ID

Development

The slurm docker deployment is handy for testing and development. You can start up a slurm environment with the included docker-compose file

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

mlflow_slurm-1.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

mlflow_slurm-1.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_slurm-1.0.2.tar.gz.

File metadata

  • Download URL: mlflow_slurm-1.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for mlflow_slurm-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fe95711a9d8e4d9ecd3740af76e3d7a7dffcb57f823ae31b50e9b53ee1bb997b
MD5 ee6c27444b80813660f712fe3286bc1c
BLAKE2b-256 868f7b2fa3a692441ef97515d180c00dfcbeaba2bda6cdb4f662baae1f52f2d9

See more details on using hashes here.

Provenance

File details

Details for the file mlflow_slurm-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mlflow_slurm-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc687841e2f5f3869f7aebc8013d4e03b7a52355e4b9d11ad0764790d4647e7
MD5 5a228c30314f8135637944a5564e85c2
BLAKE2b-256 11695d4c13fbbcf7b7b7f66ce799adb22baf1cfdcefb590b101ccc5ba34a3428

See more details on using hashes here.

Provenance

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