Skip to main content

Resource-aware hyperparameter tuning execution engine

Project description

Fluid: Resource-Aware Hyperparameter Tuning Engine

PyPI version Build Status

Fluid is an alternative Ray executor that intelligently manages trial executions on behalf of hyperparameter tuning algorithms, in order to increase the resource utilization, and improve end-to-end makespan.

This is the implementation of our MLSys'21 paper "Fluid: Resource-Aware Hyperparameter Tuning Engine".

Get Started

First follow the instruction in Ray Tune to setup the Ray cluster and a tuning environment as usual.

Then make sure Nvidia MPS is correctly setup on all worker nodes.

Fluid itself is a normal python package that can be installed by pip install fluidexec. Note that the pypi package name is fluidexec because the name fluid is already taken.

To use Fluid in Ray Tune, pass an instance of it as an additional keyword argument to tune.run:

from fluid.executor import MyRayTrialExecutor
from fluid.scheduler import FluidBandScheduler
tune.run(
    MyTrainable,
    scheduler=FluidBandScheduler(...),
    trial_executor=FluidExecutor(),
    ...
)

Reproduce Experiments

See the README in workloads for more information.

Notes

Please consider to cite our paper if you find this useful in your research project.

@inproceedings{fluid:mlsys21,
    author    = {Peifeng Yu and Jiachen Liu and Mosharaf Chowdhury},
    booktitle = {MLSys},
    title     = {Fluid: Resource-Aware Hyperparameter Tuning Engine},
    year      = {2021},
}

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

fluidexec-0.1.0rc0.tar.gz (67.6 kB view details)

Uploaded Source

Built Distribution

fluidexec-0.1.0rc0-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file fluidexec-0.1.0rc0.tar.gz.

File metadata

  • Download URL: fluidexec-0.1.0rc0.tar.gz
  • Upload date:
  • Size: 67.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/5.11.16-arch1-1

File hashes

Hashes for fluidexec-0.1.0rc0.tar.gz
Algorithm Hash digest
SHA256 b1a0da81eb2988ef5cb0310f279ca431b2a57880981db38ca7abecdd1ca3475f
MD5 3786ec8846d55c7c2c9e3ba589917973
BLAKE2b-256 5a817f4b02fc56baf187a9981a97a68b565df02cfe60080cfd7ad2649768837b

See more details on using hashes here.

File details

Details for the file fluidexec-0.1.0rc0-py3-none-any.whl.

File metadata

  • Download URL: fluidexec-0.1.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/5.11.16-arch1-1

File hashes

Hashes for fluidexec-0.1.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 538ed88f721764c3f32ffc4a0b2a36de18fb0b35b63b6e0b1204c54937bfb2df
MD5 03d907f11abce889b0b3384ddb76013e
BLAKE2b-256 396ece803568e06c9da66c28458dc22e0f9913c3c1d7c2921cc5c675b01cc4d7

See more details on using hashes here.

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