Ray Train: Scalable model training#
Warning
Ray Train V1 is deprecated and will be removed in Ray 3.0. Ray Train V2 is the default starting in Ray 2.51. If you use V1 by setting RAY_TRAIN_V2_ENABLED=0, see the Ray Train V2 migration guide.
Ray Train is a scalable machine learning library for distributed training and fine-tuning.
Use Ray Train to scale model training code from a single machine to a cluster of machines in the cloud, whether you have large models or large datasets. Ray Train abstracts away the complexities of distributed computing.
Ray Train supports many frameworks, including the following:
PyTorch ecosystem |
More frameworks |
|---|---|
PyTorch |
TensorFlow |
PyTorch Lightning |
Keras |
Hugging Face Transformers |
Horovod |
Hugging Face Accelerate |
XGBoost |
DeepSpeed |
LightGBM |
Install Ray Train#
To install Ray Train, run the following command:
$ pip install -U "ray[train]"
To learn more about installing Ray and its libraries, see Installing Ray.
Get started#
Overview
Understand the key concepts for distributed training with Ray Train.
PyTorch
Get started with distributed model training using Ray Train and PyTorch.
PyTorch Lightning
Get started with distributed model training using Ray Train and Lightning.
Hugging Face Transformers
Get started with distributed model training using Ray Train and Transformers.
JAX
Get started with distributed model training using Ray Train and JAX.
Learn more#
More frameworks
Don’t see your framework? See the guides for more frameworks.
User guides
Get how-to instructions for common training tasks with Ray Train.
Tutorials
Work through hands-on tutorials that cover ML workload patterns, from vision to recommendation systems.
Examples
Browse end-to-end code examples for different use cases.
API
See the API reference for full descriptions of the Ray Train API.