npx skills add ...
npx skills add firecrawl/ai-research-skills --skill ray-train
Distributed training orchestration across clusters. Scales PyTorch/TensorFlow/HuggingFace from laptop to 1000s of nodes. Built-in hyperparameter tuning with Ray Tune, fault tolerance, elastic scaling. Use when training massive models across multiple machines or running distributed hyperparameter sweeps.
npx skills add firecrawl/ai-research-skills --skill ray-train
Ray Train scales machine learning training from single GPU to multi-node clusters with minimal code changes.
Installation:
Basic PyTorch training (single node):
That's it! Ray handles:
Original single-GPU code:
Ray Train version (scales to multi-GPU/multi-node):
Benefits: Same code runs on 1 GPU or 1000 GPUs
Result: Distributed hyperparameter search across cluster
Launch Ray cluster:
Use Ray Train when:
Key advantages:
Use alternatives instead:
Issue: Ray cluster not connecting
Check ray status:
If not connected:
Issue: Out of memory
Reduce workers or use gradient accumulation:
Issue: Slow training
Check if data loading is bottleneck:
If data loading is slow, increase workers:
Multi-node setup: See references/multi-node.md for Ray cluster deployment on AWS, GCP, Kubernetes, and SLURM.
Hyperparameter tuning: See references/hyperparameter-tuning.md for Ray Tune integration, search algorithms (Optuna, HyperOpt), and population-based training.
Custom training loops: See references/custom-loops.md for advanced Ray Train usage, custom backends, and integration with other frameworks.
Supported accelerators: