Ray Tune Examples#

Tip

See Ray Tune: Hyperparameter Tuning to learn more about Tune features.

Below are examples for using Ray Tune for a variety of use cases and sorted by categories:

ML frameworks#

Ray Tune integrates with many popular machine learning frameworks. Here you find a few practical examples showing you how to tune your models. At the end of these guides you will often find links to even more examples.

Experiment tracking tools#

Ray Tune integrates with some popular Experiment tracking and management tools, such as CometML, or Weights & Biases. For how to use Ray Tune with Tensorboard, see Guide to logging and outputs.

Hyperparameter optimization frameworks#

Tune integrates with a wide variety of hyperparameter optimization frameworks and their respective search algorithms. See the following detailed examples for each integration:

Others#

Exercises#

Learn how to use Tune in your browser with the following Colab-based exercises.

Description

Library

Colab link

Basics of using Tune

PyTorch

Open in Colab

Using search algorithms and trial schedulers to optimize your model

PyTorch

Open in Colab

Using Population-Based Training (PBT)

PyTorch

Open in Colab

Fine-tuning Hugging Face Transformers with PBT

Hugging Face Transformers and PyTorch

Open in Colab

Logging Tune runs to Comet ML

Comet

Open in Colab

Tutorial source files are on GitHub.