Skip to content

Distributed training orchestration that scales PyTorch, TensorFlow, and HuggingFace code from one GPU to multi-node clusters.

CCM score
51 of 100
skills.sh installs
1.2K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers single-node and multi-node training, HuggingFace Transformers integration, and distributed hyperparameter sweeps with Ray Tune
  • Includes workflows for scaling existing PyTorch loops, checkpointing with automatic resume, and launching clusters via ray start
  • Provides fault tolerance that resumes from the latest checkpoint and elastic scaling that adds or removes nodes during training
  • Designed for training massive models across multiple machines or running large parallel hyperparameter searches

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill ray-train -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Ray Train - Distributed Training Orchestration

Quick start

Ray Train scales machine learning training from single GPU to multi-node clusters with minimal code changes.

Installation:

pip install -U "ray[train]"

Basic PyTorch training (single node):

import ray
from ray import train
from ray.train import ScalingConfig
from ray.train.torch import TorchTrainer
import torch
import torch.nn as nn

# Define training function
def train_func(config):
    # Your normal PyTorch code
    model = nn.Linear(10, 1)
    optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

    # Prepare for distributed (Ray handles device placement)
    model = train.torch.prepare_model(model)

    for epoch in range(10):
        # Your training loop
        output = model(torch.randn(32, 10))
        loss = output.sum()
        loss.backward()
        optimizer.step()
        optimizer.zero_grad()

        # Report metrics (logged automatically)
        train.report({"loss": loss.item(), "epoch": epoch})

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the ray-train skill do?

The ray-train skill orchestrates distributed training across clusters, scaling PyTorch, TensorFlow and HuggingFace code from a single laptop to thousands of nodes. It also covers hyperparameter tuning with Ray Tune, fault tolerance and elastic scaling. It suits training large models across several machines or running distributed hyperparameter sweeps.

How do I install the ray-train skill?

Run npx -y skills add orchestra-research/ai-research-skills --skill ray-train -y in your project to install it. Once installed, the agent can scale your existing PyTorch training code to multiple GPUs or nodes with minimal changes.

Where does ray-train sit in its category?

ray-train is listed under Data Science & Analytics on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It sets itself apart by focusing on multi-node distributed training and Ray Tune hyperparameter search.

What do I need to use ray-train?

The skill's SKILL.md installs the ray[train] package with pip and relies on torch and transformers, with Ray Train used for PyTorch, TensorFlow and HuggingFace jobs. For multi-node work, you start a Ray head node and connect worker nodes to it.

More from orchestra-research/ai-research-skills

All 92

Similar to Ray Train

More Data Science & Analytics