liveBook · Manning

Ray Tune

As explained in Designing Deep Learning Systems: A guide for software engineers

Ray Tune is a library for distributed hyperparameter tuning and experiment execution built on the Ray platform.

Ray Tune is a Python library for distributed hyperparameter optimization and experiment execution, built on Ray. It fits teams that need to search training configurations across managed clusters rather than adjust them manually. section 5.0 section 5.4.3

The workflow centers on an objective function: it reads hyperparameters from a configuration, trains and evaluates a model, and reports a score. Tune connects that function to a search space and starts the trials. section 5.4 section 5.4.3

Ray Tune’s implementation responsibilities include:

  • Supporting common machine-learning frameworks, including PyTorch, XGBoost, MXNet, and Keras. section 5.4.3
  • Running searches with algorithms such as Population Based Training, BayesOptSearch, and HyperBand/ASHA, while integrating algorithms from other HPO libraries. section 5.4.3
  • Using Ray to distribute code and trials across multiple GPUs and nodes, with resource management, cloud support, and fault tolerance. section 5.4.3
  • Using ASHA to stop less-promising trials early and allocate time and resources to more-promising trials. section 5.4.3

Minimal execution pattern

Define an objective_function(config), train a model with config["lr"] and config["momentum"], report mean_accuracy with tune.report, declare a search space, and call tune.run. Enabling ray.init(address="auto") allows cluster execution.

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Explains objective functions, search spaces, schedulers, and distributed execution, while stopping short of detailed algorithm internals.
Examples
Demonstrates convolutional-network training with learning rate and momentum searches, ASHA scheduling, and multinode cluster execution.
What it assumes
Assumes Python model-training code and evaluation logic, while explaining HPO objectives and automation without requiring deep algorithm knowledge.
What you can do after
Build it from scratch by defining an objective function, search space, scheduler, and distributed Tune run.
How it connects
Connects hyperparameter optimization with objective functions, search spaces, early stopping, distributed computing, Ray, and machine-learning frameworks.

Also explained in

Compare how 2 books explain Ray Tune →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.