ray-tune

Automate distributed hyperparameter tuning with Ray and early stopping.

1|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/hung-phan/ml-skills --skill ray-tune
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ray-tune
Source: https://github.com/hung-phan/ml-skills/tree/main/skills/ml-review/references/ml-libraries/ray/tune
Command: npx skills add https://github.com/hung-phan/ml-skills --skill ray-tune

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ray, optuna, hyperopt, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a solution for distributed hyperparameter tuning, addressing the inefficiency of manual hyperparameter search and the need for parallelization in hyperparameter tuning processes.

Core Features & Use Cases

  • Distributed Hyperparameter Tuning: Utilizes Ray's distributed computing capabilities to perform hyperparameter tuning across multiple nodes or GPUs.
  • Early Stopping and Search Algorithms: Offers features like early stopping and integration with search algorithms like Optuna and HyperOpt.
  • Integration with Ray Train: Facilitates seamless integration with Ray Train for training machine learning models.
  • Use Case: When you need to fine-tune a machine learning model with many hyperparameters and require efficient and distributed training.

Quick Start

Use the ray-tune skill to tune the learning rate of a machine learning model with the following command: ray-tune tune --trainable my_trainable --param-space '{"lr": tune.loguniform(1e-5, 1e-1)}' --num-samples 50

Frequently Asked Questions about ray-tune

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run distributed hyperparameter tuning across multiple GPUs?

Distributed hyperparameter tuning across multiple GPUs is automated using Ray's computing framework to execute large-scale parallel searches. You define a parameter space and run distributed trials to fine-tune machine learning models efficiently across multiple nodes.

Can I use Optuna or HyperOpt search algorithms with Ray for tuning?

Yes, Ray Tune integrates directly with Optuna and HyperOpt to execute search algorithms during distributed hyperparameter tuning. This allows you to leverage advanced search strategies and early stopping features while scaling trials across Ray Train.

What is the best way to automate large-scale hyperparameter searches?

Automating large-scale hyperparameter searches is best achieved by utilizing Ray's distributed computing capabilities to parallelize trials. This approach addresses the inefficiency of manual hyperparameter search by running early stopping and search algorithms across multiple machines.

Do I need Ray installed to run distributed hyperparameter trials?

Yes, you need Ray installed to run distributed hyperparameter trials, along with your chosen search algorithm like Optuna or HyperOpt. These dependencies are required to execute the parallel computing tasks and manage the training workflows.

How do I define a parameter space and start tuning a model?

You define a parameter space using a JSON configuration with specific distributions like loguniform, then start tuning a model by running a command that specifies your trainable function, parameter space, and number of samples to execute the trials.