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 | |
Lightning | |
Accelerate, PyTorch, Hugging Face | |
TensorFlow | |
Horovod | |
PyTorch | |
Transformers |
Intermediate
Framework | Example |
---|---|
DeepSpeed, PyTorch | |
PyTorch | |
Accelerate, Transformers | Finetune Stable Diffusion and generate images with Intel Gaudi |
Lightning | |
Transformers | |
Accelerate, Transformers | |
Accelerate, Transformers, DeepSpeed |
Advanced
Framework | Example |
---|---|
Accelerate, DeepSpeed, Hugging Face | Fine-tune a Llama-2 text generation models with DeepSpeed and Hugging Face Accelerate |
Hugging Face, DeepSpeed | Fine-tune a GPT-J-6B text generation model with DeepSpeed and Hugging Face Transformers |
Lightning, DeepSpeed | Fine-tune a vicuna-13b text generation model with PyTorch Lightning and DeepSpeed |
Lightning | Fine-tune a dolly-v2-7b text generation model with PyTorch Lightning and FSDP |