Train Examples
Below are examples for using Ray Train with a variety of frameworks and use cases. Ray Train makes it easy to scale out each of these examples to a large cluster of GPUs.
Beginner
Framework | Example |
|---|---|
PyTorch | Distributing your PyTorch Training Code with Ray Train and Ray Data |
Lightning | |
TensorFlow | |
JAX, Flax | |
PyTorch | |
PyTorch | |
XGBoost |
Intermediate
Framework | Example |
|---|---|
PyTorch | Get started with PyTorch Fully Sharded Data Parallel (FSDP2) and Ray Train |
PyTorch, DeepSpeed | Get started with Tensor Parallelism (DeepSpeed AutoTP) and Ray Train |
PyTorch | Get started with 2D Parallelism (Tensor + Data Parallelism) using FSDP2 and Ray Train |
PyTorch, DeepSpeed | |
Accelerate, Transformers | Finetune Stable Diffusion and generate images with Intel Gaudi |
Lightning | |
Transformers | |
Transformers, TRL | |
Accelerate, Transformers |
Advanced
Framework | Example |
|---|---|
PyTorch, AWS Neuron |